Difference between revisions of "User:Thadius856/sandbox2"

From Captain of Industry Wiki
Jump to: navigation, search
(blanking, all migrated)
Tag: Blanking
(copy over from template:infoicon)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} | <!--
--><templatestyles src="Template:Infoicon/styles.css" /><!--


  ** Blank variables from previous runs on the same page **
-->{{#vardefine: article}}<!--
-->{{#vardefine: nolink}}<!--
  ** This section is list of input parameters where the desired image filename should link to a differently-named article **
-->{{#vardefine: article | {{#switch: {{lc:{{{1|}}}}}
| bulldozer      = Deconstruction
| clock          = Time
| message        = Messages
| population big = Population <!-- Both Population.png and Population Big.png exist for different use cases -->
| sailor        = Sailors
| stats          = Statistics
| unity large    = Unity
| worker        = Workers <!-- Both Worker.png and Workers.png exist for different use cases -->
| #default      = {{{1|}}}<!--
-->}} }}<!--
  ** Allow the user to manually override the link, including the above table. **
  ** Detect if provided "no" (case insensitive). **
-->{{#if: {{{link|}}} |<!--
  -->{{#ifeq: {{lc:{{{link}}}}} | no |<!--
    -->{{#vardefine: nolink | yes }}|<!--
    -->{{#vardefine: article | {{{link}}} }}<!--
  -->}}<!--
-->}}<!--
  ** This section prevents line wrapping between the icon and any subsequent text, fixes icon **
  **  vertical alignment, and adds a slight glow for accessibility (unless specified not to). **
--><span class="nowrap infoicon {{#if: {{{ui|}}} || iconglow }}"><!--
  ** Self-explanatory from here **
-->[[File:{{{1}}}.png|{{#varexists:mainpage|24px|16px}}|link={{#if: {{#var: nolink}} || {{#var: article}} }}]]&#32;<!--
-->{{#if: {{{icononly|}}} || <!--
  -->{{#if: {{#var:nolink}} | <!--
    -->{{{1}}}{{{plural|}}} | <!--
    -->[[{{#var: article}}|{{{text|{{{1}}}}}}{{{plural|}}}]]<!--
  -->}}<!--
-->}}</span> | <!--
--><span style="color: red;">Infoicon: parameter {{{1}}} was not provided</span>}}</includeonly><noinclude>
{{documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>

Revision as of 10:19, 26 January 2022

Template documentation (for the above template, sometimes hidden or invisible) [create]
This template doesn't have any documentation yet! Help out by writing some.
This template currently doesn't have any documentation; you can create it if you know how the template is used. (What is this?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to User:Thadius856/sandbox2/doc. (View all subpages of this page.)