From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
m (Cleanup)
(have to use #ifexist for correct line breaks)
 
(71 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly><div style="clear: both; width: 100%; margin-bottom: 1em; border: 1px solid #AAAAAA; -moz-border-radius-bottomleft: 10px; -moz-border-radius-bottomright: 10px; text-align: left;" class="NavFrame">
<includeonly><div class="nav_box header_nav mw-collapsible mw-collapsed noprint"><div class="mw-collapsible-header">
<p style="position: relative;" class="NavHead">{{qif|test={{{num|}}}|then={{P|{{{num}}}}}&nbsp;}}[[{{{game}}}|'''{{{game}}}''']] | [[{{{game}}}/Table of Contents|Table of Contents]] | [[{{{game}}}/Walkthrough|Walkthrough]] {{qif|test={{{custom|}}}|then=<nowiki>|</nowiki> {{{custom}}} }}</p>
* '''[[{{{game}}}]]'''
<div class="NavContent" style="display: none;">
* {{#ifeq:{{FULLPAGENAME}}|{{ucfirst:{{{game|}}}}}|[[#Table of Contents|Table of Contents]]|[[{{{game}}}/Table of Contents|Table of Contents]][[Category:Sub-pages]]}}
<p style="color: #06033f; font-weight: normal; margin: 0; padding-top: .1em; padding-bottom: .1em; border-bottom: 1px solid #CCCCCC; font-size: 150%; padding-left: 5px; margin-bottom: .6em;">Table of Contents</p>
* [[{{{game}}}/Gameplay|Gameplay]]
{{:{{{game}}}/Table of Contents}}
* [[{{{game}}}/Walkthrough|Walkthrough]]{{#ifexist:{{{game|}}}/Custom Nav|
{{-}}
* {{:{{{game|}}}/Custom Nav}}}}{{#if:{{{custom|}}}|
</div></div>{{qif|test={{{num|}}}|then=[[Category:Guides at completion stage {{{num}}}]]}}</includeonly><noinclude>This template is used '''at the top''' of (just about) every article to ease navigation around guides. Custom versions can be made, but deference should usually be given to this standard template.
* {{{custom}}}}}</div><div class="mw-collapsible-content"><p class="toc_heading">Table of Contents</p>{{:{{{game}}}/Table of Contents}}{{-}}</div></div><swsquaread /></includeonly><noinclude>
{{Documentation}}


== Usage ==
[[Category:Templates]]</noinclude>
 
Add the template to a page like this:
<pre>
{{All Game Nav
|game=Game Name Goes Here
|num=(optional number from 0 to 4)
|tocpage=(optional name of Table of Contents subpage)}}
|custom=(optional custom nonhidden links)
}}
</pre>
 
This looks as follows when added to the guide without num:<br />
{{All Game Nav|game=The Legend of Zelda: Ocarina of Time}}
Or, with num:<br />
{{All Game Nav|game=The Legend of Zelda: Ocarina of Time|num=3}}
 
=== Usage of num ===
 
Always be sure to use the num variable on the introduction page of guides to represent the overall completion level of the guide. You may also use num on pages of considerable length where it would be useful to ascertain the level of completion since it may be ordinarily difficult to tell with longer pages.
 
* '''0''' represents an ''abysmal level of completion'' for a guide that has just been created. There is nearly no useful information present in a level-0 guide.
* '''1''' represents a ''low level of completion''. There is some useful information present, but it is neither organized nor plentiful.
* '''2''' represents a ''halfway point'', or a guide that is half "complete"
* '''3''' represents a level of ''near completion'', or a guide which is almost "complete". Such a guide may be missing only a few small sections or require only a limited amount of cleaning.
* '''4''' represents a ''"complete" and "perfected guide"'', these guides provide all known useful information to the reader in a clear and organized manner.  Additions to these guides are definitly useful and no guide is ever really finished on a StrategyWiki.
 
=== Usage of custom ===
 
The custom variable is for adding extra links to be always visible to the left of the walkthrough link.  To make the look and feel standard, put a | in between each link, separated by spaces, and enclosed in nowiki tags, so it wont break template markup.. example usage:
 
<pre>
{{All Game Nav
|game=The Legend of Zelda: Ocarina of Time
|custom=[[The Legend of Zelda/Maps|Maps]] <nowiki><nowiki></nowiki>|<nowiki></nowiki></nowiki> [[The Legend of Zelda:Ocarina of Time/Controls|Controls]]
}}
</pre>
 
example output:
{{All Game Nav
|game=The Legend of Zelda: Ocarina of Time
|custom=[[The Legend of Zelda/Maps|Maps]] <nowiki>|</nowiki> [[The Legend of Zelda:Ocarina of Time/Controls|Controls]]
}}
 
 
=== Usage of tocpage ===
 
'''This variable has been deprecated, as tocpages have been enabled by default.'''
 
{{All Game Nav|game=The Legend of Zelda: Ocarina of Time|tocpage=Table of Contents}}
 
[[Category:Templates|A]]</noinclude>

Latest revision as of 03:23, 21 May 2024

This page has been transcluded from Template:Header Nav/Documentation.


This template is used at the top of every guide page to ease navigation around guides. For simple games with only a single page guide, use {{Header Bar}} instead.

Usage

Add the template to a page like this:

{{Header Nav
|game=Game name
|custom=custom non-hidden links (optional)
}}

This looks as follows when added to the guide:

{{Header Nav|game=The Legend of Zelda: Ocarina of Time}}

Usage of custom

To put custom links on every page in a guide, a Custom Nav page needs to be created (e.g. Chip's Challenge/Custom Nav) which will be included in the Header Nav for each page in that guide after the Walkthrough link but before any other custom links. This is the recommended way to include standard custom links on Header Navs in a guide, and apart from creating the Custom Nav page, no other modifications to the guide have to be made.

To add extra links to the Header Nav for a specific page, use the custom parameter for the Header Nav on that page. To make the look and feel standard, each entry after the first should be a bullet point. Example usage:

{{Header Nav
|game=The Legend of Zelda: Ocarina of Time
|custom=[[The Legend of Zelda: Ocarina of Time/Maps|Maps]]
* [[The Legend of Zelda:Ocarina of Time/Controls|Controls]] 
}}

Example output: