Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Iconbox/Documentation: Difference between revisions

No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Template|Iconbox}} is a variation of {{Template|Box}}. It generates text frames with an icon in the upper left corner.
{{Template|Iconbox}} is a variation of {{Template|Box}}. It generates text frames with an icon in the upper left corner.
==Usage==
==Usage==
It accepts one {{Parameter|mandatory|string}} and three {{Parameter|optional}}.
It accepts one {{Parameter|mandatory|string}} and three {{Parameter|optional}}s.


# is the text to be included in the box.  
* {{Code|1}} is the text to be included in the box.  
# controls the icon displayed. It defaults to {{Code|warning}}, but can be any one of the options in {{Category|icon}}. Use just the unique part of the name, i.e. {{Code|disambiguation}} not {{code|icon-disambiguation.svg}}.  
* {{Code|2}} controls the icon displayed. It defaults to {{Code|warning}}, but can be any one of the options in {{Category|icon}}s. Use just the unique part of the name, i.e. {{Code|disambiguation}} not {{code|icon-disambiguation.svg}}.  
* {{code|margin}} (defaults to {{Code|10%}}) adjusts the margin CSS of the box. It can accept either percentage or pixel values; percentages are recommended.
* {{code|margin}} (defaults to {{Code|10%}}) adjusts the margin CSS of the box. It can accept either percentage or pixel values; percentages are recommended.
* {{code|color}} (defaults to {{Code|blue}}) can accept any of the marked options indicated in [[Mediawiki:Common.css]].
* {{Code|color}} (default: {{Code|blue}}) controls the color of the background. The valid options are: {{Box/Color}}
 
==Return==
{{Iconbox|{{Lorem Ipsum}}}}
{{Code|<nowiki>{{Iconbox|{{Lorem Ipsum|3}}}}</nowiki>}} returns: {{Return|{{Iconbox|{{Lorem Ipsum|3}}}}}}
{{Code|<nowiki>{{Iconbox|{{Lorem Ipsum|3}}|error|color=red}}</nowiki>}} returns: {{Return|{{Iconbox|{{Lorem Ipsum|3}}|error|color=red}}}}
{{Code|<nowiki>{{Iconbox|{{Lorem Ipsum|1}}|margin=30%}}</nowiki>}} returns: {{Return|{{Iconbox|{{Lorem Ipsum|1}}|margin=30%}}}}

Latest revision as of 12:41, 27 October 2022

Template:Iconbox is a variation of Template:Box. It generates text frames with an icon in the upper left corner.

Usage

It accepts one mandatory string parameter and three optional parameters.

  • 1 is the text to be included in the box.
  • 2 controls the icon displayed. It defaults to warning, but can be any one of the options in Icons. Use just the unique part of the name, i.e. disambiguation not icon-disambiguation.svg.
  • margin (defaults to 10%) adjusts the margin CSS of the box. It can accept either percentage or pixel values; percentages are recommended.
  • color (default: blue) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white

Return

{{Iconbox|{{Lorem Ipsum|3}}}} returns:

Icon-warning.svg

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum. Maecenas auctor eu urna blandit lobortis. Aenean maximus ante vel pretium congue. Sed et turpis vel ipsum condimentum laoreet sit amet vel nisi.

{{Iconbox|{{Lorem Ipsum|3}}|error|color=red}} returns:

Icon-error.svg

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum. Maecenas auctor eu urna blandit lobortis. Aenean maximus ante vel pretium congue. Sed et turpis vel ipsum condimentum laoreet sit amet vel nisi.

{{Iconbox|{{Lorem Ipsum|1}}|margin=30%}} returns:

Icon-warning.svg

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio.