Difference between revisions of "Template:NavHeader"

From PC-BSD Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
 
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
<div class="mw-pt-translate-header" style="class:mw-pt-translate-header; display:none!important; visibility:hidden!important; visibility:invisible!important" object.style.visibility="hidden"></div>
+
<div style="position:relative; left: 0px; top: -10px; height: 130px;">
 
{|style="class:mw-pt-translate-header; border-top: #FFFFFF solid 1px; align:center; border-collapse: collapse; margin-top:-15px; margin-left:0; margin-right:0; width:100%;"
 
{|style="class:mw-pt-translate-header; border-top: #FFFFFF solid 1px; align:center; border-collapse: collapse; margin-top:-15px; margin-left:0; margin-right:0; width:100%;"
 
|[[File:Translate-icon-64x44.png|right|48px|link={{canonicalurl:special:translate|title=Special:Translate&group=page-{{PAGENAME}}&task=view}}|translate]]
 
|[[File:Translate-icon-64x44.png|right|48px|link={{canonicalurl:special:translate|title=Special:Translate&group=page-{{PAGENAME}}&task=view}}|translate]]
Line 14: Line 14:
 
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0.1em;">{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}</span>
 
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0.1em;">{{#titleparts: {{{custompagename|{{PAGENAME}}}}}|1}}</span>
 
|}
 
|}
 +
</div>
 
{| align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 
{| align="left" style="margin-left:-7px; margin-right:20px; margin-top:2px; margin-bottom:1px"
 
|
 
|

Revision as of 18:24, 17 April 2013

translate
Previous:  Error: Your NavHeader assignment is malformed. Return to Table of Contents Next:  Error: Your NavHeader assignment is malformed.
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

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox