Difference between revisions of "Template:NavHeader"

From PC-BSD Wiki
Jump to: navigation, search
(34 intermediate revisions by one user not shown)
Line 1: Line 1:
<span class="firstHeading" style="display:none; visibility:hidden;">{{ARTICLEPAGENAME}}</span>
+
{| class="navheader noprint screen" style="border-collapse:collapse; align:center; margin-left:0; margin-right:0; width:100%;"
<span style="display:none; visibility:hidden;">{{FULLPAGENAME}}</span>
+
|class="navleft" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}}{{DISPLAYTITLE:<span class="hide_stuff">{{FULLPAGENAME}}</span>}}<!-- Always: 'back link', 'forward link', localized 'back link', localized 'forward link' -->
<!-- {{DISPLAYTITLE:<span style="display:none">{{PAGENAME}}</span>}} -->
+
|class="navheaderbuffer" style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: left; font-weight: bold; color: #8F80fd;"|
{| class="noprint screen firstheading" style="border-collapse:collapse; align:center; margin-left:0; margin-right:0; width:100%;"
+
|class="navmiddle" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderMiddle}}
|style="border-bottom: #BEBEBE solid 2px; width: 32px;"|{{NavHeaderLeft|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}} <!-- 1st value always back, 2nd value always forward, 3rd value localized title for 'back link', 4th value localized title for 'forward link' -->
+
|class="navheaderbuffer" style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: right; font-weight: bold; color: #8F80fd;"|
|style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: left; font-weight: bold; color: #8F80fd;"|
+
|class="navright" style="border-bottom: #BEBEBE solid 2px; width: 128px;"|{{NavHeaderRight|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}} <!-- Always: 'back link', 'forward link', localized 'back link', localized 'forward link' -->
|style="border-bottom: #BEBEBE solid 2px; width: 32px;"|{{NavHeaderMiddle}}
+
|style="border-bottom: #BEBEBE solid 2px; width: 45%; text-align: right; font-weight: bold; color: #8F80fd;"|
+
|style="border-bottom: #BEBEBE solid 2px; width: 32px;"|{{NavHeaderRight|{{{back}}}{{putLang}}|{{{forward}}}{{putLang}}|{{#if:{{{l7dBack|}}}|{{{l7dBack}}}|{{{back}}}}}|{{#if:{{{l7dForward|}}}|{{{l7dForward}}}|{{{forward}}}}}}} <!-- 1st value always back, 2nd value always forward, 3rd value localized title for 'back link', 4th value localized title for 'forward link' -->
+
 
|-
 
|-
|style="border-bottom: #aaaaaa solid 1px; height: 40px;" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="margin-left:0; margin-right:0; width:100%; font-size: 200%; line-height: 1.2em; margin-bottom: 0;">{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}</span>
+
|style="border-bottom: #aaaaaa solid 1px; height: 40px;" colspan=5|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="margin-left:0; margin-right:0; width:100%; font-size: 200%; line-height: 1.2em; margin-bottom: 0em;">{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}}</span>
 
|}
 
|}
 
{| class="noprint" align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 
{| class="noprint" align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
Line 16: Line 13:
 
|__FORCETOC__
 
|__FORCETOC__
 
| __TOC__  
 
| __TOC__  
|}<br><noinclude>
+
|}<br /><noinclude><!-- {{#if: {{getLang}}|{{:Translations:{{#titleparts: {{PAGENAME}}|1|1}}/Page display title/{{getLang}}}}|{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}}} -->
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
=== Description ===
 
=== Description ===
This assumes local links and greatly simplifies the process of adding or editing the navigation header for handbook pages. As you can see from the above, the navigation header overlays the page name, while a duplicate page name is placed below. 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>
+
{{note|align=right|width=35%|icon64=Translators should localize the following templates used: 
 +
:::* [[template:Word-previous]],
 +
:::* [[template:Word-next]],
 +
:::* [[template:Phrase-return to table of contents]], and
 +
:::* [[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>
 
===Usage===
 
===Usage===
'''<nowiki>{{</nowiki>NavHeader|back='''''<name of the previous page>'''''|forward='''''<name of the next page>'''''|l7dBack='''''<localized name of the previous page>'''''|l7dForward='''''<localized name of the next page>'''''|custompagename='''''<custom page name>'''''}}'''
+
'''<nowiki>{{</nowiki>NavHeader|back='''''<name of the previous page>'''''|forward='''''<name of the next page>'''''|custompagename='''''<custom page name>'''''}}'''
 
[[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 02:42, 3 October 2013

Contents


Description

NOTE: Translators should localize the following templates used:

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 error page while properly formed but links to missing pages are added to the Special:wanted pages list. Text ought to be formatted with desired capitalization.

Usage

{{NavHeader|back=<name of the previous page>|forward=<name of the next page>|custompagename=<custom page name>}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox