Template:Catlist
| This template may be substituted. |
This is a customized wrapper for the {{Pagelist}} template, which means it's built upon the other template's code. Parameters from {{Pagelist}} (except |nspace=) will only work here if they have been added to this template. If you have questions, ask at the talk page! |
| This template uses Lua: |
Usage
This template creates a comma-separated list of categories formatted as links. By default, the last two categories are separated by "and".
Examples
| Type this | To get this |
|---|---|
{{Catlist|1989|1990|1991|1992|1993}}
|
|
{{Catlist|1989|1990|1991|1992|1993|conjunction=comma}}
|
|
{{Catlist|1989|1990|1991|1992|1993|separator=semicolon}}
|
|
{{Catlist|1989|1990|1991|1992|1993|separator=dot}}
|
|
{{Catlist|1989|1990|1991|1992|1993|separator=dash}}
|
|
{{Catlist|1989|1990|1991|1992|1993|separator=slash}}
|
|
{{Catlist|foo|bar|baz|separator=pipe}}
|
|
{{Catlist|1989|1990|1991|1992|1993|separator=none}}
|
Parameters
TemplateData for Catlist
This template creates a comma-separated list of pages formatted as links. The last two pages in the list are separated by "and" instead of a comma. Any number of pages may be included in the list.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Namespace | nspace | Namsespace on which the page is located, without the trailing colon (":"). Acceptable values are "Talk", "File", "File talk", "Category", "Category talk", "Help", "Help talk", "Wikipedia", "Wikipedia talk", "Portal", "Portal talk", "Template", "Template talk", "Module", "Module talk", "User", "User talk", and anything added in the future.
| String | optional |
| Prefix (starting delimiter) | delim | Wikicode to insert before each page name. Default is nothing. If this parameter is specified and no suffix parameter is specified, the contents of this parameter would also be used as the suffix. | Unbalanced wikitext | optional |
| Suffix (ending delimiter) | edelim | Wikicode to insert after each page name. If not specified, the default is the value of the prefix parameter. | Unbalanced wikitext | optional |
| Separator | separator | The character(s) used to separate specified page names, excluding the last two. Default is comma.
| String | optional |
| Conjunction | conjunction | The character(s) used to separate the last two items. Default is "and".
| String | optional |
| Page name 1 | 1 | no description | Unbalanced wikitext | optional |
| Page name 2 | 2 | no description | Unbalanced wikitext | optional |
| Page name 3 | 3 | no description | Unbalanced wikitext | optional |
| Page name 4 | 4 | no description | Unbalanced wikitext | optional |
| Page name 5 | 5 | no description | Unbalanced wikitext | optional |
| Page name 6 | 6 | no description | Unbalanced wikitext | optional |
| Page name 7 | 7 | no description | Unbalanced wikitext | optional |
| Page name 8 | 8 | no description | Unbalanced wikitext | optional |
| Page name 9 | 9 | no description | Unbalanced wikitext | optional |
| Page name 10 | 10 | no description | Unbalanced wikitext | optional |
See also
- Template:Cat, for a single category
- Template:Pagelist, for pages
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.