defzone.net@gmail.comLiên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bai vietDia diemAlbum anhGameCua hang
  1. Home
  2. Wiki
  • PrefixIndex
  • PrefixIndex/doc
  • PrefixIndex/sandbox
  • PrefixIndex/testcases
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{priTemplate:Pri}}

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

[edit]

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}}

  • Berlin
  • Great Indifference
  • Hell
  • Lust
  • Peace
  • Roman Britain
  • War! (film)
  • War (1989 video game)
  • War (2000 video game)
  • War (2017 novel)
  • War (album)
  • War (comics)
  • the Australasian Antarctic Expedition
  • the Dow

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}}

  • Berlin
  • Great Indifference
  • Hell
  • Lust
  • Peace
  • Roman Britain
  • War! (film)
  • War (1989 video game)
  • War (2000 video game)
  • War (2017 novel)
  • War (album)
  • War (comics)
  • the Australasian Antarctic Expedition
  • the Dow

Syntax

[edit]

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

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:PrefixIndex in articles based on its TemplateData.

TemplateData for PrefixIndex

This template transcludes Special:PrefixIndex, with added formatting controls.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Prefix1 prefix

The prefix to list or search from; defaults to the current page that the template is transcluded from.

Stringrequired
Column widthcolwidth

Width of columns to use, in em units.

Example
30em
Stringoptional
Hide redirectsredr hideredirects

If set, does not display redirects.

Booleanoptional
Strip prefixstripprefix

If set, strip the prefix value from displayed list items.

Booleanoptional

See also

[edit]
  • 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
The above documentation is transcluded from Template:PrefixIndex/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCửa hàngLiên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2025 DefZone.Net. All rights reserved.
PrivacyTermsSitemap