Template:Notebox: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Derik (talk | contribs)
mNo edit summary
Line 23: Line 23:
|- 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}}};{{#if: {{{hangline|}}} |border-bottom:solid 1px #{{{hangline|}}};|}}">{{#if: {{{noItalic|}}} ||''}}{{{note_text|Message goes here.}}}</div>
| style="background:{{#if: {{{image_nohang|}}} |{{{bgcolor|efefef}}} |none}};" |<div style="background:{{{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>
|}{{#if: {{{noCats|}}} ||{{{categories|}}}}}
|}{{#if: {{{noCats|}}} ||{{{categories|}}}}}
{{{image_nohang}}}
{{#if: {{{image_nohang|}}} |{{{bgcolor|efefef}}} |none}}
</includeonly><noinclude>
</includeonly><noinclude>


Line 50: Line 50:
|header= Thanks for helping me... pull myself together.
|header= Thanks for helping me... pull myself together.
|hangline=9f9fff
|hangline=9f9fff
image_nohang=samuel
|image_nohang=samuel
}}
}}



Revision as of 19:46, 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!

none


{{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.
Thanks for helping me... pull myself together.
This article is a stub. You can help TFWiki.net by expanding it.

efefff