Difference between revisions of "Template:HonorSubpage"

From Pathfinder Wiki
(Implemented the needed changes for answerkey variants and implemented the new templates to retrieve date from the HonorLanding Page)
Line 3: Line 3:
 
<div class="row">
 
<div class="row">
 
<div class="col-md-3 order-md-last">
 
<div class="col-md-3 order-md-last">
<div style="position: sticky; top: calc(80px + 1em);">{{Honor_infobox
+
<div style="position: sticky; top: calc(80px + 1em);">{{#vardefine:langSuffix|{{GetLangSuffix}}}}{{#vardefine:landingPage|{{GetLandingPage}}}}{{Honor_infobox
|honorname={{GetHonorName|page={{{page|{{BASEPAGENAME}}}}}{{GetLangSuffix}}}}
+
|honorname={{GetHonorName}}{{#var:langSuffix}}
|skill={{#dpl:title={{{page|{{BASEPAGENAME}}}}}|include={HonorLanding}:skill}}
+
|skill={{GetMetaData|parameter=skill}}
|year={{#dpl:title={{{page|{{BASEPAGENAME}}}}}|include={HonorLanding}:year}}
+
|year={{GetMetaData|parameter=year}}
|category={{#dpl:title={{{page|{{BASEPAGENAME}}}}}{{GetLangSuffix}}|include={HonorLanding}:category}}
+
|category={{GetMetaData|parameter=category}}
|authority={{#dpl:title={{{page|{{BASEPAGENAME}}}}}{{GetLangSuffix}}|include={HonorLanding}:authority}}
+
|authority={{GetMetaData|parameter=authority}}
|insignia={{#dpl:title={{{page|{{BASEPAGENAME}}}}}|include={HonorLanding}:insignia}}
+
|insignia={{GetMetaData|parameter=insignia}}
|insignia_source={{#dpl:title={{{page|{{BASEPAGENAME}}}}}|include={HonorLanding}:insignia_source}}
+
|insignia_source={{GetMetaData|parameter=insignia_source}}
|field_trip={{{field_trip|}}}
+
|field_trip={{GetMetaData|parameter=field_trip}}
|instructor={{{instructor|}}}
+
|instructor={{GetMetaData|parameter=instructor}}
|master1={{{master1|}}}
+
|master1={{GetMetaData|parameter=master1}}
|master2={{{master2|}}}
+
|master2={{GetMetaData|parameter=master2}}
 
|advanced={{#var:advanced}}
 
|advanced={{#var:advanced}}
 
}}
 
}}
Line 20: Line 20:
 
</div><!--close column-->
 
</div><!--close column-->
 
<div class="col-md-9">
 
<div class="col-md-9">
{{HonorTabs|page={{#titleparts:{{PAGENAMEwithoutLang|page={{PAGENAME}}}}|-1}}}}
+
{{HonorTabs}}
 
<div class="tab-content" id="myTabContent"></onlyinclude></includeonly>[[Category:Honor templates]][[Category:Uses HonorSubpage Template]]
 
<div class="tab-content" id="myTabContent"></onlyinclude></includeonly>[[Category:Honor templates]][[Category:Uses HonorSubpage Template]]
 
<noinclude>
 
<noinclude>

Revision as of 16:36, 22 March 2021


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

Template parameters

ParameterDescriptionTypeStatus
No parameters specified