Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
(Change "Part of" to "Category")
(Adding master categories. Not done yet!)
Line 25: Line 25:
 
}}
 
}}
 
</noinclude>
 
</noinclude>
<includeonly>{| 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;"
+
<includeonly>{{#vardefine:master|{{GetMasterCategoryList|honorname={{{honorname}}}|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;"
 
|-
 
|-
 
|colspan="2" style="font-size:1.6rem; font-weight: bold;"|{{{honorname}}}
 
|colspan="2" style="font-size:1.6rem; font-weight: bold;"|{{{honorname}}}
Line 56: Line 57:
 
| 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;">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}}}
 
| 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}}}
 +
{{#varexists: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>
 +
{{#var:master}}
 +
}}
 
|}
 
|}
 
<includeonly>
 
<includeonly>
 
<noinclude></translate></noinclude>
 
<noinclude></translate></noinclude>

Revision as of 05:04, 14 January 2021


This template creates an infobox for an honor.

TODO

  • Fix broken things

Example

{{Honor infobox2 |honorname=Aboriginal Lore |skill=1 |year=2001 |category=Arts and Crafts |authority=General Conference |insignia=Aboriginallore.png }} Template:Honor infobox2