Template:GasIcon: Difference between revisions
Template page
More actions
Created page with "{{#Invoke:GasIcon|GetIcon}}" |
Add template data for visual editor |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#Invoke:GasIcon|GetIcon}} | <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" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
Example: | |||
<nowiki>{{GasIcon|LiquidMethane|Size=128px}}</nowiki> -> {{GasIcon|LiquidMethane|Size=128px}} | |||
</noinclude><includeonly>{{#Invoke:GasIcon|GetIcon}}</includeonly> | |||
Latest revision as of 21:04, 15 March 2026
Display a gas or liquid's icon image, with a link to its corresponding wiki page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Gas Name | 1 | The name of the gas to be displayed. | String | required |
| Size | Size | Size of icon to be displayed.
| String | optional |
Example: