Difference between revisions of "Template:SkillGroup"
From A Wiki in the Desert
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{Skill |
− | {{Skill | ||
|name={{trim|{{{name}}}}} | |name={{trim|{{{name}}}}} | ||
|discipline={{trim|{{{discipline}}}}} | |discipline={{trim|{{{discipline}}}}} | ||
− | |icon={{trim|{{{icon}}}}} | + | |icon={{#if: {{{icon|}}} | {{trim|{{{icon|}}}}}}} |
− | }} | + | }}{{#set: Is grouping=True}}</includeonly> |
− | {{#set: Is grouping=True}} | + | <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 |