Difference between revisions of "Template:Honor infobox"

From Pathfinder Wiki
(make the honor infobox a bit more responsive and better looking)
Line 30: Line 30:
 
}}|{{#lst:Localization:All{{GetLangSuffix}}|No Patch}}}}}}
 
}}|{{#lst:Localization:All{{GetLangSuffix}}|No Patch}}}}}}
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output noprint">
 
<templatestyles src="Honor infobox/style.css" /><div class="mw-parser-output noprint">
{| class="honor-infobox"
+
{| class="honor-infobox" style="table-layout: fixed; width: 100%;"
 
|-
 
|-
 
|colspan="2"  id="infobox-title"|{{GetHonorName}}
 
|colspan="2"  id="infobox-title"|{{GetHonorName}}
Line 40: Line 40:
 
   |{{Superimpose
 
   |{{Superimpose
 
       | base = {{#var:patch}}
 
       | base = {{#var:patch}}
       | base_width = 150px
+
       | base_width = 100%
 +
      | base_max_width = 150px
 
       | float = {{#lst:Localization:All{{GetLangSuffix}}|Not available at AdventSource}}
 
       | float = {{#lst:Localization:All{{GetLangSuffix}}|Not available at AdventSource}}
 
       | float_width = 170px
 
       | float_width = 170px
Line 49: Line 50:
 
   |{{Superimpose
 
   |{{Superimpose
 
       | base = {{#var:patch}}
 
       | base = {{#var:patch}}
       | base_width = 150px
+
       | base_width = 100%
 +
      | base_max_width = 150px
 
       | align=center
 
       | align=center
 
     }}
 
     }}

Revision as of 12:09, 5 September 2021

This template creates an infobox for an honor.

Mechanics

The mechanics are just opaque magic (sorry). And Examples won't work because the template get's the honorname from the page title.

Example

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