Difference between revisions of "Template:Nav Details"

From Arkaz
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  
 
</includeonly>
 
</includeonly>
''{{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:
+
''{{#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.