The <pages />
tag is used to transclude content from the Page namespace into other 'presentation' namespaces (usually the main namespace).
The syntax for the tag is as follows:
<pages index="Index Name.pdf" from="first page" to="last page" step="integer" include="pagelist range" exclude="pagelist range" fromsection="section name" tosection="section name" onlysection="section name" />
Attributes:
index
attribute contains the name of the Index page whose pages are to be transcluded (without the Index:
prefix).from
and to
attributes contain the page numbers (or filenames; see note below) of the starting and ending pages, as they appear in the page names of the Page namespace. These are usually integers (for PDF or DjVu indexes) but can also be full filenames (for individual-file indexes).step
attribute is used to only transclude every nth page between from
and to
.include
and exclude
attributes take page ranges like 7,10-16
. The former can also be useful for only transcluding a single page.fromsection
and tosection
attributes (only available if the Labeled Section Transclusion extension is installed) allow for the transclusion of only part of a page (e.g. when a chapter ends on the page on which the next chapter begins). They allow the same types of values as from
and to
.header
attribute can be used to auto-generate a header. See below for more details.If the header
attribute is provided, the {{MediaWiki:Proofreadpage header template}} will be loaded at the top of the output. This template will be passed the following parameters:
|value=
— the value of the header
attribute. Should be set to toc
for tables of contents; other values can be used depending on what the header template requires.|current=
|prev=
and |next=
|from=
and |to=
— formatted page numbers that were passed as the from
and to
attributes.|title=
, |author=
, etc.It's possible to not use the pagelist tag to list the pages of an Index, and instead list individual File NS page names. In this case, it's still possible to use the pages tag, but only with the from
, to
, fromsection
and tosection
attributes.
For example, given an Index Index:Example work
(note that it doesn't have a file extension) with a page list that like this:
[[Page:Page one.png|title]] [[Page:Page two.png|2]] [[Page:Page three.png|3]] [[Page:Page four.png|4]]
The second and third pages can be transcluded with the following:
<pages index="Example work" from="Page two.png" to="Page four.png" />
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4