Template:Notebox: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Derik (talk | contribs)
mNo edit summary
Derik (talk | contribs)
m Writing documentation
Line 1: Line 1:
<noinclude><pre>{{Notebox|
<noinclude><pre>{{Notebox|
|note_text= Testing 1, 2 3
|note_text= STRING
|bgcolor=fff799
|bgcolor= FFFFFF (optional)
|text_color=009;
|text_color= FFFFFF (optional)
|image_name=Movie frenzy.png
|image_name= Image_name.png (optional)
|image_width=32px
|image_width= ##px (default 32px) (optional)
|image_padding=5px
|image_padding= ##px (default 0) (optional)
|categories=[[Category:Testing]]
|categories= [[Category: Things Like this]] [[Category: All Things]] (optional)
|header= "Thanks for helping me... pull myself together."
|header= STRING (optional)
|headercolor=f00
|headercolor= FFFFFF (optional)
|extranote_text= '''Testing:''' Is anyone there?
|extranote_text= STRING (optional)
|extranote_color=090
|extranote_color= FFFFFF (optional)
|image_nohang=true
|image_nohang= BOOLEAN (default false) (optional)
|noCats=
|noItalic= BOOLEAN (default false) (optional)
|noCats= BOOLEAN (default false) (optional)
}}</pre></noinclude><includeonly>{| style="width:95%;" cellpadding="0" cellspacing="0"
}}</pre></noinclude><includeonly>{| style="width:95%;" 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 .5em}};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|999}}};">{{{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:{{#if: {{{image_nohang|}}} |{{{bgcolor|efefef}}} |none}};" |<div style="background-color:#{{{bgcolor|efefef}}}; padding: 2px 2px 2px 0.5em;color:#{{{text_color|000}}};">{{#if: {{{noItalic|}}} ||''}}{{{note_text|Message goes here.}}}</div>
|}{{{categories|}}}
|}{{#if: {{{noCats|}}} ||{{{categories|}}}}}
</includeonly><noinclude>
</includeonly><noinclude>
gg
gg
Line 49: Line 50:
|extranote_color=090
|extranote_color=090
|noCats=
|noCats=
|image_name=Movie frenzy.png
|image_name=MissingPiece.jpg
}}
 
{{Notebox|note_text= I am noting something!|header=Pay attention!}}
 
 
{{Notebox|
|note_text= STRING
|bgcolor= efefff
|text_color= FFFFFF (optional)
|image_name= MissingPiece.jpg
|categories= [[Category: stubs]]
|header= Thanks for helping me... pull myself together.
}}
}}


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

Revision as of 14:56, 28 December 2007

{{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)
}}

gg

Testing 1, 2 3


gg

Header Text Header Text descendery
Header Text
Lore Ipstum, this is a stub or something...


Pay attention!
I am noting something!


Thanks for helping me... pull myself together.
Thanks for helping me... pull myself together.
STRING



Lorem Ipsum Dolores Underwood....

hgf