Anonymous

Template:InfoBanner: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{BannerBox
<includeonly>{{BannerBox
|color=#eee
|cont_class=tone-7 {{{class|}}}
|boxcolor=transparent
|boxcolor=transparent
|image={{#switch:{{{type|}}}|warning=Icon - Warning||info=Icon - Info|#default={{{image|}}}}}.png
|image={{#if:{{{image|}}}|{{{image|}}}|{{#switch:{{{type|}}}|warning=Icon - Warning|#default|info=Icon - Info}}}}.{{{ext|png}}}
|imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|50}}px
|imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|50}}px
|textstyle=text-align: left;
|textstyle=text-align: left;
|text='''{{#switch:{{{type|}}}|warning=Warning|info|#default=Information''': {{{text|}}}
|text='''{{#switch:{{{type|}}}|warning=Warning|info|#default=Information}}''': {{{text|}}}
}}</includeonly><noinclude>{{Doc}}</noinclude>
}}</includeonly><noinclude>
== Parameters ==
*<code>text</code>
*<code>image</code>
*<code>type</code> - warning/info, defaults to info
*<code>imagesize</code> - in pixels, defaults to 50
*<code>ext</code> - image extension, defaults to png
</noinclude>