Template:Notebox: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Undo revision 418635 by Derik (Talk)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude><pre>{{Notebox|
<noinclude>
|note_text= Testing 1, 2 3
This is a meta template used for creating other template, much like [[Template:Messagebox]].
|bgcolor=fff799
<pre>{{Notebox|
|text_color=009;
|note_text= STRING
|image_name=Movie frenzy.png
|bgcolor= FFFFFF (optional)
|image_width=32px
|text_color= FFFFFF (optional)
|image_padding=5px
|image_name= Image_name.png (optional)
|categories=[[Category:Testing]]
|image_width= ##px (default 32px) (optional)
|header= "Thanks for helping me... pull myself together."
|image_padding= ##px (default 0) (optional)
|headercolor=f00
|categories= [[Category: Things Like this]] [[Category: All Things]] (optional)
|extranote_text= '''Testing:''' Is anyone there?
|header= STRING (optional)
|extranote_color=090
|headercolor= FFFFFF (optional)
|image_nohang=true
|extranote_text= STRING (optional)
|noCats=
|extranote_color= FFFFFF (optional)
}}</pre></noinclude><includeonly>{| style="width:95%;" cellpadding="0" cellspacing="0"
|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 1em}};color:#{{{headercolor|aaa}}};">{{{header|Header Text}}}</span> |}} {{#if: {{{extranote_text|}}} |<span style="color:#{{{extranote_color|000}}};margin-left:.5em;">{{{extranote_text|}}}</span> |}}
| {{#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.}}}''</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>
|}{{{categories|}}}
|}{{#if: {{{noCats|}}} ||{{{categories|}}}}}
</includeonly><noinclude>
</includeonly><noinclude>
gg
{{Notebox|
|note_text= Testing 1, 2 3
|bgcolor=fff799
|text_color=009;
|image_name=Movie frenzy.png
|image_width=32px
|image_padding=2px
|categories=[[Category:Testing]]
|header=
|headercolor=f00


|extranote_color=090
'''<tt><nowiki>{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}</nowiki></tt>
|noCats=
 
}}
{{Notebox|header=Pay attention!|note_text= I am calling your attention to something!}}
 


gg{{Notebox|
'''<tt><nowiki>{{</nowiki>Notebox|<br/>
|note_text= Lore Ipstum, this is a stub or something...
'''|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=fff799
'''|bgcolor= efefff<br/>
|text_color=009;
'''|image_name= MissingPiece.jpg<br/>
|header=Header Text
'''|image_padding=0 5px 0 0<br/>
|image_width=32px
'''|categories= <nowiki>[[Category: stubs]]</nowiki><br/>
|image_padding=1px 5px 1px 1px
'''|header= Thanks for helping me... pull myself together.<br/>
|categories=[[Category:Testing]]
'''}}</tt>
|headercolor=000


|extranote_color=090
{{Notebox|
|noCats=
|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
}}
}}


{{note|Lorem Ipsum Dolores Underwood....}}


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.