Difference between revisions of "Template:Testing"

From PC-BSD Wiki
Jump to: navigation, search
 
(5 intermediate revisions by one user not shown)
Line 4: Line 4:
 
|style="width: 45%; text-align: left; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|{{{back}}}
 
|style="width: 45%; text-align: left; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|{{{back}}}
 
|style="width: 32px; border: 0px #000000 solid;" cell-padding="0"|[[File:Left_arrow_icon.png|link={{{behind|Navigation Header}}}|Previous: {{{behind|{{:Navigation Header}}}}}]]
 
|style="width: 32px; border: 0px #000000 solid;" cell-padding="0"|[[File:Left_arrow_icon.png|link={{{behind|Navigation Header}}}|Previous: {{{behind|{{:Navigation Header}}}}}]]
|style="width: 32px; border: 0px #000000 solid;"|{{template:NavHeaderMiddle}}
+
|style="width: 32px; border: 0px #000000 solid;"|{{NavHeaderMiddle|customlink=Category:Testing|customtext=Testing Category}}
 
|style="width: 32px; border: 0px #000000 solid;" cell-padding="0"|{{template:NavHeaderRight|behind={{{back}}}|ahead={{{forward}}}}}
 
|style="width: 32px; border: 0px #000000 solid;" cell-padding="0"|{{template:NavHeaderRight|behind={{{back}}}|ahead={{{forward}}}}}
 
|style="width: 45%; text-align: right; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|{{{forward}}}
 
|style="width: 45%; text-align: right; font-weight: bold; color: #8F80fd; border: 0px #000000 solid;"|{{{forward}}}
Line 14: Line 14:
 
|
 
|
 
|-
 
|-
|__FORCETOC__
+
|{{#switch: {{{showtoc}}}
| __TOC__  
+
| yes = __FORCETOC__
 +
| no = __NOTOC__
 +
| __NOTOC__}}
 +
|{{#switch: {{{showtoc}}}
 +
| yes = __TOC__
 +
| no = __NOTOC__
 +
| __NOTOC__}}
 
|}
 
|}
 
<noinclude>http://wiki.pcbsd.org/images/3/33/Left_arrow_icon.png
 
<noinclude>http://wiki.pcbsd.org/images/3/33/Left_arrow_icon.png

Latest revision as of 21:26, 28 June 2012

Previous:  Error: Your NavHeader assignment is malformed. {{{back}}} Previous: Error: Your NavHeader assignment is malformed. Return to Table of Contents Next:  Error: Your NavHeader assignment is malformed. {{{forward}}} Next:  Error: Your NavHeader assignment is malformed.

Testing


http://wiki.pcbsd.org/images/3/33/Left_arrow_icon.png

[edit] 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 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.

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox