Template:Notebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
mNo edit summary |
|||
| (15 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude><pre>{{Notebox| | <noinclude> | ||
|note_text= | This is a meta template used for creating other template, much like [[Template:Messagebox]]. | ||
|bgcolor= | <pre>{{Notebox| | ||
|text_color= | |note_text= STRING | ||
|image_name= | |bgcolor= FFFFFF (optional) | ||
|image_width=32px | |text_color= FFFFFF (optional) | ||
|image_padding= | |image_name= Image_name.png (optional) | ||
|categories=[[Category: | |image_width= ##px (default 32px) (optional) | ||
|header= | |image_padding= ##px (default 0) (optional) | ||
|headercolor= | |categories= [[Category: Things Like this]] [[Category: All Things]] (optional) | ||
|extranote_text= | |header= STRING (optional) | ||
|extranote_color= | |headercolor= FFFFFF (optional) | ||
|image_nohang= | |extranote_text= STRING (optional) | ||
|noCats= | |extranote_color= FFFFFF (optional) | ||
}}</pre></noinclude><includeonly>{| style="width: | |image_nohang= BOOLEAN (default false) (optional) | ||
|noItalic= BOOLEAN (default false) (optional) | |||
|noCats= BOOLEAN (default false) (optional) | |||
|hangline= FFFFFF (optional) | |||
|padleft= ##px (optional) | |||
}}</pre></noinclude><includeonly>{| style="width:90%;margin-left:{{{padleft|4%}}};" cellpadding="0" cellspacing="0" | |||
|- | |- | ||
| colspan="2" style="font-size:xx-small;line-height:1.2;" |{{#if: {{{header|}}} |<span style="background-color:#{{{bgcolor|efefef}}};padding:{{#if: {{{image_name|}}} |0 .5em 0 1.5em|0 1em 0 | | {{#if: {{{image_name|}}} |colspan="2" |}} style="font-size:xx-small;line-height:1.2;" |{{#if: {{{header|}}} |<span style="background-color:#{{{bgcolor|efefef}}};padding:{{#if: {{{image_name|}}} |0 .5em 0 1.5em|0 1em 0 .5em}};color:#{{{headercolor|666}}};">{{{header|Header Text}}}</span> |}} {{#if: {{{extranote_text|}}} |<span style="color:#{{{extranote_color|000}}};margin-left:.5em;">{{{extranote_text|}}}</span> |}} | ||
|- valign="top" | |- valign="top" | ||
{{#if: {{{image_name|}}} |{{!}} style="width:{{{image_width|32px}}};background-color:#{{{bgcolor|efefef}}};padding:{{{image_padding|0}}}" {{!}}[[Image:{{{image_name|}}}|{{{image_width|32px}}}|{{{header|}}}]] |}} | {{#if: {{{image_name|}}} |{{!}} style="width:{{{image_width|32px}}};background-color:#{{{bgcolor|efefef}}};padding:{{{image_padding|0}}}" {{!}}[[Image:{{{image_name|}}}|{{{image_width|32px}}}|{{{header|}}}]] |}} | ||
| style="background:{{#if: {{{image_nohang|}}} |{{{bgcolor|efefef}}} |none}};" |<div style="background-color:#{{{bgcolor|efefef}}}; padding: 2px 2px 2px 0.5em;color:#{{{text_color|000}}};">''{{{note_text|Message goes here.}}} | | style="background-color:#{{#if: {{{image_nohang|}}} |{{{bgcolor|efefef}}} |none}};" |<div style="background-color:#{{{bgcolor|efefef}}}; padding: 2px 2px 2px 0.5em;color:#{{{text_color|000}}};{{#if: {{{hangline|}}} |border-bottom:solid 1px #{{{hangline|}}};|}}">{{#if: {{{noItalic|}}} ||''}}{{{note_text|Message goes here.}}}</div> | ||
|}{{{categories|}}} | |}{{#if: {{{noCats|}}} ||{{{categories|}}}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
| | '''<tt><nowiki>{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}</nowiki></tt> | ||
| | |||
}} | {{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}} | ||
'''<tt><nowiki>{{</nowiki>Notebox|<br/> | |||
|note_text= | '''|note_text= <nowiki>This article is a [[:Category:Stub|stub]]. You can help '''{{SITENAME_SHORT}}''' by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it].</nowiki><br/> | ||
|bgcolor= | '''|bgcolor= efefff<br/> | ||
| | '''|image_name= MissingPiece.jpg<br/> | ||
'''|image_padding=0 5px 0 0<br/> | |||
'''|categories= <nowiki>[[Category: stubs]]</nowiki><br/> | |||
|image_padding= | '''|header= Thanks for helping me... pull myself together.<br/> | ||
|categories=[[Category: | '''}}</tt> | ||
| | |||
| | {{Notebox| | ||
| | |note_text= This article is a [[:Category:Stub|stub]]. You can help '''{{SITENAME_SHORT}}''' by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it]. | ||
|bgcolor= efefff | |||
|text_color= FFFFFF (optional) | |||
|image_name= MissingPiece.jpg | |||
|image_padding=0 5px 0 0 | |||
|header= Thanks for helping me... pull myself together. | |||
|hangline=9f9fff | |||
}} | }} | ||
[[Category:Meta templates]] | |||
[[Category: | |||
</noinclude> | </noinclude> | ||
Latest revision as of 06:52, 23 January 2010
This is a meta template used for creating other template, much like Template:Messagebox.
{{Notebox|
|note_text= STRING
|bgcolor= FFFFFF (optional)
|text_color= FFFFFF (optional)
|image_name= Image_name.png (optional)
|image_width= ##px (default 32px) (optional)
|image_padding= ##px (default 0) (optional)
|categories= [[Category: Things Like this]] [[Category: All Things]] (optional)
|header= STRING (optional)
|headercolor= FFFFFF (optional)
|extranote_text= STRING (optional)
|extranote_color= FFFFFF (optional)
|image_nohang= BOOLEAN (default false) (optional)
|noItalic= BOOLEAN (default false) (optional)
|noCats= BOOLEAN (default false) (optional)
|hangline= FFFFFF (optional)
|padleft= ##px (optional)
}}
{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}
| Pay attention! |
I am calling your attention to something!
|
{{Notebox|
|note_text= This article is a [[:Category:Stub|stub]]. You can help '''{{SITENAME_SHORT}}''' by '''[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it].
|bgcolor= efefff
|image_name= MissingPiece.jpg
|image_padding=0 5px 0 0
|categories= [[Category: stubs]]
|header= Thanks for helping me... pull myself together.
}}
| Thanks for helping me... pull myself together. | |
This article is a stub. You can help TFWiki.net by expanding it.
| |

