Difference between revisions of "Template:SkillGroup"
From A Wiki in the Desert
(Created page with "<includeonly> {{Skill|name={{trim|{{{name}}}}}|discipline={{trim|{{{discipline}}}}}|icon=Icon - {{trim|{{{name}}}}}.png}} {{#set: Is grouping=True}} </noinclude>") |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{Skill |
− | {{Skill|name={{trim|{{{name}}}}}|discipline={{trim|{{{discipline}}}}}|icon= | + | |name={{trim|{{{name}}}}} |
− | {{#set: Is grouping=True}} | + | |discipline={{trim|{{{discipline}}}}} |
+ | |icon={{#if: {{{icon|}}} | {{trim|{{{icon|}}}}}}} | ||
+ | }}{{#set: Is grouping=True}}</includeonly> | ||
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "name": { | ||
+ | "label": "Name", | ||
+ | "description": "The name of the skill", | ||
+ | "example": "Knapping", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "discipline": { | ||
+ | "label": "Discipline", | ||
+ | "description": "The discipline this skill is associated with", | ||
+ | "example": "Architecture", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "icon": { | ||
+ | "label": "Icon", | ||
+ | "description": "The icon to show on the infobox", | ||
+ | "example": "Icon - Knapping.png", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | } | ||
+ | }, | ||
+ | "description": "This template adds a skill infobox to the page and marks it as a group semantically." | ||
+ | } | ||
+ | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 17:19, 25 May 2021
This template adds a skill infobox to the page and marks it as a group semantically.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the skill
| String | required |
Discipline | discipline | The discipline this skill is associated with
| String | suggested |
Icon | icon | The icon to show on the infobox
| String | suggested |