Difference between revisions of "Template:ArgHeader"

From Game Detectives Wiki
Jump to: navigation, search
[checked revision][checked revision]
(Slight tweak (experimental))
(experimental)
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Main Page]] > [[List of Investigations]] > [[{{{arg|{{BASEPAGENAME}}}}}]]
+
<span id="argHeader" style="display: hidden">{{#switch:{{PAGENAME}}
 
+
|{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''{{SUBPAGENAME}}'''
<noinclude>
+
|{{ROOTPAGENAME}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''{{SUBPAGENAME}}'''
 
+
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{SUBPAGENAME}} = [[Main Page]] > [[List of Investigations]] > '''[[{{ROOTPAGENAME}}]]''' > '''[[{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}|{{#titleparts:{{PAGENAME}}|1|2}}]]''' > '''{{SUBPAGENAME}}'''
A simple template to denote that the page belongs to an ARG and add the navigation header.
+
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{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}}]]''' > '''{{SUBPAGENAME}}'''
 
+
|{{ROOTPAGENAME}}/{{#titleparts:{{PAGENAME}}|1|2}}/{{#titleparts:{{PAGENAME}}|1|3}}/{{#titleparts:{{PAGENAME}}|1|4}}/{{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}}]]''' > '''{{SUBPAGENAME}}'''
Usage: <nowiki>{{ArgHeader|arg=Eye Sigil ARG}}</nowiki>
+
|{{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}}'''
Produces: {{ArgHeader|arg=Eye Sigil ARG}}
+
}}</span><includeonly>{{#if:{{#show:{{PAGENAME}}|?argName}}||{{#set:argName={{PAGENAME}}}}}}{{#if:{{#show:{{PAGENAME}}|?argDescription}}||{{#set:argDescription={{#show:{{ROOTPAGENAME}}|?argDescription}}}}}}{{#if:{{#show:{{PAGENAME}}|?argDiscoverDate}}||{{#set:argDiscoverDate={{#show:{{ROOTPAGENAME}}|?argDiscoverDate}}}}}}{{pageType}}{{Cat}}</includeonly><noinclude>{{documentation}}
 
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:16, 17 October 2018

Main Page > List of Investigations > ArgHeader<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