قالب:Pagelist
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Usage
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. From 1–20 pages may be included in the list.
By default, the namespace of the page including this template is used for each of the links. An optional "nspace" parameter can be specified to provide a different namespace to use for the links.
Two other optional parameters are supported to provide formatting of the page links. If specified, the "delim" parameter is included before and after each page name. Optionally, the "edelim" parameter can specify the delimiter used at the end of the page name—in this case the "delim" tag is still used for the beginning of the page name.
This template is mostly useful from within other templates that accept a variable number of page names as arguments. For example, the page arguments {{{1}}}–{{{10}}} can be passed to this template using {{pagelist|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}}}. Any parameters not specified to the original template will be passed as empty parameters and not listed by the pagelist template.
Examples
Type this | To get this |
---|---|
{{Pagelist|X1|X2|X3|X4|X5}} | X1، X2، X3، X4و X5 |
{{Pagelist|nspace=Template|X1|X2|X3|X4|X5}} | X1، X2، X3، X4و X5 |
{{Pagelist|nspace= |delim=''|X1|X2|X3|X4|X5}} | [[::X1|X1]]، [[::X2|X2]]، [[::X3|X3]]، [[::X4|X4]]و [[::X5|X5]] |
The above documentation is transcluded from قالب:Pagelist/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |