Difference between revisions of "Template:NavHeader"

From PC-BSD Wiki
Jump to: navigation, search
(still trying to beat this bug)
Line 1: Line 1:
 
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
 
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
 
{| class="noprint screen" style="border-bottom: #BEBEBE solid 2px; border-top: #ffffff solid 2px; align:center; border-collapse: collapse; margin-top:-20px; margin-left:0; margin-right:0; width:100%;"
 
{| class="noprint screen" style="border-bottom: #BEBEBE solid 2px; border-top: #ffffff solid 2px; align:center; border-collapse: collapse; margin-top:-20px; margin-left:0; margin-right:0; width:100%;"
|style="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' -->
+
|style="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' -->
 
|style="width: 45%; text-align: left; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|
 
|style="width: 45%; text-align: left; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|
 
|style="width: 32px;"|{{NavHeaderMiddle}}
 
|style="width: 32px;"|{{NavHeaderMiddle}}

Revision as of 17:34, 20 August 2013

Previous:  {{{l7dBack}}}

Return to Table of Contents Next: 
NavHeader

Contents


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 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>|l7dBack=<localized name of the previous page>|l7dForward=<localized name of the next page>|custompagename=<custom page name>}}

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox