More actions
(added "1" alias for size param) Tag: 2017 source edit |
(removed parser function spaghetti, now using Module:Size for handling) Tag: 2017 source edit |
||
Line 22: | Line 22: | ||
], | ], | ||
"required": true | "required": true | ||
} | } | ||
}, | }, | ||
"description": "Use this template to include a | "description": "Use this template to include a formatted part size tag in an article. Requires the Size parameter, selected from a provided list." | ||
} | } | ||
</templatedata> | </templatedata> | ||
The part size will appear on the article as per: | The part size will appear on the article as per: | ||
{{#invoke:Size|getSize|XS}} | |||
{{#invoke:Size|getSize|SM}} | |||
{{#invoke:Size|getSize|MD}} | |||
{{#invoke:Size|getSize|LG}} | |||
{{#invoke:Size|getSize|XL}} | |||
{{#invoke:Size|getSize|2X}} | |||
</noinclude><includeonly>{{#invoke:Size|getSize|{{{Size}}}}}</includeonly> | |||
Revision as of 17:27, 6 December 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 formatted part size tag in an article. Requires the Size parameter, selected from a provided list.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Size | Size size 1 | Part size
| String | required |
The part size will appear on the article as per:
XS
SM
MD
LG
XL
2X