Background
As a part of the switch to a new PDF renderer, we would like to customize and update our styles for books.
Requirements
Books must contain the following elements:
- Book title page
- Table of contents with page numbers
- Selecting a section from the table of contents will navigate the user to the corresponding section within the book
- Infobox(if any)
- Tables (if any)
- Single-column layout
- Page numbers
- All article images and captions
- Chapter name (if applicable)
- Links to pages linked from the article (blue links and external links)
- The references for each article from the book will appear at the end of the article
- Each article must begin on a new page
- Text and image sources, contributors, and licenses at the end of each book
More information: https://www.mediawiki.org/wiki/Reading/Web/PDF_Functionality
Design
Book cover design
Book cover will be a single page.
It will have following data points
- Wikipedia wordmark
- Title of the book
- Description of the book
- Author of the book
- Language of the articles
- number of articles
- number of total pages inside the book
The cover page will be Page Number 0
Spec for the design
https://zpl.io/bWQ15eV
Book index design
Book index is used to give a more book like experience.
It will have Following elements
- Chapter name if it exists (ref to diff mocks for chapterless index)
- Name of the article with number of page it will be on
- H2s of the article with corresponding page numbers
- we won't include H3, H4, H5, H6 in the book index
Index will be Page number 1 for the book
Spec for chapterless index
https://zpl.io/aMdRZrV
Spec for index with chapters
https://zpl.io/a3X0jZd
Incorporate new print styles work into individual article
Refer to the entire spec for the single article design
One major difference [VIMP]
We show wikipedia wordmark on the first page of individual articles.
If the article is part of the book, we won't show wordmark on first page of the article, we will use that space to show 2 data points
- chapter name
- Article x of y
If the chapter name doesn't exist, it will just say "Article x of y"
Spec for article header with chapters
https://zpl.io/2vMn6dn
Spec for article header without chapters
https://zpl.io/2EdwElb
Page number and article name on every page
Page number will be printed under a horizontal line, it will be center aligned
Spec for page number
https://zpl.io/a8EKJgb
List of text and image contributors
WIP
Licensing
WIP