Difference between revisions of "Template:Article list details"

From Arkaz
Jump to: navigation, search
Line 1: Line 1:
 
== 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, both 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:
+
''{{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>{{
 
<pre><nowiki>{{
#ifeq: {{PAGENAME}} | Main Page |
+
 
* Article for main page |
+
#ifeq: {{{1|<noinclude>main</noinclude>}}}
* Article for other pages }}</nowiki>
+
| main
 +
| * [[History of Arkaz|Plane of Arkaz]]
 +
| * Listing during include
 +
* Used on other pages }}</nowiki>
 
</pre>
 
</pre>
  
Line 14: Line 17:
  
 
<pre><nowiki>{{
 
<pre><nowiki>{{
#ifeq: {{{1}}} | nav |
+
 
* Article for navigation only |}}</nowiki>
+
#ifeq: {{{1|<noinclude>nav</noinclude>}}}
</pre>
+
| nav
 +
| * [[Extra Content for Navigation]] |}}</nowiki></pre>
  
  

Revision as of 11:54, 4 October 2007

About this template

Article list 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:

{{

#ifeq: {{{1|<noinclude>main</noinclude>}}}
| main 
| * [[History of Arkaz|Plane of Arkaz]]
| * Listing during include
* Used on other pages }}

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:

{{

#ifeq: {{{1|<noinclude>nav</noinclude>}}}
| nav
| * [[Extra Content for Navigation]] |}}


Whitespace should be kept to a minimum - it will show.

Template Content