Difference between revisions of "Template:DoNavHeader"

From PC-BSD Wiki
Jump to: navigation, search
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
{| class="navheader noprint screen"
 
{| class="navheader noprint screen"
|class="navleft" |[[File:Placeholder.png|class=navheader prev|link={{{back|Navigation Header}}}{{putVers}}{{putLang}}|{{word-previous{{putLang}}}} {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{back}}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{{back|{{:Navigation Header}}}}}}}]]
+
|class="navleft" |{{#if: {{{back}}}|[[File:Placeholder.png|class=navheader prev|link={{{back|Navigation Header}}}{{putVers}}{{putLang}}|{{word-previous{{putLang}}}} {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{back}}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{{back|{{:Navigation Header}}}}}}}]]|}}
 
|class="navheaderbuffer" |
 
|class="navheaderbuffer" |
 
|class="navmiddle" |{{NavHeaderMiddle}}
 
|class="navmiddle" |{{NavHeaderMiddle}}
 
|class="navheaderbuffer" |
 
|class="navheaderbuffer" |
|class="navright" |[[File:Placeholder.png|class=navheader next|link={{{forward|Navigation Header}}}{{putVers}}{{putLang}}|{{word-previous{{putLang}}}} {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{forward}}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{{forward|{{:Navigation Header}}}}}}}]]
+
|class="navright" |{{#if: {{{forward}}}|[[File:Placeholder.png|class=navheader next|link={{{forward|Navigation Header}}}{{putVers}}{{putLang}}|{{word-next{{putLang}}}} {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{forward}}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{{forward|{{:Navigation Header}}}}}}}]]|}}
 
|-
 
|-
|class="titleheader" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>
+
|class="titleheader" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; class="titleheadertext">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}{{putVers}}/Page display title/{{getLang}}}}|{{#titleparts: {{PAGENAME}}|1}}}}</span>
 
|}
 
|}
 
{| class="noprint movetoc"
 
{| class="noprint movetoc"
Line 21: Line 21:
 
:::* [[template:Phrase-return to table of contents]], and  
 
:::* [[template:Phrase-return to table of contents]], and  
 
:::* [[template:Phrase-table of contents]]. }}
 
:::* [[template:Phrase-table of contents]]. }}
This assumes local links and greatly simplifies the process of adding or editing the navigation header for handbook pages. On any appropriate wiki page, the navigation header effectively overlays the page name, while a duplicate page name is placed below. It is entirely transparent with regard to localization except for the word and phrase templates used. The ''contents'' box is forced to appear in all pages that contain at least one header and is placed to the left beneath the line of the page name. An alternative page name is an option with the ''custompagename'' variable assignment. The home/index link should be modified within the Template:NavHeaderMiddle itself, while below may be pasted into a page with minor modifications to define what will become each link and the text for each link's alternate label. Missing or malformed link info defaults to a [[Navigation Header|''Navigation Header error page'']] while properly formed but links to missing pages are added to the [[Special:WantedPages|''Special:wanted pages'']] list. Text ought to be formatted with desired capitalization.<br>
+
This template is not used directly, it is called by '''''{{local|link=template:UseTOC}}.''''' It uses a common information store in ''template:UseTOC'' to provide the appropriate "forward" and "back" links automatically. On any appropriate wiki page, the navigation header effectively overlays the page name, while a duplicate page name is placed below. It is entirely transparent with regard to localization except for the word and phrase templates used. The ''contents'' box is forced to appear in all pages that contain at least one header and is placed toThis the left beneath the line of the page name. <!-- (not currently supported: An alternative page name is an option with the ''custompagename'' variable assignment. --> The home/index link should be modified within the Template:NavHeaderMiddle itself. Missing or malformed link info defaults to a [[Navigation Header|''Navigation Header error page'']] while properly formed but links to missing pages are added to the [[Special:WantedPages|''Special:wanted pages'']] list. <br/>
 
===Usage===
 
===Usage===
'''<nowiki>{{</nowiki>NavHeader|back='''''<name of the previous page>'''''|forward='''''<name of the next page>'''''|custompagename='''''<custom page name>'''''}}'''
+
'''<nowiki>{{</nowiki>UseTOC|nav}}'''
 
[[Category:Navigation]][[category:templates]]
 
[[Category:Navigation]][[category:templates]]
 
</noinclude>[[category:Uses NavHeader]][[category:{{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|1}}]][[category:{{#if: {{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|2}}|{{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|2}}|{{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}} }}]]<!-- allowing transclusion *** no spaces or text beyond this line -->
 
</noinclude>[[category:Uses NavHeader]][[category:{{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|1}}]][[category:{{#if: {{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|2}}|{{#titleparts: {{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}}|1|2}}|{{{custompagecategory|{{{custompagename|{{PAGENAME}} }}} }}} }}]]<!-- allowing transclusion *** no spaces or text beyond this line -->

Revision as of 16:11, 14 December 2013

Contents


Description

NOTE: Translators should localize the following templates used:

This template is not used directly, it is called by template:UseTOC. It uses a common information store in template:UseTOC to provide the appropriate "forward" and "back" links automatically. On any appropriate wiki page, the navigation header effectively overlays the page name, while a duplicate page name is placed below. It is entirely transparent with regard to localization except for the word and phrase templates used. The contents box is forced to appear in all pages that contain at least one header and is placed toThis the left beneath the line of the page name. The home/index link should be modified within the Template:NavHeaderMiddle itself. Missing or malformed link info defaults to a Navigation Header error page while properly formed but links to missing pages are added to the Special:wanted pages list.

Usage

{{UseTOC|nav}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox