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)
(change the column width's so they are the same with the landing page)
(7 intermediate revisions by the same user 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">
<div style="position: sticky; top: calc(80px + 1em);">{{#vardefine:langSuffix|{{GetLangSuffix}}}}{{#vardefine:landingPage|{{GetLandingPage}}}}{{Honor_infobox
+
<div style="position: sticky; top: calc(80px + 1em);">{{Honor_infobox}}
|honorname={{GetHonorName}}{{#var:langSuffix}}
 
|skill={{GetMetaData|parameter=skill}}
 
|year={{GetMetaData|parameter=year}}
 
|category={{GetMetaData|parameter=category}}
 
|authority={{GetMetaData|parameter=authority}}
 
|insignia={{GetMetaData|parameter=insignia}}
 
|insignia_source={{GetMetaData|parameter=insignia_source}}
 
|field_trip={{GetMetaData|parameter=field_trip}}
 
|instructor={{GetMetaData|parameter=instructor}}
 
|master1={{GetMetaData|parameter=master1}}
 
|master2={{GetMetaData|parameter=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">
{{HonorTabs}}
+
{{#invoke:HonorTabs|generateHonorTabs}}
 
<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 20:24, 14 January 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