Template:Notebox: Difference between revisions
From MediaWiki
Jump to navigationJump to search
mNo edit summary |
m Writing documentation |
||
| Line 1: | Line 1: | ||
<noinclude><pre>{{Notebox| | <noinclude><pre>{{Notebox| | ||
|note_text= | |note_text= STRING | ||
|bgcolor= | |bgcolor= FFFFFF (optional) | ||
|text_color= | |text_color= FFFFFF (optional) | ||
|image_name= | |image_name= Image_name.png (optional) | ||
|image_width=32px | |image_width= ##px (default 32px) (optional) | ||
|image_padding= | |image_padding= ##px (default 0) (optional) | ||
|categories=[[Category: | |categories= [[Category: Things Like this]] [[Category: All Things]] (optional) | ||
|header= | |header= STRING (optional) | ||
|headercolor= | |headercolor= FFFFFF (optional) | ||
|extranote_text= | |extranote_text= STRING (optional) | ||
|extranote_color= | |extranote_color= FFFFFF (optional) | ||
|image_nohang= | |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| | | {{#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.}}} | | 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= | |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 | |
Lore Ipstum, this is a stub or something...
| |
| Pay attention! |
I am noting something!
|
| Thanks for helping me... pull myself together. | |
STRING
| |
Lorem Ipsum Dolores Underwood....
hgf

