Help:Extension:ProofreadPage/Pages tag/gu
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:
- The
indexattribute contains the name of the Index page whose pages are to be transcluded (without theઅનુક્રમણિકા:prefix). - The
fromandtoattributes 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). - The
stepattribute is used to only transclude every nth page betweenfromandto. - The
includeandexcludeattributes take page ranges like7,10-16. The former can also be useful for only transcluding a single page. - The
fromsectionandtosectionattributes (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 asfromandto. - The
headerattribute can be used to auto-generate a header. See below for more details.
Header template
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 theheaderattribute. Should be set totocfor 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 thefromandtoattributes.- As well as all of the parameters from the Index page, such as
|title=,|author=, etc.
Indexes of individual images
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" />
આ પણ જુઓ
- Help:Transclusion at English Wikisource