The {{IssuePages}} directive shows every page of an issue, small, on mats: the front cover on its own, the inside pages two at a time as an open magazine (pages 2–3, 4–5 and so on), and the back cover on its own.
Syntax
{{IssuePages file:pages-of-gq-1998-03}}
Name the File article that holds the issue's page sheet. The file: prefix is optional.
The page sheet
The pages come from one image, a page sheet, that holds every page of the issue 200 pixels high. It is made from the issue's PDF with the PdfToSprite tool, which also writes a line describing where each page is in the sheet:
{{IssueThumbnailsData Hash=… |#| HeightPixels=200 |#| RowWidths=… |#| Positions=…}}
- Upload the sheet (an
.aviffile) as a File article, such aspages-of-gq-1998-03. - Paste the tool's line, exactly as written, into that File article's text. It shows nothing on the file page.
- Add
{{IssuePages file:pages-of-gq-1998-03}}to the issue article where the pages should appear.
If you upload a new sheet for the same File article, paste the new line too: the pages are not shown when the image and the line do not match.
How it looks
Pages are paired in the order of the PDF, so its first page is the front cover and its last page the back cover. Each mat is labeled Front cover, Pages 2–3 and so on, and each page has its own description for screen readers.
Captions
To describe a mat in place of its page label, add a line for it after the file, with the page or pair of pages and the caption:
{{IssuePages file:pages-of-gq-1998-03
1 |#| Caption=Liam Neeson
2-3 |#| Caption=Ralph Lauren Purple Label
360 |#| Caption=Calvin Klein
}}
Number pages as the mats do, from the front cover as page 1. Either page of a spread names the whole spread, so 2, 3 and 2-3 all mean the same mat. Mats without a line keep their page label.
Captions are written in the issue article, not the file, so each language's article has its own. Keep them short: a caption is one line, and at most about 17 characters fit under a single page and 33 under a spread. Longer captions are cut short on the page, and saving warns about them.
An issue with more than six mats shows its first row and a Show all button that opens the rest.
When nothing shows
Readers see nothing when the File article does not exist, has no line, or has a line that does not match its image. Saving warns about a line that cannot be read, about {{IssuePages}} with no file, and about caption lines it cannot use. A caption for a page past the end of the issue, or for a mat that already has one, is left out. The reason for anything else is noted in the page source, as IssuePages: followed by the problem.
Return to the Formatting Guide.