Template:InfoBanner: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{BannerBox | <includeonly>{{BannerBox | ||
|cont_class=tone-7 | |cont_class=tone-7 {{{class|}}} | ||
|boxcolor=transparent | |boxcolor=transparent | ||
|image={{#if:{{{image|}}}|{{{image|}}}|{{#switch:{{{type|}}}|warning=Icon - Warning|#default|info=Icon - Info}}}}.{{{ext|png}}} | |image={{#if:{{{image|}}}|{{{image|}}}|{{#switch:{{{type|}}}|warning=Icon - Warning|#default|info=Icon - Info}}}}.{{{ext|png}}} | ||
Line 8: | Line 8: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Parameters == | == Parameters == | ||
*<code>text</code> | |||
*<code>image</code> | *<code>image</code> | ||
*<code>type</code> - warning/info, defaults to info | *<code>type</code> - warning/info, defaults to info |
Latest revision as of 20:23, 24 August 2022
Parameters
text
image
type
- warning/info, defaults to infoimagesize
- in pixels, defaults to 50ext
- image extension, defaults to png