Difference between revisions of "Template:Honor infobox/echoSkillLevel/echoBadge"
From Pathfinder Wiki
DesignerThan (talk | contribs) m (DesignerThan moved page Template:Honor infobox/echoSkillLevel/echoSkillLevelBadge to Template:Honor infobox/echoSkillLevel/echoBadge without leaving a redirect) |
DesignerThan (talk | contribs) |
||
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/ | + | {{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 | ||
}} | }} |
Revision as of 11:33, 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
- }}
123