Difference between revisions of "Template:HonorSubpage"

From Pathfinder Wiki
(add support for pilots)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><onlyinclude><languages /> __NOTOC__
+
<includeonly><onlyinclude><languages />{{#invoke:HonorTitle|setDisplayTitle}}__NOTOC__
 +
{{HonorPrintHeader}}
 
<div class="container mw-parser-output">
 
<div class="container mw-parser-output">
 
<div class="row">
 
<div class="row">
<div class="col-md-3 order-md-last">
+
<div class="col-md-4 order-md-last mb-3 mb-md-0 noprint">
<div style="position: sticky; top: calc(80px + 1em);">{{#vardefine:landing|{{#titleparts:{{{page|{{PAGENAME}}}}}|2}}{{GetLangSuffix}}}}{{Honor_infobox
+
<div style="position: sticky; top: calc(80px + 1em);">{{Honor_infobox}}
|honorname={{GetHonorName|page={{#var:landing}}}}
 
|skill={{#dpl:title={{#var:landing}}|include={HonorLanding}:skill}}
 
|year={{#dpl:title={{#var:landing}}|include={HonorLanding}:year}}
 
|category={{#dpl:title={{#var:landing}}|include={HonorLanding}:category}}
 
|authority={{#dpl:title={{#var:landing}}|include={HonorLanding}:authority}}
 
|insignia={{#dpl:title={{#var:landing}}|include={HonorLanding}:insignia}}
 
|insignia_source={{{insignia_source|}}}
 
|field_trip={{{field_trip|}}}
 
|instructor={{{instructor|}}}
 
|master1={{{master1|}}}
 
|master2={{{master2|}}}
 
|advanced={{#var:advanced}}
 
}}
 
 
</div><!--close sticky container-->
 
</div><!--close sticky container-->
 
</div><!--close column-->
 
</div><!--close column-->
<div class="col-md-9">
+
<div class="col-md-8 col-print-12">
{{HonorTabs|page={{#titleparts:{{PAGENAMEwithoutLang|page={{PAGENAME}}}}|-1}}}}
+
{{#invoke:HonorTabs|generateHonorTabs}}
<div class="tab-content" id="myTabContent"></onlyinclude></includeonly>[[Category:Honor templates]]
+
<div class="tab-content" id="myTabContent">
 +
{{#ifeq:{{{state|{{GetHonorMetaData|language=/en|parameter=state}}}}}|piloting|{{Template:Piloting Honor Info}}}}</onlyinclude></includeonly>[[Category:Honor templates]][[Category:Uses HonorSubpage Template]]
 
<noinclude>
 
<noinclude>
 
<templatedata>
 
<templatedata>

Latest revision as of 16:02, 3 April 2022


This template creates the main structure of an honor subpage, including the honor infobox and the honor tabs

Template parameters

ParameterDescriptionTypeStatus
No parameters specified