Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
m (Account for T:T->Localization move)
m (Remove leading colon from Localizaitons)
Line 33: Line 33:
 
|colspan="2"  id="infobox-title"|{{{honorname}}}
 
|colspan="2"  id="infobox-title"|{{{honorname}}}
 
|-
 
|-
| colspan="2" |[[AY Honors/{{{category}}}{{GetLangSuffix}}|{{:Localization:{{{category}}}{{GetLangSuffix}}}}]]
+
| colspan="2" |[[AY Honors/{{{category}}}{{GetLangSuffix}}|{{Localization:{{{category}}}{{GetLangSuffix}}}}]]
 
|-
 
|-
 
|colspan="2" style="padding: .5rem 2rem;"|
 
|colspan="2" style="padding: .5rem 2rem;"|
Line 53: Line 53:
 
}}
 
}}
 
|-
 
|-
| colspan="2" class="infobox-value text-light bg-secondary" |<span class="infobox-value-emphasize">{{:Localization:Skill Level{{GetLangSuffix}}}}</span><br>{{Honor infobox/echoSkillLevel | skill={{{skill}}}}}
+
| colspan="2" class="infobox-value text-light bg-secondary" |<span class="infobox-value-emphasize">{{Localization:Skill Level{{GetLangSuffix}}}}</span><br>{{Honor infobox/echoSkillLevel | skill={{{skill}}}}}
 
|-
 
|-
| class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">{{:Localization:Approval authority{{GetLangSuffix}}}}</span><br>{{:Localization:{{{authority|Unknown}}}{{GetLangSuffix}}}}
+
| class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">{{Localization:Approval authority{{GetLangSuffix}}}}</span><br>{{Localization:{{{authority|Unknown}}}{{GetLangSuffix}}}}
| class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">{{:Localization:Year of Introduction{{GetLangSuffix}}}}</span><br>
+
| class="infobox-value text-light bg-secondary" | <span class="infobox-value-emphasize">{{Localization:Year of Introduction{{GetLangSuffix}}}}</span><br>
{{#iferror:{{#expr:1+{{{year|X}}} }}|{{:Localization:Unknown{{GetLangSuffix}}}}|{{{year}}} }}
+
{{#iferror:{{#expr:1+{{{year|X}}} }}|{{Localization:Unknown{{GetLangSuffix}}}}|{{{year}}} }}
 
{{#if:{{#var:master}}|{{!}}-
 
{{#if:{{#var:master}}|{{!}}-
{{!}}colspan="2" id="infobox-part-of" class="infobox-value text-light bg-secondary"  {{!}}<span class="infobox-value-emphasize">{{:Localization:Part of{{GetLangSuffix}}}}</span>
+
{{!}}colspan="2" id="infobox-part-of" class="infobox-value text-light bg-secondary"  {{!}}<span class="infobox-value-emphasize">{{Localization:Part of{{GetLangSuffix}}}}</span>
 
{{#var:master}}
 
{{#var:master}}
 
}}
 
}}
 
|-
 
|-
| colspan="2" |<div class="dropdown"><htmltag tagname="button" class="btn btn-accent dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{:Localization:Downloads{{GetLangSuffix}}}}</htmltag><div class="dropdown-menu" aria-labelledby="dropdownMenuButton"><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{:Localization:Requirements{{GetLangSuffix}}}}
+
| colspan="2" |<div class="dropdown"><htmltag tagname="button" class="btn btn-accent dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{Localization:Downloads{{GetLangSuffix}}}}</htmltag><div class="dropdown-menu" aria-labelledby="dropdownMenuButton"><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Requirements{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localization:Requirements{{GetLangSuffix}}}}
</htmltag><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{:Localization:Answer Key{{GetLangSuffix}}}}</htmltag></div></div>
+
</htmltag><htmltag tagname="a" href="{{fullurl:{{#titleparts:{{PAGENAME}}|2|1}}/Answer Key{{GetLangSuffix}}|action=mpdf}}" class="dropdown-item">{{Localization:Answer Key{{GetLangSuffix}}}}</htmltag></div></div>
 
|}</div>
 
|}</div>
 
</includeonly>
 
</includeonly>

Revision as of 22:09, 28 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, Crafts and Hobbies
|authority=General Conference
|insignia=Aboriginallore.png
}}


Aboriginal Lore
[[AY Honors/Arts, Crafts and Hobbies|Localization:Arts, Crafts and Hobbies]]
Localization:Skill Level
123
Localization:Approval authority
Localization:General Conference
Localization:Year of Introduction

2001

Localization:Part of

Artisan Master Award%|%[[AY Honors/Make Believe Master Award|]]%|%[[AY Honors/Just For Test Master Award|]]%|%