Template:InfoBanner: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{BannerBox | <includeonly>{{BannerBox | ||
| | |cont_class=tone-7 {{{class|}}} | ||
|boxcolor=transparent | |boxcolor=transparent | ||
|image={{#switch:{{{ | |image={{#if:{{{image|}}}|{{{image|}}}|{{#switch:{{{type|}}}|warning=Icon - Warning|#default|info=Icon - Info}}}}.{{{ext|png}}} | ||
| | |imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|50}}px | ||
|textstyle=text-align: left; | |textstyle=text-align: left; | ||
|text='''{{#switch:{{{ | |text='''{{#switch:{{{type|}}}|warning=Warning|info|#default=Information}}''': {{{text|}}} | ||
}} | }}</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> |
Latest revision as of 19:23, 24 August 2022
Parameters
text
image
type
- warning/info, defaults to infoimagesize
- in pixels, defaults to 50ext
- image extension, defaults to png