Template:Icon notice box: Difference between revisions

From FreeAllegiance Wiki
Jump to navigationJump to search
(Created page with '{|cellpadding=5 width=74% align=center |- |style="border-right: 1px solid {{{fgcolor|#f80}}}" width=auto valign=top| <div style="color:{{{fgcolor|#f80}}}">{{{leftbox|[[Image:Im...')
 
m (test width)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|cellpadding=5 width=74% align=center 
:{|cellpadding=5 width={{{width|70%}}}
|-
|-
|style="border-right: 1px solid {{{fgcolor|#f80}}}" width=auto valign=top| <div style="color:{{{fgcolor|#f80}}}">{{{leftbox|[[Image:Important.png]]}}}</div>
|style="border-right: 2px solid {{{fgcolor|#f80}}}" width="50pt" valign=top align=right| <div style="color:{{{fgcolor|#f80}}}">{{{leftbox|[[Image:Important.png]]}}}</div>
|width=auto width=100% valign=top| '''<span style="color:{{{fgcolor|#f80}}}">{{{heading|Slow down, cowboy!}}}</span>''' {{{content|'''You aren't done yet.'''
|style="background: #EBEBF0; -webkit-border-bottom-right-radius: 6px; -moz-border-radius-bottomright: 6px; border-bottom-right-radius: 6px;" valign=top| '''<span style="color:{{{fgcolor|#f80}}}">{{{heading|Slow down, cowboy!}}}</span>''' {{{content|'''You aren't done yet.'''


Fill in the template before hitting save, like this:
Fill in the template before hitting save, like this:


<pre><nowiki> {{Icon notice box|fgcolor|#00f
<pre><nowiki> {{Icon notice box|fgcolor=#00f
                   |leftbox|[[Image:information.png]]
                   |leftbox=[[Image:info.png]]
                   |heading|Information
                   |heading=Information
                   |content|Spam spam spam spam spammy spam.}}</nowiki></pre>
                   |content=Spam spam spam spam spammy spam.}}</nowiki></pre>


and you will get:
and you will get:


  {{Icon notice box|fgcolor|#00f
  {{Icon notice box|fgcolor=#00f
                   |leftbox|[[Image:information.png]]
                   |leftbox=[[Image:info.png]]
                   |heading|Information
                   |heading=Information
                   |content|Spam spam spam spam spammy spam.}}
                   |content=Spam spam spam spam spammy spam.}}}}}
|}<noinclude>
|}<noinclude>


Self explaining templates, ain't that cool :P
Self explaining templates, ain't that cool :P


[[Category:Formatting templates]]
[[Category:Notice templates]]

Latest revision as of 20:49, 8 March 2012

Important.png
Slow down, cowboy! You aren't done yet.

Fill in the template before hitting save, like this:

 {{Icon notice box|fgcolor=#00f
                  |leftbox=[[Image:info.png]]
                  |heading=Information
                  |content=Spam spam spam spam spammy spam.}}

and you will get:


Info.png
Information Spam spam spam spam spammy spam.

Self explaining templates, ain't that cool :P