Difference between revisions of "Template:ArgHeader"

From Game Detectives Wiki
Jump to: navigation, search
(test expanded compat)
(divtest)
Line 1: Line 1:
{{#switch:{{PAGENAME}}
+
<div id="argHeader">{{#switch:{{PAGENAME}}
 
|{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''{{SUBPAGENAME}}'''
 
|{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''{{SUBPAGENAME}}'''
 
|{{ROOTPAGENAME}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''{{SUBPAGENAME}}'''
 
|{{ROOTPAGENAME}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''{{SUBPAGENAME}}'''
Line 7: Line 7:
 
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}|{{#titleparts:{{PAGENAME}}|1|2}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}|{{#titleparts:{{PAGENAME}}|1|3}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}|{{#titleparts:{{PAGENAME}}|1|4}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}|{{#titleparts:{{PAGENAME}}|1|5}}]]''' > '''{{SUBPAGENAME}}'''
 
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}|{{#titleparts:{{PAGENAME}}|1|2}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}|{{#titleparts:{{PAGENAME}}|1|3}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}|{{#titleparts:{{PAGENAME}}|1|4}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}|{{#titleparts:{{PAGENAME}}|1|5}}]]''' > '''{{SUBPAGENAME}}'''
 
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{#titleparts:{{PAGENAME}}|1|6}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}|{{#titleparts:{{PAGENAME}}|1|2}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}|{{#titleparts:{{PAGENAME}}|1|3}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}|{{#titleparts:{{PAGENAME}}|1|4}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}|{{#titleparts:{{PAGENAME}}|1|5}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{#titleparts:{{PAGENAME}}|1|6}}|{{#titleparts:{{PAGENAME}}|1|6}}]]''' > '''{{SUBPAGENAME}}'''
 
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{#titleparts:{{PAGENAME}}|1|6}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}|{{#titleparts:{{PAGENAME}}|1|2}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}|{{#titleparts:{{PAGENAME}}|1|3}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}|{{#titleparts:{{PAGENAME}}|1|4}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}|{{#titleparts:{{PAGENAME}}|1|5}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{#titleparts:{{PAGENAME}}|1|5}}/{{#titleparts:{{PAGENAME}}|1|6}}|{{#titleparts:{{PAGENAME}}|1|6}}]]''' > '''{{SUBPAGENAME}}'''
}}<includeonly>{{#set:argName={{PAGENAME}}}}{{#if:{{#show:{{PAGENAME}}|?argDescription}}||{{#set:argDescription={{#show:{{ROOTPAGENAME}}|?argDescription}}}}}}{{#set:argDiscoverDate={{#show:{{ROOTPAGENAME}}|?argDiscoverDate}}}}{{pageType}}{{Cat}}{{#if:{{{arg|}}}||}}</includeonly><noinclude>{{documentation}}
+
}}</div><includeonly>{{#set:argName={{PAGENAME}}}}{{#if:{{#show:{{PAGENAME}}|?argDescription}}||{{#set:argDescription={{#show:{{ROOTPAGENAME}}|?argDescription}}}}}}{{#set:argDiscoverDate={{#show:{{ROOTPAGENAME}}|?argDiscoverDate}}}}{{pageType}}{{Cat}}{{#if:{{{arg|}}}||}}</includeonly><noinclude>{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 01:23, 15 August 2018

<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Template documentation[view] [edit] [history] [purge]
Description

This is the {{ArgHeader}} or ARG Header meta-template.

It is an intelligent template used to add a navigation bar at the head of any ARG page. It is self-structuring and does not require any variable input.

Usage
{{ArgHeader}}

Main Page > List of Investigations > ArgHeader