Difference between revisions of "Template:Hier"

From PC-BSD Wiki
Jump to: navigation, search
(try to avoid 'local' and merge the concepts.)
(18 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>:{{#if: {{{1|}}}|{{#if: {{{anchor|}}}|[[{{{title|}}}{{putLang}}{{pound}}{{{anchor}}}|{{{1|}}} {{{alt|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}}}}}]]|{{#if: {{{anchor|}}}|[[{{{title|}}}{{putLang}}{{pound}}{{{anchor}}}]]|[[{{{title|}}}{{putLang}}}}]]}}</includeonly>
+
<includeonly>:[[{{{title|}}}{{putLang}}|{{{1|}}} {{{alt|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}} }}}]]</includeonly>
 
<noinclude>
 
<noinclude>
<!--
 
{{#if: {{{1|}}}|{{#if: {{{anchor|}}}|[[{{{title|}}}{{putLang}}{{pound}}{{{anchor}}}|{{{1|}}} {{{alt|{{#if: {{getLang}}|{{:Translations:{{#titleparts: {{{title}}}|1|1}}/Page display title/{{getLang}}}}|{{{title|Missing title}}}}}}}}]]|{{#if: {{{anchor|}}}|[[{{{title|}}}{{putLang}}{{pound}}{{{anchor}}}]]|[[{{{title|}}}{{putLang}}}}]]}}
 
-->
 
 
[[Category:Navigation]]
 
[[Category:Navigation]]
 
== Usage ==
 
== Usage ==
This assumes local links, and reduces the typing needed when adding to or editing the Table of Contents. 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 triggers a visual error image 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. The numeric need only be added once but can be first or second. If a blank line for spacing between list items is desired, the template:hier itself needs to be modified. Output of ''template:hier'' is identical to ''template:hierB'' but does not display as bold and is indented.<br><br>
+
This assumes local links, and reduces the typing needed when adding to or editing the Table of Contents. It will automatically localize if the original page has been localized. 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 triggers a visual error image 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. The numeric need only be added once but can be first or second. If a blank line for spacing between list items is desired, the template:hier itself needs to be modified. Output of ''template:hier'' is identical to ''template:hierB'' but does not display as bold and is indented.<br><br>
 
'''<nowiki>{{</nowiki>hier|'''<optional numeric>'''''|title='''''<name of the page to list>'''''|alt=<alternate text>'''''}}'''
 
'''<nowiki>{{</nowiki>hier|'''<optional numeric>'''''|title='''''<name of the page to list>'''''|alt=<alternate text>'''''}}'''
 
</noinclude>
 
</noinclude>

Revision as of 03:26, 4 September 2013

Usage

This assumes local links, and reduces the typing needed when adding to or editing the Table of Contents. It will automatically localize if the original page has been localized. 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 triggers a visual error image while properly formed but links to missing pages are added to the Special:wanted pages list. Text ought to be formatted with desired capitalization. The numeric need only be added once but can be first or second. If a blank line for spacing between list items is desired, the template:hier itself needs to be modified. Output of template:hier is identical to template:hierB but does not display as bold and is indented.

{{hier|<optional numeric>|title=<name of the page to list>|alt=<alternate text>}}