A Wiki in the Desert
Log in

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=Icon - {{trim|{{{name}}}}}.png}}
+
  |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.

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the skill

Example
Knapping
Stringrequired
Disciplinediscipline

The discipline this skill is associated with

Example
Architecture
Stringsuggested
Iconicon

The icon to show on the infobox

Example
Icon - Knapping.png
Stringsuggested