Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:GasIcon/Sandbox: Difference between revisions

Template page
RA2lover (talk | contribs)
Created page with "<noinclude><templatedata> { "description": "Display a gas or liquid's icon image, with a link to its corresponding wiki page.", "params":{ "1": { "label":"Gas Name", "type": "string", "required": true, "description": "The name of the gas to be displayed." }, "Size": { "type": "string", "required": false, "description": "Size of icon to be displayed.", "default": "32px" } } } </tem..."
 
RA2lover (talk | contribs)
mNo edit summary
 
Line 21: Line 21:
Example:
Example:


<nowiki>{{GasIcon/Sandbox|LiquidMethane|Size=128px}}</nowiki> -> {{GasIcon/Sandbox|LiquidMethane|Size=128px}}
<nowiki>{{GasIcon/Sandbox|LiquidMethane|Size=1em}}</nowiki> -> {{GasIcon/Sandbox|LiquidMethane|Size=1em}}
</noinclude><includeonly>{{#Invoke:GasIcon|GetIcon2}}</includeonly>
</noinclude><includeonly>{{#Invoke:GasIcon|GetIcon2}}</includeonly>

Latest revision as of 05:52, 6 September 2026

Display a gas or liquid's icon image, with a link to its corresponding wiki page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Gas Name1

The name of the gas to be displayed.

Stringrequired
SizeSize

Size of icon to be displayed.

Default
32px
Stringoptional

Example:

{{GasIcon/Sandbox|LiquidMethane|Size=1em}} ->