Difference between revisions of "Template:Honor infobox/echoSkillLevel/echoBadge"
From Pathfinder Wiki
DesignerThan (talk | contribs) m (DesignerThan moved page Template:Honor infobox/EchoSkillLevelBadge to Template:Honor infobox/echoSkillLevel/echoSkillLevelBadge: Optimization of the SkillLevel Template) |
DesignerThan (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><onlyinclude><templatestyles src="Honor infobox/ | + | <includeonly><onlyinclude><templatestyles src="Honor infobox/echoSkillLevel/echoBadge/style.css" /><span class="mw-parser-output"><span class="skill-badge bg-secondary {{#iferror: {{#expr: {{{act-skill}}}+{{{skill-of-badge}}} }} |error| {{#ifexpr:{{{act-skill|1}}}={{{skill-of-badge|1}}}|active text-primary|}}}}">{{{skill-of-badge|1}}}</span></span></onlyinclude></includeonly> |
<templatedata> | <templatedata> | ||
{ | { | ||
Line 26: | Line 26: | ||
===Example=== | ===Example=== | ||
<div class="toccolours"> | <div class="toccolours"> | ||
− | :<nowiki>{{Honor infobox/ | + | :<nowiki>{{Honor infobox/echoSkillLevel/echoBadge</nowiki> |
:<nowiki>|act-skill=2</nowiki> | :<nowiki>|act-skill=2</nowiki> | ||
:<nowiki>|skill-of-badge=1</nowiki> | :<nowiki>|skill-of-badge=1</nowiki> | ||
− | :<nowiki>}}{{Honor infobox/ | + | :<nowiki>}}{{Honor infobox/echoSkillLevel/echoBadge</nowiki> |
:<nowiki>|act-skill=2</nowiki> | :<nowiki>|act-skill=2</nowiki> | ||
:<nowiki>|skill-of-badge=2</nowiki> | :<nowiki>|skill-of-badge=2</nowiki> | ||
− | :<nowiki>}}{{Honor infobox/ | + | :<nowiki>}}{{Honor infobox/echoSkillLevel/echoBadge</nowiki> |
:<nowiki>|act-skill=2</nowiki> | :<nowiki>|act-skill=2</nowiki> | ||
:<nowiki>|skill-of-badge=3</nowiki> | :<nowiki>|skill-of-badge=3</nowiki> | ||
:<nowiki>}}</nowiki> | :<nowiki>}}</nowiki> | ||
</div> | </div> | ||
− | {{Honor infobox/ | + | |
+ | ==== Output ==== | ||
+ | <div class="toccolours"> | ||
+ | {{Honor infobox/echoSkillLevel/echoBadge | ||
|act-skill=2 | |act-skill=2 | ||
|skill-of-badge=1 | |skill-of-badge=1 | ||
− | }}{{Honor infobox/ | + | }}{{Honor infobox/echoSkillLevel/echoBadge |
|act-skill=2 | |act-skill=2 | ||
|skill-of-badge=2 | |skill-of-badge=2 | ||
− | }}{{Honor infobox/ | + | }}{{Honor infobox/echoSkillLevel/echoBadge |
|act-skill=2 | |act-skill=2 | ||
|skill-of-badge=3 | |skill-of-badge=3 | ||
}} | }} | ||
+ | </div> |
Latest revision as of 12:09, 17 January 2021
This Template outputs one badge for the Skill Level in the Infobox. To work, it needs the Actual Skill Level and the Skill Level represented by the Badge. With thoes values the Badge will be styled correctly. If the Actual Skill Level is the same as the Skill Level of the Badge it will be highlighted.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Actual Skill Level | act-skill | This defines the actual skill level.
| Number | required |
Skill Level of Badge | skill-of-badge | This defines the Skill Level of the Badge outputed by the Template.
| Number | required |
Example
- {{Honor infobox/echoSkillLevel/echoBadge
- |act-skill=2
- |skill-of-badge=1
- }}{{Honor infobox/echoSkillLevel/echoBadge
- |act-skill=2
- |skill-of-badge=2
- }}{{Honor infobox/echoSkillLevel/echoBadge
- |act-skill=2
- |skill-of-badge=3
- }}
Output
123