Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
(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}}} }} }}
{| style="text-align: center; box-shadow: 5px 5px 10px rgba(0,0,0, .3); border-radius: 10px; margin-bottom: 0; border-collapse: inherit; border-spacing:.5em;"
+
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output">
 +
{| class="honor-infobox"
 
|-
 
|-
|colspan="2" style="font-size:1.6rem; font-weight: bold;"|{{{honorname}}}
+
|colspan="2" id="infobox-title"|{{{honorname}}}
 
|-
 
|-
| colspan="2" style="box-shadow: inset 0 0 5px rgba(0,0,0,.4); border-radius:10px; padding:.5em;" class="text-light bg-secondary"  |<span style="font-size: 1rem; font-weight: bold;">Category</span><br>{{{category}}}
+
| colspan="2" |{{{category}}}
 
|-
 
|-
 
|colspan="2" style="padding: .5rem 2rem;"|
 
|colspan="2" style="padding: .5rem 2rem;"|
Line 54: Line 55:
 
}}
 
}}
 
|-
 
|-
!colspan="2" style="text-align: center; font-size: 1rem; font-weight: bold;" |Skill Level
+
| 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>
 
|-
 
|-
|colspan="2" style="padding: 0 0 .5rem 0; font-size: 1.5rem;" |<span style="display: inline-block; line-height: 1.5em; width: 1.5em; border-radius: 4em; color: white; background-color:\
+
| class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">Approval authority</span><br>{{{authority|Unknown}}}
{{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">Year of Introduction</span><br>{{{year|Unknown}}}
|-
 
| style="box-shadow: inset 0 0 5px rgba(0,0,0,.4); border-radius:10px; padding:.5em;" class="text-light bg-secondary" | <span style="font-size: 1rem; font-weight: bold;">Approval authority</span><br>{{{authority|Unknown}}}
 
| style="box-shadow: inset 0 0 5px rgba(0,0,0,.4); border-radius:10px; padding:.5em;" class="text-light bg-secondary" | <span style="font-size: 1rem; font-weight: bold;">Year of Introduction</span><br>{{{year|Unknown}}}
 
 
{{#if:{{#var:master}}|{{!}}-
 
{{#if:{{#var:master}}|{{!}}-
{{!}}colspan="2" style="box-shadow: inset 0 0 5px rgba(0,0,0,.4); border-radius:10px; padding:.5em;" class="text-light bg-secondary"  {{!}}<span style="font-size: 1rem; font-weight: bold;">Part of</span>
+
{{!}}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|]]%|%