Template:InfoBanner: Difference between revisions

From Elwiki
(Created page with "{{BannerBox |color=#eee |boxcolor=transparent |image=Icon - Warning.png |imagesize=50px |textstyle=text-align: left; |text='''Warning''': {{{1|}}} }}<includeonly>Category:{{...")
 
No edit summary
 
(23 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=Icon - Warning.png
|image={{#if:{{{image|}}}|{{{image|}}}|{{#switch:{{{type|}}}|warning=Icon - Warning|#default|info=Icon - Info}}}}.{{{ext|png}}}
|imagesize=50px
|imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|50}}px
|textstyle=text-align: left;
|textstyle=text-align: left;
|text='''Warning''': {{{1|}}}
|text='''{{#switch:{{{type|}}}|warning=Warning|info|#default=Information}}''': {{{text|}}}
}}<includeonly>[[Category:{{{2|}}}]]</includeonly><noinclude>
}}</includeonly><noinclude>
[[Category:Templates|{{SUBPAGENAME}}]]
== 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>
</noinclude>

Latest revision as of 20: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