Difference between revisions of "Template:List of lists/doc"
imported>Aymatth2 (→Default: ce) |
imported>Aymatth2 (ce) |
||
| Line 5: | Line 5: | ||
==Default== | ==Default== | ||
| − | This template can be used without any parameters to mark a page as a generic [[Wikipedia:Stand-alone lists#Lists of lists|list of lists article]]. | + | This template can be used without any parameters to mark a page as a generic [[Wikipedia:Stand-alone lists#Lists of lists|list of lists article]]. E.g.: |
:{{tlc|List of lists}} | :{{tlc|List of lists}} | ||
| − | + | which renders as: | |
{{List of lists}} | {{List of lists}} | ||
| − | + | or, if the page name does not start with "List", as: | |
{{dmbox| type = setindex | text =This article includes a [[Wikipedia:Stand-alone lists#Lists_of_lists|list of lists]]. <br> <span style="font-size: 88%;">If an [{{fullurl:Special:Whatlinkshere/{{{page-title|{{FULLPAGENAME}}}}}|namespace=0}} internal link] incorrectly led you here, you may wish to change the link to point directly to the intended article.</span>| nocat = true}} | {{dmbox| type = setindex | text =This article includes a [[Wikipedia:Stand-alone lists#Lists_of_lists|list of lists]]. <br> <span style="font-size: 88%;">If an [{{fullurl:Special:Whatlinkshere/{{{page-title|{{FULLPAGENAME}}}}}|namespace=0}} internal link] incorrectly led you here, you may wish to change the link to point directly to the intended article.</span>| nocat = true}} | ||
| − | + | The template then categorizes the page into <code>[[:Category:Lists of lists]]</code> and <code>Category:''list name''</code> (if that category exists) | |
==Type of list of lists== | ==Type of list of lists== | ||
| Line 34: | Line 34: | ||
:{{List of lists|people|military|aviation}} | :{{List of lists|people|military|aviation}} | ||
| + | |||
| + | The list will be sorted by name in [[:Category:Lists of lists]] or the chosen type categories. | ||
| + | Use <code><nowiki>{{DEFAULTSORT}}</nowiki></code> to specify a different [[Wikipedia:Categorization#Sort keys|sort key]], which will also apply to other categories for the list where no sort key is specified. | ||
| + | Thus for <code>Lists of Ruritanian villages</code> you may want to specify <code><nowiki>{{DEFAULTSORT:Ruritanian villages}}</nowiki></code>. | ||
==Matching category== | ==Matching category== | ||
Each list of lists should have a matching category. Thus [[Lists of academic journals]] has [[:Category:Lists of academic journals]]. | 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 | + | All entries in the list should also be in the category. |
| − | By default, this template adds the list | + | By default, this template adds the list to a category with the same name, if it exists. |
To override the category, use the <code>|listcat=</code> parameter. | To override the category, use the <code>|listcat=</code> parameter. | ||
Thus, in <code>Lists of Ruritanian villages</code> | Thus, in <code>Lists of Ruritanian villages</code> | ||
| Line 46: | Line 50: | ||
:<code><nowiki>{{List of lists |listcat=Ruritanian village lists}}</nowiki></code> will add the list of lists to <code>Category:Ruritanian village lists</code> | :<code><nowiki>{{List of lists |listcat=Ruritanian village lists}}</nowiki></code> will add the list of lists to <code>Category:Ruritanian village lists</code> | ||
| − | By default the template uses a blank sort key for the list | + | By default the template uses a blank sort key for the list category, placing the list at the top of the pages in the category. Use the <code>|sort=</code> parameter to give a different sort key. Thus: |
:<code><nowiki>{{List of lists |listcat=Ruritania-related lists |sort=Villages}}</nowiki></code> | :<code><nowiki>{{List of lists |listcat=Ruritania-related lists |sort=Villages}}</nowiki></code> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Maintenance categories== | ==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 | + | 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, 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 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 | + | The template only categorizes a page if the page is in the main (article) space. Thus, for instance, it will not categorize a talk page where the template might be shown or discussed. |
== See also == | == See also == | ||
Revision as of 23:08, 14 December 2019
| This is a documentation subpage for Template:List of lists. It contains usage information, categories and other content that is not part of the original template page. |
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. E.g.:
{{List of lists}}
which renders as:
| |
This article includes a list of lists. |
or, if the page name does not start with "List", as:
| |
This article includes a list of lists. If an internal link incorrectly led you here, you may wish to change the link to point directly to the intended article. |
The template then categorizes the page into Category:Lists of lists and Category:list name (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:
| |
This article includes a book-related list of lists. |
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:
| |
This article includes a people-, military- and aviation-related list of lists. |
The list will be sorted by name in Category:Lists of lists or the chosen type categories.
Use {{DEFAULTSORT}} to specify a different sort key, which will also apply to other categories for the list where no sort key is specified.
Thus for Lists of Ruritanian villages you may want to specify {{DEFAULTSORT:Ruritanian villages}}.
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 should also be in the category.
By default, this template adds the list 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 toCategory:Lists of Ruritanian villages(if that category exists){{List of lists |listcat=Ruritanian village lists}}will add the list of lists toCategory:Ruritanian village lists
By default the template uses a blank sort key for the list category, placing the list 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}}
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, 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 categorizes a page if the page is in the main (article) space. Thus, for instance, it will not categorize a talk page where the template might be shown or discussed.
See also
- List of lists of lists
- Wikipedia:Contents/Lists
- Wikipedia:Lists of lists
- Category:Lists of lists with no matching category