Template:Index-page: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
add category parameter help
Tels (talk | contribs)
m fix thinko and rem space at top
Line 3: Line 3:


The parameter '''category''' sets the name and link of the category that is linked inside the infobox.
The parameter '''category''' sets the name and link of the category that is linked inside the infobox.
</noinclude>
</noinclude><includeonly>
<includeonly>
{{infobox|bg=#e0e0ff|text=This is an manually generated index page. The information here might be '''out-of-date''' or '''incorrect'''.
{{infobox|bg=#e0e0ff|text=This is an manually generated index page. The information here might be '''out-of-date''' or '''incorrect'''.
<br>Please see the appropriate '''[[:Category:{{{category|undef!}}}|{{{category|Category parameter not set!}}}]]''' page for a  full list of articles for this topic.}}
<br>Please see the appropriate '''[[:Category:{{{category|undef!}}}|{{{category|Category parameter not set!}}}]]''' category for a  full list of articles for this topic.}}
[[Category:Index pages|{{{sort|{{PAGENAME}}}}}]]
[[Category:Index pages|{{{sort|{{PAGENAME}}}}}]]
</includeonly>
</includeonly>

Revision as of 16:52, 16 October 2007


This template sorts the including article into the right Index page category.

Usage

Include this template at the top of index-page-related articles like so:

{{index-page}}

Parameters

The sort parameter for this template influences the place where the article will be sorted in the category:

Example Description
{{index-page}} default sorting order based on article name
{{index-page|sort=Doors}} an article named "Creating a Door" goes under "D" (specifically "Doors")


The parameter category sets the name and link of the category that is linked inside the infobox.