Difference between revisions of "Template:Nav Details"

From Arkaz
Jump to: navigation, search
(New page: == About this template == ''{{PAGENAME}}'' contains the list of primary articles/categories underneath this heading. This page should be used for navigation purposes: including on the main...)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<includeonly><br /><br />
 
== About this template ==
 
== About this template ==
''{{PAGENAME}}'' contains the list of primary articles/categories underneath this heading. This page should be used for navigation purposes: including on the main page, article entries which need such a list, and the side bar navigation. Separate listings can be created within the same article by using:
+
 
 +
</includeonly>
 +
''{{#if: {{NAMESPACE}}|{{NAMESPACE}}:}}{{PAGENAME}}'' contains the list of primary articles/categories underneath this heading. This page should be used for navigation purposes: including on the main page, article entries which need such a list, and the side bar navigation. Separate listings can be created within the same article by using:
 
<pre><nowiki>* Article 1 {{
 
<pre><nowiki>* Article 1 {{
  

Latest revision as of 12:53, 10 October 2007

Template:Nav Details contains the list of primary articles/categories underneath this heading. This page should be used for navigation purposes: including on the main page, article entries which need such a list, and the side bar navigation. Separate listings can be created within the same article by using:

* Article 1 {{

#ifeq: {{{1|<noinclude>main</noinclude>}}}
| main 
| * [[Article 2]]
| <nowiki>

</nowiki>
}}

This allows for the main page to have a partial listing, while the navigation has a complete listing, or a See Also footnote. Note that the listing within an article and the navigation itself can also differ. Article listings included for navigation purposes have the "nav" parameter passed. Again, this allows for independent listings later:

{{Getting Started article list|nav}}

This can then be used in the condition:

* Article 1 {{

#ifeq: {{{1|<noinclude>nav</noinclude>}}}
| nav
| * [[Article 2]]
| <nowiki>

</nowiki>
}}


Whitespace should be kept to a minimum - it will show. The <nowiki></nowiki> tags are used to remove the excess whitespace as much as possible.