Template:Notebox: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
WIP
 
Undo revision 418635 by Derik (Talk)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
This is a meta template used for creating other template, much like [[Template:Messagebox]].
<pre>{{Notebox|
<pre>{{Notebox|
|note_text=
|note_text= STRING
|header=
|bgcolor= FFFFFF (optional)
|image_name=
|text_color= FFFFFF (optional)
|talkpage=
|image_name= Image_name.png (optional)
|categories=
|image_width= ##px (default 32px) (optional)
|mouseover=
|image_padding= ##px (default 0) (optional)
|image_width=
|categories= [[Category: Things Like this]] [[Category: All Things]] (optional)
|headercolor=
|header= STRING (optional)
|bgcolor=
|headercolor= FFFFFF (optional)
|justification=
|extranote_text= STRING (optional)
|talkSameLine=
|extranote_color= FFFFFF (optional)
|noCats=
|image_nohang= BOOLEAN (default false) (optional)
}}</pre>
|noItalic= BOOLEAN (default false) (optional)
 
|noCats= BOOLEAN (default false) (optional)
{| style="width:100%;" cellpadding="0" cellspacing="0"
|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;color:#{{{headercolor|aaa}}};" |<span style="background-color:#{{{bgcolor|efefef}}};padding:0 .5em 0 1em;">Thanks for helping me... pull myself together.</span> '''note''' note note note.
| {{#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"
| style="width:{{{image_width|32px}}};background-color:#{{{bgcolor|efefef}}};" |[[Image:{{{image_name|MissingPiece.jpg}}}|{{{image_width|32px}}}|Thanks for helping me... pull myself together.]]
{{#if: {{{image_name|}}} |{{!}} style="width:{{{image_width|32px}}};background-color:#{{{bgcolor|efefef}}};padding:{{{image_padding|0}}}" {{!}}[[Image:{{{image_name|}}}|{{{image_width|32px}}}|{{{header|}}}]] |}}
|<div style="width: 94%;  background-color:#{{{bgcolor|efefef}}}; padding: 2px 2px 2px 0.5em;">''{{{note_text|Message goes here.}}}''</div>
| 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>
|}
|}{{#if: {{{noCats|}}} ||{{{categories|}}}}}
</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= <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= Testing 1, 2 3
|note_text= This article is a [[:Category:Stub|stub]]. You can help '''{{SITENAME_SHORT}}''' by [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} expanding it].
|header= Hello my honey, hello my darling, hello my ragtime gal...
|bgcolor= efefff
|image_name=MissingPiece.jpg
|text_color= FFFFFF (optional)
|image_width=32px
|image_name= MissingPiece.jpg
|categories=
|image_padding=0 5px 0 0
|mouseover=
|header= Thanks for helping me... pull myself together.
|headercolor=
|hangline=9f9fff
|bgcolor=
|justification=
|talkSameLine=
|noCats=
}}
}}


[[Category: Templates]]
 
[[Category:Meta templates]]
</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.
Thanks for helping me... pull myself together.
This article is a stub. You can help TFWiki.net by expanding it.