Difference between revisions of "Template:Honor infobox/echoSkillLevel/echoBadge"

From Pathfinder Wiki
Line 1: Line 1:
<includeonly><onlyinclude><templatestyles src="Honor infobox/EchoSkillLevelBadge/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>
+
<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/EchoSkillLevelBadge</nowiki>
+
:<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/EchoSkillLevelBadge</nowiki>
+
:<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/EchoSkillLevelBadge</nowiki>
+
:<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/EchoSkillLevelBadge
+
{{Honor infobox/echoSkillLevel/echoBadge
 
|act-skill=2
 
|act-skill=2
 
|skill-of-badge=1
 
|skill-of-badge=1
}}{{Honor infobox/EchoSkillLevelBadge
+
}}{{Honor infobox/echoSkillLevel/echoBadge
 
|act-skill=2
 
|act-skill=2
 
|skill-of-badge=2
 
|skill-of-badge=2
}}{{Honor infobox/EchoSkillLevelBadge
+
}}{{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.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Actual Skill Levelact-skill

This defines the actual skill level.

Default
1
Example
1
Numberrequired
Skill Level of Badgeskill-of-badge

This defines the Skill Level of the Badge outputed by the Template.

Default
1
Example
2
Numberrequired

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