Difference between revisions of "User:Thadius856/sandbox2"

From Captain of Industry Wiki
Jump to: navigation, search
(whitespace)
(better inline comments, add `new` param in case a user wants to use an individual image instead)
Line 36: Line 36:
--><span class="nowrap infoicon {{#if: {{{ui|}}} || iconglow }}"><!--
--><span class="nowrap infoicon {{#if: {{{ui|}}} || iconglow }}"><!--


  ** Self-explanatory from here **
    ** Check if the user is wanting to use an icon as an individual image instead of a sprite sheet **
  ** Note that the nested #replace functions ParserFunctions are used to strip out any spaces or left/right characters from the input (illegal in CSS class names) **


--><div class="sprite-{{#varexists: mainpage | 24 | 16}}-{{#replace: {{#replace: {{#replace: {{{1}}} || }} | (}} | )}} iconglow"></div>&#32;<!--
  -->{{#if: {{{new|}}} | <!--
-->{{#if: {{{icononly|}}} || <!--
    -->[[File:{{{1}}}.png|{{#varexists:mainpage|24px|16px}}|link={{#if: {{#var: nolink}} || {{#var: article}} }}]]&#32;<!--
  -->{{#if: {{#var:nolink}} | <!--
     -->|<!--
     -->{{{1}}}{{{plural|}}} | <!--
     --><div class="sprite-{{#varexists: mainpage | 24 | 16}}-{{#replace: {{#replace: {{#replace: {{#replace: {{{1}}} || }} | (}} | )}} | & | And}} iconglow"></div>&#32;<!--
     -->[[{{#var: article}}|{{{text|{{{1}}}}}}{{{plural|}}}]]<!--
   -->}}<!--
   -->}}<!--
-->}}</span> | <!--
 
    ** Note that the nested #replace ParserFunctions are used to strip out: **
    ** any spaces, left/right parenthesis, and ampersands (illegal in CSS class names) **
 
  -->{{#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>{{#vardefine:mainpage|yup}}
--><span style="color: red;">Infoicon: parameter {{{1}}} was not provided</span>}}</includeonly><noinclude>{{#vardefine:mainpage|yup}}
* {{User:Thadius856/sandbox2|Bauxite}}
* {{User:Thadius856/sandbox2|Bauxite}}

Revision as of 08:40, 28 January 2022