Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
m (Remove leading colon from Localizaitons)
m (Switch to one-page localizer)
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}}|{{Localize|{{{category}}}}}]]
 
|-
 
|-
 
|colspan="2" style="padding: .5rem 2rem;"|
 
|colspan="2" style="padding: .5rem 2rem;"|
 
{{#if:{{{insignia_source|}}}
 
{{#if:{{{insignia_source|}}}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{Localization:No Patch{{GetLangSuffix}}}}}}}
+
       | base = {{{insignia|{{Localize|No Patch}}}}}
 
       | base_width = 150px
 
       | base_width = 150px
       | float = {{Localization:Not available at AdventSource{{GetLangSuffix}}}}
+
       | float = {{Localize|Not available at AdventSource}}
 
       | float_width = 170px
 
       | float_width = 170px
 
       | align=center
 
       | align=center
Line 47: Line 47:
 
     }}
 
     }}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{Localization:No Patch{{GetLangSuffix}}}}}}}
+
       | base = {{{insignia|{{Localize|No Patch}}}}}
 
       | base_width = 150px
 
       | base_width = 150px
 
       | align=center
 
       | align=center
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">{{Localize|Skill Level}}</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">{{Localize|Approval authority{{GetLangSuffix}}}}</span><br>{{Localization:{{{authority|Unknown}}}}}
| 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">{{Localize|Year of Introduction}}</span><br>
{{#iferror:{{#expr:1+{{{year|X}}} }}|{{Localization:Unknown{{GetLangSuffix}}}}|{{{year}}} }}
+
{{#iferror:{{#expr:1+{{{year|X}}} }}|{{Localize|Unknown}}|{{{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">{{Localize|Part of}}</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">{{Localize|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}}
</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">{{Localize|Answer Key}}</htmltag></div></div>
 
|}</div>
 
|}</div>
 
</includeonly>
 
</includeonly>

Revision as of 22:38, 29 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
Arts, Crafts and Hobbies
Skill Level
123
Approval authority
Localization:General Conference
Year of Introduction

2001

Part of

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