Template:Notebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
m Writing documentation |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude><pre>{{Notebox| | <noinclude> | ||
This is a meta template used for creating other template, much like [[Template:Messagebox]]. | |||
<pre>{{Notebox| | |||
|note_text= STRING | |note_text= STRING | ||
|bgcolor= FFFFFF (optional) | |bgcolor= FFFFFF (optional) | ||
| Line 14: | Line 16: | ||
|noItalic= BOOLEAN (default false) (optional) | |noItalic= BOOLEAN (default false) (optional) | ||
|noCats= BOOLEAN (default false) (optional) | |noCats= BOOLEAN (default false) (optional) | ||
|hangline= FFFFFF (unimplemented) | |||
|padleft= ##px (unimplemented) | |||
}}</pre></noinclude><includeonly>{| style="width:95%;" cellpadding="0" cellspacing="0" | }}</pre></noinclude><includeonly>{| style="width:95%;" cellpadding="0" cellspacing="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| | | {{#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|}}}]] |}} | ||
| Line 22: | Line 26: | ||
|}{{#if: {{{noCats|}}} ||{{{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!}} | |||
|note_text= | |||
}} | |||
'''<tt><nowiki>{{</nowiki>Notebox|<br/> | |||
'''|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= efefff<br/> | |||
'''|image_name= MissingPiece.jpg<br/> | |||
'''|image_padding=0 5px 0 0<br/> | |||
'''|categories= <nowiki>[[Category: stubs]]</nowiki><br/> | |||
'''|header= Thanks for helping me... pull myself together.<br/> | |||
'''}}</tt> | |||
{{Notebox| | {{Notebox| | ||
|note_text= | |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 | |bgcolor= efefff | ||
|text_color= FFFFFF (optional) | |text_color= FFFFFF (optional) | ||
|image_name= MissingPiece.jpg | |image_name= MissingPiece.jpg | ||
| | |image_padding=0 5px 0 0 | ||
|header= Thanks for helping me... pull myself together. | |header= Thanks for helping me... pull myself together. | ||
}} | }} | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 15:09, 28 December 2007
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 (unimplemented)
|padleft= ##px (unimplemented)
}}
{{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.
| |

