Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
Line 66: Line 66:
 
|col1_label1={{Localize|Skill Level}}
 
|col1_label1={{Localize|Skill Level}}
 
|col1_data1={{Honor infobox/echoSkillLevel | skill={{{skill|{{GetHonorMetaData|parameter=skill}}}}}}}
 
|col1_data1={{Honor infobox/echoSkillLevel | skill={{{skill|{{GetHonorMetaData|parameter=skill}}}}}}}
 +
{{#ifeq:{{#var:honorstate}}|piloting||
 
|col1_label2={{Localize|Approval authority}}
 
|col1_label2={{Localize|Approval authority}}
 
|col1_data2={{#if:{{{authority|}}}|{{Localize|{{{authority}}}|Authorities}}|{{GetHonorMetaData|parameter=authority}}}}
 
|col1_data2={{#if:{{{authority|}}}|{{Localize|{{{authority}}}|Authorities}}|{{GetHonorMetaData|parameter=authority}}}}
 
|col2_label2={{Localize|Year of Introduction}}
 
|col2_label2={{Localize|Year of Introduction}}
 
|col2_data2={{#vardefine:localYear|{{{year|{{GetHonorMetaData|language=/en|parameter=year}}}}}}}{{#iferror:{{#expr:1+{{#var:localYear|X}} }}|{{Localize|Unknown}}|{{#var:localYear}} }}
 
|col2_data2={{#vardefine:localYear|{{{year|{{GetHonorMetaData|language=/en|parameter=year}}}}}}}{{#iferror:{{#expr:1+{{#var:localYear|X}} }}|{{Localize|Unknown}}|{{#var:localYear}} }}
 +
}}
 
|rowclass3=honor-infobox-seeAlso
 
|rowclass3=honor-infobox-seeAlso
 
|col1_label3={{Localize|See also}}
 
|col1_label3={{Localize|See also}}

Revision as of 00:21, 18 March 2022

This template creates an infobox for an honor.

Mechanics

The mechanics are just opaque magic (sorry).

Example

<div style="max-width: 300px">

{{Honor infobox
|honorlandingpage=AY Honors/Camping Skills IV
|skill=2
|year=2001
|category=Recreation
|authority=General Conference
|insignia=Camping_Skills_IV.png
|insignia_source=foo
|master1=Wilderness
}}

</div>


Camping Skills IV
Recreation
Skill Level
123
See also