Difference between revisions of "User:Thadius856/sandbox2"

From Captain of Industry Wiki
Jump to: navigation, search
(scrunching margins, enlargening : and +)
(more tests)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#if: {{{1|}}} | <!--
--><div style="position: relative; min-height: 75px; font-size: 14px; font-weight: bold;"><!--
--><templatestyles src="Template:Infoicon/styles.css" /><!--


   -->{{#if:{{{Building|}}}|<!--
   ** Blank variables from previous runs on the same page **
    --><div style="max-width:65px; max-height:65px; text-align:center; vertical-align:top; display:inline-block; position:relative;"><!--
 
      -->[[File:{{{Building}}}.png|link={{{Building}}}|65x65px]]<!--
-->{{#vardefine: article}}<!--
    --></div><!--
-->{{#vardefine: nolink}}<!--
   --><div style="font-size:18px; width:15px; text-align:center; vertical-align:text-top; display:inline-block; position: relative;">:</div><!--
 
  ** 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 }}"><!--


   -->{{#if:{{{In1|}}}|<!--
    ** Check if the user is wanting to use an icon as an individual image instead of a sprite sheet **
     --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block; position:relative;"><!--
 
      -->[[File:{{{In1}}}.png|link={{{In1}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In1Qty}}}</div><!--
   -->{{#if: {{{new|}}} | <!--
    --></div><!--
     -->[[File:{{{1}}}.png|{{#varexists:mainpage|24px|16px}}|link={{#if: {{#var: nolink}} || {{#var: article}} }}]]&#32;<!--
  -->}}<!--
     -->|<!--
  -->{{#if:{{{In2|}}}|<!--
     --><div class="sprite-{{#varexists: mainpage | 24 | 16}}-{{#replace: {{#replace: {{#replace: {{#replace: {{{1}}} || }} | (}} | )}} | & | And}} iconglow"></div>&#32;<!--
    --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
      -->[[File:{{{In2}}}.png|link={{{In2}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In2Qty}}}</div><!--
     --></div><!--
  -->}}<!--
  -->{{#if:{{{In3|}}}|<!--
     --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
      -->[[File:{{{In3}}}.png|link={{{In3}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In3Qty}}}</div><!--
    --></div><!--
  -->}}<!--
  -->{{#if:{{{In4|}}}|<!--
    --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
      -->[[File:{{{In4}}}.png|link={{{In4}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In4Qty}}}</div><!--
    --></div><!--
  -->}}<!--
  -->{{#if:{{{In5|}}}|<!--
    --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
      -->[[File:{{{In5}}}.png|link={{{In5}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In5Qty}}}</div><!--
    --></div><!--
  -->}}<!--
  -->{{#if:{{{In6|}}}|<!--
    --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
      -->[[File:{{{In6}}}.png|link={{{In6}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{In6Qty}}}</div><!--
    --></div><!--
   -->}}<!--
   -->}}<!--


  -->{{#if:{{{Time|}}}|<div style="display: inline-block; margin-top: 15px; width: 50px; text-align:center;"><div style="height:45px; text-align:center; display:inline-block; font-size:10pt;"><div>{{{Time}}}&nbsp;🕓</div><div>[[File:Icon arrow right.svg|30x45px]]</div></div></div>}}<!--
    ** Note that the nested #replace ParserFunctions are used to strip out: **
    ** any spaces, left/right parenthesis, and ampersands (illegal in CSS class names) **


   -->{{#if:{{{Out1|}}}|<!--
   -->{{#if: {{{icononly|}}} || <!--
     --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
     -->{{#if: {{#var:nolink}} | <!--
       -->[[File:{{{Out1}}}.png|link={{{Out1}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{Out1Qty}}}</div><!--
      -->{{{1}}}{{{plural|}}} | <!--
     --></div><!--
       -->[[{{#var: article}}|{{{text|{{{1}}}}}}{{{plural|}}}]]<!--
     -->}}<!--
   -->}}<!--
   -->}}<!--
  -->{{#if:{{{Out2|}}}|<!--
--></span> | <!--
    --><div style="font-size:18px; width:20px; text-align:center; vertical-align:bottom; display:inline-block; position: relative;">+</div><!--
--><span style="color: red;">Infoicon: parameter {{{1}}} was not provided</span>}}</includeonly><noinclude>
    --><div style="max-width:45px; max-height:45px; text-align:center; vertical-align:top; display:inline-block;  position:relative;"><!--
'''Copper Ore''' is a natural resource obtained through [[mining]]. It is combined with {{User:Thadius856/sandbox2|Coal}} in a [[Blast Furnace]] to process into {{User:Thadius856/sandbox2|Molten Copper}}. In later stages of the game, Copper Ore can be processed into {{User:Thadius856/sandbox2|Copper Ore Crushed}} in the [[Crusher]] before smelting to increase material efficiency. Smelting of Copper Ore, along with {{User:Thadius856/sandbox2|Iron Ore}}, are the primary sources of {{User:Thadius856/sandbox2|Slag}}.
      -->[[File:{{{Out2}}}.png|link={{{Out2}}}|45x45px]]<div style="display: inline-block; margin-top: 5px;">{{{Out2Qty}}}</div><!--
    --></div><!--
  -->}}<!--
 
--></div></includeonly><noinclude>
{{documentation}}
{{documentation}}
[[Category:Template]]
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
  {{User:Thadius856/sandbox2
    |Building=Excavator
    |In1=Limestone |In1Qty=12
    |In2=Coal |In2Qty=2
    |Time=10
    |Out1=Cement |Out1Qty=4
    |Out2=Exhaust |Out2Qty=8
  }}
</noinclude>
</noinclude>

Latest revision as of 01:11, 29 January 2022

Copper Ore is a natural resource obtained through mining. It is combined with

Coal

in a Blast Furnace to process into

Molten Copper

. In later stages of the game, Copper Ore can be processed into

Copper Ore Crushed

in the Crusher before smelting to increase material efficiency. Smelting of Copper Ore, along with

Iron Ore

, are the primary sources of

Slag

.

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.)