Template:InfoBanner: Difference between revisions

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