Difference between revisions of "Template:Honor infobox"
From Pathfinder Wiki
DesignerThan (talk | contribs) (moved the styling into the template stylesheet) |
|||
Line 30: | Line 30: | ||
</noinclude> | </noinclude> | ||
<includeonly>{{#vardefine:master|{{GetMasterCategoryList|category={{{category}}}|master={{{master|}}}|master_group={{{master_group}}}|master2={{{master2|}}}|master_group2={{{master_group2}}} }} }} | <includeonly>{{#vardefine:master|{{GetMasterCategoryList|category={{{category}}}|master={{{master|}}}|master_group={{{master_group}}}|master2={{{master2|}}}|master_group2={{{master_group2}}} }} }} | ||
− | + | <templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output"> | |
+ | {| class="honor-infobox" | ||
|- | |- | ||
− | |colspan="2" | + | |colspan="2" id="infobox-title"|{{{honorname}}} |
|- | |- | ||
− | | colspan="2" | + | | colspan="2" |{{{category}}} |
|- | |- | ||
|colspan="2" style="padding: .5rem 2rem;"| | |colspan="2" style="padding: .5rem 2rem;"| | ||
Line 54: | Line 55: | ||
}} | }} | ||
|- | |- | ||
− | + | | colspan="2" class="infobox-value text-light bg-secondary" |<span style="font-size: 1rem; font-weight: bold;">Skill Level</span><br><span style="display: inline-block; line-height: 1.5em; width: 1.5em; border-radius: 4em; color: white; background-color:{{SkillColor|skill={{{skill}}}|star=1}};">1</span> <span style="display: inline-block; line-height: 1.5em; width: 1.5em; border-radius: 4em; color: white; background-color: {{SkillColor|skill={{{skill}}}|star=2}};">2</span> <span style="display: inline-block; line-height: 1.5em; width: 1.5em; border-radius: 4em; color: white; background-color: {{SkillColor|skill={{{skill}}}|star=3}};">3</span> | |
|- | |- | ||
− | | | + | | class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">Approval authority</span><br>{{{authority|Unknown}}} |
− | + | | class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">Year of Introduction</span><br>{{{year|Unknown}}} | |
− | |||
− | |||
− | | | ||
{{#if:{{#var:master}}|{{!}}- | {{#if:{{#var:master}}|{{!}}- | ||
− | {{!}}colspan="2" | + | {{!}}colspan="2" class="infobox-value text-light bg-secondary" {{!}}<span class="infobox-value-emphasize">Part of</span> |
{{#var:master}} | {{#var:master}} | ||
}} | }} |
Revision as of 13:54, 16 January 2021
This template creates an infobox for an honor.
TODO
- Fix broken things
Example
{{Template:Honor infobox
|honorname=Aboriginal Lore
|skill=1
|year=2001
|category=Arts and Crafts
|authority=General Conference
|insignia=Aboriginallore.png
}}
Aboriginal Lore | |
Arts, Crafts and Hobbies | |
Skill Level 1 2 3 | |
Approval authority General Conference |
Year of Introduction 2001 |
Part of
Artisan Master Award%|%[[AY Honors/Just For Test Master Award|]]%|% |