Template:List of lists/doc

From blackwiki
< Template:List of lists
Revision as of 15:07, 14 December 2019 by imported>Aymatth2 (→‎Default: ce)
Jump to navigation Jump to search

This template should be placed at the foot of a list of lists article. It adds the list to Category:Lists of lists, or a subcategory, and also adds it to the category corresponding to the list of lists, which typically has the same name as the list of lists.

Default

This template can be used without any parameters to mark a page as a generic list of lists article. Like this:

{{List of lists}}

Which renders as:

Or, if the page name does not start with "List", as:

It then categorises the page into Category:Lists of lists and Category:pagename (if that category exists)

Type of list of lists

The template can be given a type of list of lists as a first parameter. For instance:

{{List of lists|book}}

will categorize the page into Category:Lists of book lists, and will render as:

Up to three types may be specified. Thus:

{{List of lists|people|military|aviation}}

will categorize the page into Category:Lists of lists of people, Category:Lists of military lists and Category:Lists of aviation lists, and will render as:

Matching category

Each list of lists should have a matching category. Thus Lists of academic journals has Category:Lists of academic journals. All entries in the list of lists should also be in the category.

By default, this template adds the list of lists to a category with the same name, if it exists. To override the category, use the |listcat= parameter. Thus, in Lists of Ruritanian villages

{{List of lists}} will add the list of lists to Category:Lists of Ruritanian villages (if that category exists)
{{List of lists |listcat=Ruritanian village lists}} will add the list of lists to Category:Ruritanian village lists

By default the template uses a blank sort key for the list-of-lists category, placing the list-of-lists at the top of the pages in the category. Use the |sort= parameter to give a different sort key. Thus:

{{List of lists |listcat=Ruritania-related lists |sort=Villages}}

Type sort key

The list-of-lists will be sorted by name in Category:Lists of lists or the chosen type subcategory. Use {{DEFAULTSORT:Sortkey}} to specify a different sort key, which will also apply to other categories defined for the list of lists with no sort key specified.

Maintenance categories

If a list-of-lists with no matching category is under 500 characters long it is also placed in Category:Short lists of lists‎, and if it is over 500 characters long it is also placed in Category:Long lists of lists‎. Creating a category with the same name as the list-of-lists page, or adding a category using the |listcat= parameter, will remove it from these maintenance categories.

The template also populates Category:Lists of lists with listcat specified‎ and Category:Lists of lists with sort specified. These maintenance categories do not indicate a problem, but may be useful to editors undertaking maintenance activity.

The template only categorises a page if the page is in the main (article) space. Thus, for instance, it will not categorise a talk page where it might be shown or discussed.

See also