Template:Notebox: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
m wip7- gettign there
Undo revision 418635 by Derik (Talk)
 
(23 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]].
|header=
<pre>{{Notebox|
|image_name=
|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)
}}</pre></noinclude><includeonly>{| style="width:90%;margin-left:{{{padleft|4%}}};" 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|666}}};">{{{header|Header Text}}}</span> |}} {{#if: {{{extranote_text|}}} |<span style="color:#{{{extranote_color|000}}};margin-left:.5em;">{{{extranote_text|}}}</span> |}}
|- 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|}}}]] |}}
| 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>


|categories=
'''<tt><nowiki>{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}</nowiki></tt>
|mouseover=
|image_width=
|headercolor=
|bgcolor=


|noCats=
{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}
}}</pre></noinclude>


<includeonly>{| style="width:100%;" cellpadding="0" cellspacing="0"
 
|-
'''<tt><nowiki>{{</nowiki>Notebox|<br/>
| colspan="2" style="font-size:xx-small;line-height:1.2;" |<span style="background-color:#{{{bgcolor|efefef}}};padding:0 .5em 0 1.5em;color:#{{{headercolor|aaa}}};">{{{header|Header Text}}}</span> <span style="color:#{{{extranote_color|000}}};margin-left:.5em;">{{{extranote_text|}}}</span>
'''|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/>
|- valign="top"
'''|bgcolor= efefff<br/>
| style="width:{{{image_width|32px}}};background-color:#{{{bgcolor|efefef}}};padding:{{{image_padding|0}}}" |[[Image:{{{image_name|MissingPiece.jpg}}}|{{{image_width|32px}}}|{{{header|}}}]]
'''|image_name= MissingPiece.jpg<br/>
|<div style="width: 94%;  background-color:#{{{bgcolor|efefef}}}; padding: 2px 2px 2px 0.5em;color:#{{{text_color|000}}};height:100%;">''{{{note_text|Message goes here.}}}''</div>
'''|image_padding=0 5px 0 0<br/>
|}{{{categories|}}}
'''|categories= <nowiki>[[Category: stubs]]</nowiki><br/>
</includeonly><noinclude>
'''|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].
|bgcolor=fff799
|bgcolor= efefff
|text_color=009;
|text_color= FFFFFF (optional)
|image_name=Movie frenzy.png
|image_name= MissingPiece.jpg
|image_width=32px
|image_padding=0 5px 0 0
|image_padding=5px
|header= Thanks for helping me... pull myself together.
|categories=[[Category:Testing]]
|hangline=9f9fff
|header= "Thanks for helping me... pull myself together."
|headercolor=f00
|extranote_text= '''Testing:''' Is anyone there?
|extranote_color=090
|image_nohang=true
|noCats=
}}
}}


hjg


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