Template:Index-page: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
m (fix thinko and rem space at top)
m (try again :-)
Line 1: Line 1:
<noinclude>
<noinclude>{{template-help|name=index-page|sort=Index page|where=top}}
{{template-help|name=index-page|sort=Index page|where=top}}


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><includeonly>
</noinclude><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!}}}]]''' category for a full list of articles for this topic.}}
<br>Please see the category '''[[:Category:{{{category|undef!}}}|{{{category|Category parameter not set!}}}]]''' 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:53, 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.