Nápověda:Rozšíření:ProofreadPage/Pages tag
Značka <pages />
se používá k přesunutí obsahu z jmenného prostoru Page do jiných jmenných prostorů 'prezentace' (obvykle hlavního jmenného prostoru).
Syntaxe tagu (značky) je následující:
<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" />
Atributy:
- Atribut
index
obsahuje název stránky indexu, jejíž stránky mají být zahrnuty (bez předponyIndex:
). - Atributy
from
ato
obsahují čísla stránek (nebo názvy souborů; viz poznámka níže) počáteční a koncové stránky, tak jak se objevují v názvech stránek jmenného prostoru Page. Obvykle se jedná o celá čísla (pro indexy PDF nebo DjVu), ale mohou to být i celé názvy souborů (pro indexy jednotlivých souborů). - The
step
attribute is used to only transclude every nth page betweenfrom
andto
. - The
include
andexclude
attributes take page ranges like7,10-16
. The former can also be useful for only transcluding a single page. - The
fromsection
andtosection
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 asfrom
andto
. - The
header
attribute 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 theheader
attribute. Should be set totoc
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 thefrom
andto
attributes.- 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" />
Související odkazy
- Help:Transclusion at English Wikisource