Difference between revisions of "Template:Honor infobox/echoSkillLevel"
From Pathfinder Wiki
DesignerThan (talk | contribs) |
DesignerThan (talk | contribs) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#iferror: {{#expr: (0 < {{{skill}}}) and ({{{skill}}} < 4)}} | {{Template:Honor infobox/echoSkillLevel/echoUnknown}} | {{#ifexpr: (0 < {{{skill}}}) and ({{{skill}}} < 4) | {{#loop: numOfBadge | 1 | 3 | {{Honor infobox/echoSkillLevel/echoBadge|act-skill={{{skill}}}|skill-of-badge={{#var: numOfBadge }}}}}} | {{Template:Honor infobox/echoSkillLevel/echoUnknown}}}}}}</onlyinclude></includeonly> | <includeonly><onlyinclude>{{#iferror: {{#expr: (0 < {{{skill}}}) and ({{{skill}}} < 4)}} | {{Template:Honor infobox/echoSkillLevel/echoUnknown}} | {{#ifexpr: (0 < {{{skill}}}) and ({{{skill}}} < 4) | {{#loop: numOfBadge | 1 | 3 | {{Honor infobox/echoSkillLevel/echoBadge|act-skill={{{skill}}}|skill-of-badge={{#var: numOfBadge }}}}}} | {{Template:Honor infobox/echoSkillLevel/echoUnknown}}}}}}</onlyinclude></includeonly> | ||
− | + | <templatedata> | |
+ | { | ||
+ | "params": { | ||
+ | "skill": { | ||
+ | "label": "Skill Level", | ||
+ | "description": "Defines the actual Skill Level. Invalid values are Strings, numbers smaller than 1 or bigger than 3.", | ||
+ | "example": "1, 2, 3", | ||
+ | "type": "number", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "description": "This template creates the calls the template (Template:Honor infobox/echoSkillLevel/echoBadge) to create the Skill Level Badges. It also verifies the input \"skill\". If it isn't valid, it calls the Template (Template:Honor infobox/echoSkillLevel/echoUnknown)." | ||
+ | } | ||
+ | </templatedata> | ||
=== Examples === | === Examples === | ||
<div class="toccolours"> | <div class="toccolours"> |
Revision as of 12:00, 17 January 2021
This template creates the calls the template (Template:Honor infobox/echoSkillLevel/echoBadge) to create the Skill Level Badges. It also verifies the input "skill". If it isn't valid, it calls the Template (Template:Honor infobox/echoSkillLevel/echoUnknown).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Skill Level | skill | Defines the actual Skill Level. Invalid values are Strings, numbers smaller than 1 or bigger than 3.
| Number | required |
Examples
- {{Honor infobox/echoSkillLevel | skill=0 }}
- {{Honor infobox/echoSkillLevel | skill=1 }}
- {{Honor infobox/echoSkillLevel | skill=2 }}
- {{Honor infobox/echoSkillLevel | skill=3 }}
- {{Honor infobox/echoSkillLevel | skill=4 }}
- {{Honor infobox/echoSkillLevel | skill=test }}
- {{Honor infobox/echoSkillLevel | skill= }}
- {{Honor infobox/echoSkillLevel}}
???
123
123
123
???
???
???
???