A Wiki in the Desert
Log in

Difference between revisions of "Template:SkillGroup"

From A Wiki in the Desert
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{Skill
 
<includeonly>{{Skill
 
   |name={{trim|{{{name}}}}}
 
   |name={{trim|{{{name}}}}}
   |discipline={{trim|{{{discipline|}}}}}
+
   |discipline={{trim|{{{discipline|Unknown}}}}}
 
   |icon={{#if: {{{icon|}}} | {{trim|{{{icon|}}}}}}}
 
   |icon={{#if: {{{icon|}}} | {{trim|{{{icon|}}}}}}}
}}{{#set: Is grouping=True}}</includeonly>
+
}}{{#set: Is grouping=True}}{{#set: Is school={{#if: {{{school|}}}|{{{school}}}|false}}}}{{#set: Is given={{#if: {{{given|}}}|{{{given}}}|false}}}}</includeonly>
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>
Line 28: Line 28:
 
"type": "string",
 
"type": "string",
 
"suggested": true
 
"suggested": true
 +
},
 +
"school": {
 +
"label": "School",
 +
"description": "Set if this skill is leart by paying tution at a school",
 +
"type": "boolean",
 +
"default": "false",
 +
"autovalue": "false",
 +
"suggested": true
 +
},
 +
"given": {
 +
"label": "Given",
 +
"description": "Used to specify skills that are granted to the player",
 +
"type": "boolean",
 +
"default": "false"
 
}
 
}
 
},
 
},

Latest revision as of 13:36, 24 June 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
Schoolschool

Set if this skill is leart by paying tution at a school

Default
false
Auto value
false
Booleansuggested
Givengiven

Used to specify skills that are granted to the player

Default
false
Booleanoptional