Template:Index-page: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(more nice text)
mNo edit summary
 
Line 64: Line 64:
|}
|}


[[Category:Templates|{{{sort}}}]]
[[Category:Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
{{infobox|bg=#e0e0ff|text=This is a selected list of articles and tutorials about '''{{{topic|Topic parameter not set!}}}'''.
{{infobox|bg=#e0e0ff|text=This is a selected list of articles and tutorials about '''{{{topic|Topic parameter not set!}}}'''.

Latest revision as of 15:37, 22 November 2022

This template sorts adds an infobox with a text explaning that this an index or overview page for a certain topic.

Usage

Include this template at the top of index pages like so:

{{index-page|category=Editing|topic=elevators}}

Parameters

sort

The optional 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=Lifts}} an article named "Creating a Lift" goes under "L" (specifically "Lifts")

category

The required category parameter for this template influences the category to which the info box links:

Example Description
{{index-page|category=Editing}} Link to Category:Editing

topic

The required topic parameter sets the text that will be inserted into the info box after the word about:

Example Description
{{index-page|topic=textures}} Creates: "This is a selected list of articles and tutorials about textures."