Difference between revisions of "Template:NavHeaderFirst"

From PC-BSD Wiki
Jump to: navigation, search
m
m
(13 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Uses NavHeader]]<!-- intentionally allowing transclusion -->
+
{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}
{|style="position:absolute; background: #F5F5ff; background: #F5F5ff; border: #BABAff solid; border-width: 0px 0px 2px 0px; align:center; border-collapse: collapse; margin-top:-50px; margin-left:0 margin-right:0; width:100%"
+
{|style="background: #F5F5ff; border-bottom: #BABAff 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; border: 0px #000000 solid;"|
+
|style="width: 32px;"|
|
+
|style="width: 45%; text-align: left; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|
|style="width: 32px; border: 0px #000000 solid;"|{{template:NavHeaderMiddle}}
+
|style="width: 32px;"|{{template:NavHeaderMiddle}}
|
+
|style="width: 45%; text-align: right; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|
|style="width: 32px; border: 0px #000000 solid;"|{{template:NavHeaderRight|behind={{{back}}}|ahead={{{forward}}}}}
+
|style="width: 32px;"|{{template:NavHeaderRight|{{{back}}}|{{{forward}}}}} <!-- 1st value always back, 2nd value always forward -->
 +
|}
 +
{|style="border-collapse: collapse; border-bottom: #aaaaaa solid 1px; margin-top:10px; margin-left:0; margin-right:0; width:100%;"
 +
|<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0.1em;">{{{custompagename|{{PAGENAME}}}}}</span>
 
|}
 
|}
<span target="{{PAGENAME}}"; id="{{PAGENAME}}"; style="font-size: 200%; line-height: 1.2em; margin-bottom: 0.1em;">{{PAGENAME}} </span>
+
{| 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:0px; margin-bottom:5px"
+
 
|
 
|
 
|-
 
|-
 
|__FORCETOC__
 
|__FORCETOC__
 
| __TOC__  
 
| __TOC__  
|}
+
|}<br>
 
<noinclude>
 
<noinclude>
 
[[Category:Navigation]]
 
[[Category:Navigation]]
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 +
=== 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>
 
=== Usage ===
 
=== Usage ===
This assumes local links, corrects the formatting issue with text wrap under the images, and greatly simplifies the process of adding or editing the navigation header. 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><br>
+
'''<nowiki>{{</nowiki>NavHeaderFirst|forward='''''<name of the next page>'''''|custompagename='''''<custom page name>'''''}}'''
'''<nowiki>{{</nowiki>NavHeaderFirst|back='''''<name of the current page>'''''|forward='''''<name of the next page>'''''}}'''
+
 
</noinclude>
 
</noinclude>
 +
[[Category:Uses NavHeader]]<!-- intentionally allowing transclusion -->

Revision as of 15:11, 3 November 2012

Return to Table of Contents Next:  Error: Your NavHeader assignment is malformed.
NavHeaderFirst

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

{{NavHeaderFirst|forward=<name of the next page>|custompagename=<custom page name>}}