Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
Line 38: Line 38:
 
|No_Patch.png={{Localize|No Patch|Images}}
 
|No_Patch.png={{Localize|No Patch|Images}}
 
|{{#var:localInsignia}}
 
|{{#var:localInsignia}}
}}|{{Localize|No Patch|Images}}}}}}
+
}}|{{Localize|No Patch|Images}}}}}}<!--
 +
check if Not availabel at AdventSource should be shown
 +
-->{{#vardefine:showNotAdventSrc|{{#ifeq:{{{state}}}|piloting|true|{{#if:{{{insignia_source|{{GetHonorMetaData|language=/en|parameter=insignia_source}}}}}|true|false}}}}}}
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output noprint">
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output noprint">
 
{{Infobox
 
{{Infobox
Line 44: Line 46:
 
|above={{GetHonorName|page={{{honorlandingpage|}}}}}
 
|above={{GetHonorName|page={{{honorlandingpage|}}}}}
 
|subheader=[[AY Honors/{{#var:localCategory}}{{GetLangSuffix}}|{{Localize|{{#var:localCategory}}}}]]
 
|subheader=[[AY Honors/{{#var:localCategory}}{{GetLangSuffix}}|{{Localize|{{#var:localCategory}}}}]]
|image={{#if:{{{insignia_source|{{GetHonorMetaData|language=/en|parameter=insignia_source}}}}}
+
|image={{#ifeq:{{#var:showNotAdventSrc}}|true|{{Superimpose
  |{{Superimpose
 
 
       | base = {{#var:patch}}
 
       | base = {{#var:patch}}
 
       | base_width = 100%
 
       | base_width = 100%

Revision as of 22:25, 19 February 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
Approval authority
General Conference
Year of Introduction
2001
See also