Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
m (Account for T:T->Localization move)
Line 33: Line 33:
 
|colspan="2"  id="infobox-title"|{{{honorname}}}
 
|colspan="2"  id="infobox-title"|{{{honorname}}}
 
|-
 
|-
| colspan="2" |[[AY Honors/{{{category}}}{{GetLangSuffix}}|{{:Template:Translations/{{{category}}}{{GetLangSuffix}}}}]]
+
| colspan="2" |[[AY Honors/{{{category}}}{{GetLangSuffix}}|{{:Localization:{{{category}}}{{GetLangSuffix}}}}]]
 
|-
 
|-
 
|colspan="2" style="padding: .5rem 2rem;"|
 
|colspan="2" style="padding: .5rem 2rem;"|
 
{{#if:{{{insignia_source|}}}
 
{{#if:{{{insignia_source|}}}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{Template:Translations/No Patch{{GetLangSuffix}}}}}}}
+
       | base = {{{insignia|{{Localization:No Patch{{GetLangSuffix}}}}}}}
 
       | base_width = 150px
 
       | base_width = 150px
       | float = {{Template:Translations/Not available at AdventSource{{GetLangSuffix}}}}
+
       | float = {{Localization:Not available at AdventSource{{GetLangSuffix}}}}
 
       | float_width = 170px
 
       | float_width = 170px
 
       | align=center
 
       | align=center
Line 47: Line 47:
 
     }}
 
     }}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{Template:Translations/No Patch{{GetLangSuffix}}}}}}}
+
       | base = {{{insignia|{{Localization:No Patch{{GetLangSuffix}}}}}}}
 
       | 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">{{:Template:Translations/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">{{:Template:Translations/Approval authority{{GetLangSuffix}}}}</span><br>{{:Template:Translations/{{{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">{{:Template:Translations/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}}} }}|{{:Template:Translations/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">{{:Template:Translations/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">{{:Template:Translations/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">{{:Template:Translations/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">{{:Template:Translations/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 04:19, 27 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|]]%|%