Difference between revisions of "User:Thadius856/sandbox2"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (scrunching margins, enlargening : and +) |
Thadius856 (talk | contribs) (more tests) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <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 }}"><!-- | |||
-->{{#if:{{{ | ** Check if the user is wanting to use an icon as an individual image instead of a sprite sheet ** | ||
-->{{#if: {{{new|}}} | <!-- | |||
-->[[File:{{{1}}}.png|{{#varexists:mainpage|24px|16px}}|link={{#if: {{#var: nolink}} || {{#var: article}} }}]] <!-- | |||
-->|<!-- | |||
--><div class="sprite-{{#varexists: mainpage | 24 | 16}}-{{#replace: {{#replace: {{#replace: {{#replace: {{{1}}} || }} | (}} | )}} | & | And}} iconglow"></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:{{{ | -->{{#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> | |||
'''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}}. | |||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> | |||
</noinclude> | </noinclude> |
Latest revision as of 01:11, 29 January 2022
Copper Ore is a natural resource obtained through mining. It is combined with
Coalin a Blast Furnace to process into
Molten Copper. In later stages of the game, Copper Ore can be processed into
Copper Ore Crushedin 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.)
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.)