Difference between revisions of "Template:Flatten"

From PC-BSD Wiki
Jump to: navigation, search
Line 7: Line 7:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
=== Description ===
 
=== Description ===
''needs revision''<br>
+
This template is used in conjunction with the [[flat html]] page. This assumes local links. An alternative page name is an option with the ''custompagename'' variable assignment. This causes the content of the named page to be transcluded under an orange header (to distinguish from subheaders and consequently standard pages) for the page name or the custom name if provided. 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 an ''Error'' as shown above. Text ought to be formatted with desired capitalization.<br>
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===
 
'''<nowiki>{{</nowiki>flatten|'''''<name of the page>'''''|custompagename='''''<custom page name>'''''}}'''
 
'''<nowiki>{{</nowiki>flatten|'''''<name of the page>'''''|custompagename='''''<custom page name>'''''}}'''
 
</noinclude>
 
</noinclude>
 
<noinclude>[[category:templates]]</noinclude>
 
<noinclude>[[category:templates]]</noinclude>

Revision as of 01:23, 15 April 2012

Error

[[[[:Template:Fullurl:]] edit]]

Error


Description

This template is used in conjunction with the flat html page. This assumes local links. An alternative page name is an option with the custompagename variable assignment. This causes the content of the named page to be transcluded under an orange header (to distinguish from subheaders and consequently standard pages) for the page name or the custom name if provided. 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 an Error as shown above. Text ought to be formatted with desired capitalization.

Usage

{{flatten|<name of the page>|custompagename=<custom page name>}}