Template:PrefixIndex
This template transcludes Special:PrefixIndex, which can be done with {{Special:PrefIndex}}, but adds formatting. It can split the list into multiple columns, remove redirects, and strip the output of the prefix.
Usage
This template transcludes Special:PrefixIndex (yes, you can do that!) along with some extra stuff, to produce a list of pages with names beginning with a certain prefix. Enter the prefix in the first unnamed parameter. To split the list into multiple columns, enter the column width (e.g. 15em, or 30em) in the |colwidth= parameter. To hide redirects from the list, enter anything in the |redr= parameter and to strip the given prefix from all the page names, enter anything |stripprefix= parameter.
You can do most of this stuff (except for the |columns= and |colwidth= part) by directly transcluding the special page. Its documentation and talk can be seen at the (bizarrely located due to technical reasons) pages Wikipedia:Special:PrefixIndex and Wikipedia talk:Special:PrefixIndex.
Like, for example: {{Special:PrefixIndex/Dogs of|stripprefix=1|hideredirects=1}}
The main thing this template adds is the ability to specify columns and column width.
Compare this to the equivalent usage with {{PrefixIndex}}:
Like, for example: {{PrefixIndex|Dogs of|stripprefix=1|hideredirects=1|colwidth=12em}}
Syntax
Vertical format that takes up a lot of space and is easy to read:
{{PrefixIndex
| prefix =
| stripprefix =
| hideredirects =
| colwidth =
}}
Horizontal format:
{{PrefixIndex||stripprefix=|hideredirects=|colwidth=}}
Parameters
TemplateData for PrefixIndex
This template transcludes Special:PrefixIndex, with added formatting controls.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Prefix | 1 prefix | The prefix to list or search from; defaults to the current page that the template is transcluded from. | String | required |
| Column width | colwidth | Width of columns to use, in em units.
| String | optional |
| Hide redirects | redr hideredirects | If set, does not display redirects. | Boolean | optional |
| Strip prefix | stripprefix | If set, strip the prefix value from displayed list items. | Boolean | optional |
See also
- Special:PrefixIndex
- Wikipedia:Special:PrefixIndex
- Wikipedia talk:Special:PrefixIndex
- {{Look from}} to create a link to a list of all page names which begin with a given word or words
- {{In title}} to create a link to a list of all page names which contain a given word or words
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.