Help:Gadget-ImportPagelist
The import pagelist gadget is a gadget that can be used to attempt to import pagelist metadata from a third party source. Currently the Internet Archive and Hathi Trust are supported.
Usage
editTo enable the gadget, check the checkbox in your gadget preferences:
When enabled, the gadget provides links next to the "Pages" field when editing an Index page:
Importing page lists
editClicking the top button produces the following dialog:
There are two fields:
- Source: where to get the pagelist information from
- ID: the ID of the work at that source. For an Internet Archive work, the ID is in the URL, usually after
details/
ordownload/
(i.e.https://archive.org/details/worksofshakespe01shak
)
The gadget will attempt to preload the Source ID from the file's page at Commons. If this fails or the ID isn't found there, you can fill it in manually.
Click "Import" to request the pagelist from the source. If successful, the pagelist will be loaded into the "Pages" field:
Limitations
edit- Not all works have good pagelist metadata at the source
- Nearly all pagelists will need to be adjusted manually, at least slightly
- If the file has been modified at Wikisource or Commons and no longer matches the source's version, the pagelist will be wrong. Often just applying an offset is sufficient.
Add non-numeric pages
editThe second link provides a dialog that allows you to insert a non-numeric sequence of pages in a numeric range, and then restart the numbering afterwards with an appropriate offset.
For example, if a page range starts with position 1 as page 1, and you add a non-numeric set of pages "–" and "Img" at positions 9 and 10, position 11 will then be restarted at number 9 (an offset of -2). This saves having to manually compute the restarted page number.
For this to work, the cursor has to be immediately below a numeric page range in the pagelist tag.
WS Page Game
editThe third link takes you to The Wikisource Page Game, an external tool to help build a pagelist when there is no importable page list, or when the imported pagelist is of poor quality.
Privacy
editSome parts of this script make requests to third parties, which can leak your personal information, such as IP and user-agent, as well as the work/page you are looking at:
- The page lists are downloaded from third parties by the pagelister tool. This does not send your personal information to the third parties, but does send it to Toolforge. It is not retained on Toolforge.
- The third party will still see which requests were made for which work at what time. Therefore, they may be able to correlate with public on-wiki activity, including your username.
Requests to WMF wikis (e.g. Wikisource, Commons and Wikidata) are, as always, covered by the WMF Privacy Policy.
Support
editIf there are problems or improvements for this Gadget, please contact Inductiveload.
Technical details
edit- Gadget JS: Mediawiki:Gadget-ImportPagelist.js
- Gadget description: Mediawiki:Gadget-ImportPagelist
The pagelist fetching from the source is provided by the "pagelister" tool at Toolforge.