More actions
(Start on param to add page to size category) Tag: 2017 source edit |
(Implementing template param size category thing) Tag: 2017 source edit |
||
Line 24: | Line 24: | ||
"Add Category": { | "Add Category": { | ||
"label": "Add to size category?", | "label": "Add to size category?", | ||
"description": "If | "description": "If \"1\", this article will be added to the selected size's category.", | ||
"type": "boolean" | "type": "boolean", | ||
"suggested": true | |||
} | } | ||
}, | }, | ||
Line 39: | Line 40: | ||
<code><b><font color=#A978DA>2X</font></b></code> | <code><b><font color=#A978DA>2X</font></b></code> | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#ifeq:XS|{{{Size}}}|<code><b><font color=#E04949>XS</font></b></code>|{{#ifeq:SM|{{{Size}}}|<code><b><font color=#E0A400>SM</font></b></code>|{{#ifeq:MD|{{{Size}}}|<code><b><font color=#E0A400>MD</font></b></code>|{{#ifeq:LG|{{{Size}}}|<code><b><font color=#00E0A8>LG</font></b></code>|{{#ifeq:XL|{{{Size}}}|<code><b><font color=#49ABE0>XL</font></b></code>|{{#ifeq:2X|{{{Size}}}|<code><b><font color=#A978DA>2X</font></b></code>||}}|}}|}}|}}|}}|}}</includeonly> | <includeonly>{{#ifeq:XS|{{{Size}}}|<code><b><font color=#E04949>XS</font></b></code>|{{#ifeq:SM|{{{Size}}}|<code><b><font color=#E0A400>SM</font></b></code>|{{#ifeq:MD|{{{Size}}}|<code><b><font color=#E0A400>MD</font></b></code>|{{#ifeq:LG|{{{Size}}}|<code><b><font color=#00E0A8>LG</font></b></code>|{{#ifeq:XL|{{{Size}}}|<code><b><font color=#49ABE0>XL</font></b></code>|{{#ifeq:2X|{{{Size}}}|<code><b><font color=#A978DA>2X</font></b></code>||}}|}}|}}|}}|}}|}}</includeonly><includeonly>{{#ifeq:1|{{{Add Category}}}|[[Category:{{{Size}}} parts]]]</includeonly> |
Revision as of 20:09, 8 September 2024
Known issue: This template creates a leading whitespace. Use without adding a whitespace as a workaround, e.g., "This engine is{{Size|LG}} and quite shiny."
Use this template to include a stylized part size string in an article. Requires the Size parameter, selected from a provided list.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size | Size size | Part size
| String | required |
Add to size category? | Add Category | If "1", this article will be added to the selected size's category. | Boolean | suggested |
The part size will appear on the article as per:
XS
SM
MD
LG
XL
2X