Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
Line 27: Line 27:
 
}}
 
}}
 
</noinclude>
 
</noinclude>
<includeonly>{{#vardefine:master|{{GetMasterCategoryList|category={{{category}}}|master1={{{master1|}}}|master1_group={{{master1_group}}}|master2={{{master2|}}}|master_group2={{{master_group2}}} }} }}
+
<includeonly>{{#vardefine:master|{{GetMasterCategoryList|category={{{category}}}|master1={{{master1|}}}|master1_group={{{master1_group}}}|master2={{{master2|}}}|master_group2={{{master_group2}}} }} }}{{#vardefine:patch|{{#switch:{{{insignia|}}}|No Patch.png|No_Patch.png={{#lst:Localization:All{{GetLangSuffix}}|No Patch}}|default={{{insignia|{{#lst:Localization:All{{GetLangSuffix}}|No Patch}}}}}}}}}
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output">
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output">
 
{| class="honor-infobox"
 
{| class="honor-infobox"
Line 38: Line 38:
 
{{#if:{{{insignia_source|}}}
 
{{#if:{{{insignia_source|}}}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{#lst:Localization:All{{GetLangSuffix}}|No Patch}}}}}
+
       | base = {{#var:patch}}
 
       | base_width = 150px
 
       | base_width = 150px
 
       | float = {{#lst:Localization:All{{GetLangSuffix}}|Not available at AdventSource}}
 
       | float = {{#lst:Localization:All{{GetLangSuffix}}|Not available at AdventSource}}
Line 47: Line 47:
 
     }}
 
     }}
 
   |{{Superimpose
 
   |{{Superimpose
       | base = {{{insignia|{{#lst:Localization:All{{GetLangSuffix}}|No Patch}}}}}
+
       | base = {{#var:patch}}
 
       | base_width = 150px
 
       | base_width = 150px
 
       | align=center
 
       | align=center

Revision as of 18:29, 31 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
[[File:|170px|link=|alt=|]]
[[File:|150px|alt=|]]
Skill Level
123
Approval authority
Year of Introduction

2001

Part of

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