This page contains the data configurations for Module:SST ("Single-source templates") for all book keys starting with the letter "P".
| This module is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
This page contains the data configurations for Module:SST ("Single-source templates") for all book keys starting with the letter "P".
All book metadata is stored in "shards" which are Lua Modules that contain simple tables.
There are two types of shards:
Module:SST/shards/sets for example Module:SST/shards/sets/THE_CAMBRIDGE_HISTORY_OF_IRAN.To add a new book, navigate to the correct shard and add a new table. The template documentation page will show where the shard is located.
When creating a new table, use a unique, recognizable book key in ALL CAPS, with spaces converted to underscores. For single shards it must start with the letter of the shard it is placed in. Generally a good idea to start with the author's last name then a short version of the title.
library['IMBER_THE_OTTOMAN_EMPIRE'] = { ... }When creating a multi-edition or volume set of books, name each book followed by a number for volumes e.g. _1 and _2 .. or by a year of publication e.g. _1990 and _2002 for editions.
The |host= sets which digital library the citation will link to.
Example: Host
|
|---|
library['IMBER_THE_OTTOMAN_EMPIRE'] = {
['host'] = "ia",
['cite_params'] = {
.....
}
|
Valid values for |host= are "ia", "guten", "hathi", "wikisrc", "gbook", "web" and "physical" (not online). These map to a corresponding |id= in the |hosts= entry (see below). Improper values or lack of a host will default to "physical" (no external links).
If a |host= is changed (e.g. from "hathi" to "ia") this will impact the Leaf page designations for every template on Wikipedia. For example Hathi uses 42@s54 while IA uses 42@n34. A change of |host= is disruptive, causing URLs to land on the wrong page. Tools will be in development to make |host= changes easier by automating the update of templates. Until then, it is better to consider the host "locked".
|_template=: Optional. Defaults to cite book, can also be set to cite encyclopedia (more template support in future).|last=, |first=, |quote=, |ref=, etc. = Standard CS1 parameters.Example: Citation Parameters
|
|---|
['host'] = "ia",
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Birtchnell",
['first'] = "Percy Charles",
['author-link'] = "Percy Birtchnell",
['title'] = "A Short History of Berkhamsted",
['year'] = "1972",
['edition'] = "Revised",
['publisher'] = "Privately printed",
['place'] = "Berkhamsted",
['oclc'] = "737328"
},
|
|ia= (Internet Archive), |hathi= (HathiTrust), |guten= (Project Gutenberg), |wikisrc= (Wikisource), |gbook= (Google Books), |web= (Other website), and |physical= (No digital host). You can add multiple hosts for each book, which one is used is defined by |host= (see above).|id= = The host-specific identifier.
Example: Host Configurations
|
|---|
['hosts'] = {
['ia'] = {
['id'] = "encyclopaediabrit01chisrich",
}
}
['hosts'] = {
['ia'] = {
['id'] = {
"nebraskaplacenam00fitz",
"nebraskaplacenam0000fitz"
}
}
}
['hosts'] = {
['hathi'] = {
['id'] = "iau.31858015245842",
}
}
['hosts'] = {
['gbook'] = {
['id'] = "-CNkywAACAAJ",
}
}
['hosts'] = {
['wikisrc'] = {
['id'] = "Page:The Fun of It.pdf",
}
}
['hosts'] = {
['web'] = {
['url'] = "http://www.uscoldwar.com/overview.htm",
}
}
['hosts'] = {
['physical'] = {}
}
|
Example: Internet Archive Options
|
|---|
['hosts'] = {
['ia'] = {
['query'] = "title:Britannica AND year:1911",
}
}
['hosts'] = {
['ia'] = {
['id'] = "encyclopaediabrit01chisrich",
['iasearch'] = "none",
['iadisplay'] = "full screen"
}
}
|
Some hosts have multiple copies of the same book+edition. This can be useful to mitigate viewing limits. Many hosts only allow X number of views per day per book. By including multiple IDs, you can spread the load across multiple IDs. Because the template randomly chooses real-time, it is important each book be identical ie. published in the same year, same publisher, each open to the same page 42 etc.. How to add multiple identical books:
['hosts'] = {
['ia'] = {
['id'] = {
"nebraskaplacenam00fitz",
"nebraskaplacenam0000fitz"
}
}
}
Load sharing is not available across hosts (inter-host), only within hosts (intra-host).
local library = {}
-- The Doukai: A Contribution to Byzantine Prosopography by The Athlone Press
-- Template:Polemis-The Doukai
library['POLEMIS_THE_DOUKAI'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Polemis",
['first'] = "Demetrios I.",
['title'] = "The Doukai: A Contribution to Byzantine Prosopography",
['location'] = "London",
['publisher'] = "The Athlone Press",
['year'] = "1968"
},
['hosts'] = {
['ia'] = {
['id'] = "bwb_W9-AUH-001",
}
}
}
-- West Gloucester & Wye Valley Lines by Neil Parkhouse
-- Template:Parkhouse: West Gloucester & Wye Valley Lines
library['PARKHOUSE_WEST_GLOUCESTER_WYE_VALLEY_LINES'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['title'] = "West Gloucester & Wye Valley Lines",
['series'] = "British Railway History In Colour",
['volume'] = "1",
['last'] = "Parkhouse",
['first'] = "Neil",
['year'] = "2013a",
['publisher'] = "Lightmoor Press",
['location'] = "Lydney",
['isbn'] = "9781899889 76 1"
},
['hosts'] = {
['physical'] = {}
}
}
-- Porsche 924 · 944 · 968 by Unique Motor Books
-- Template:Pitt: Porsche 924 944 968
library['PITT_PORSCHE_924_944_968'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor-last'] = "Pitt",
['editor-first'] = "Colin",
['year'] = "2006",
['title'] = "Porsche 924 · 944 · 968",
['location'] = "Hockley, Essex, UK",
['publisher'] = "Unique Motor Books",
['isbn'] = "1-84155-365-4",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz SL & SLR: The story of the W129 Mercedes-Benz SL, the W230 Mercedes-Benz SL and the SLR McLaren Road Cars and the SLR McLaren 722 GT Race Car by C P Press
-- Template:Pitt: Mercedes-Benz SL & SLR
library['PITT_MERCEDES_BENZ_SL_SLR'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor-last'] = "Pitt",
['editor-first'] = "Colin",
['year'] = "2009",
['title'] = "Mercedes-Benz SL & SLR: The story of the W129 Mercedes-Benz SL, the W230 Mercedes-Benz SL and the SLR McLaren Road Cars and the SLR McLaren 722 GT Race Car",
['location'] = "Hockley, Essex, UK",
['publisher'] = "C P Press",
['isbn'] = "9781841557533",
},
['hosts'] = {
['physical'] = {}
}
}
-- Australian Cruise Ships by Peter Plowman
-- Template:Plowman: Australian Cruise Ships
library['PLOWMAN_AUSTRALIAN_CRUISE_SHIPS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Plowman",
['first'] = "Peter",
['year'] = "2007",
['title'] = "Australian Cruise Ships",
['location'] = "Dural, NSW",
['publisher'] = "Rosenberg Publishing",
['isbn'] = "9781877058509",
},
['hosts'] = {
['physical'] = {}
}
}
-- The SITMAR Liners: Past and Present by Peter Plowman
-- Template:Plowman: The SITMAR Liners
library['PLOWMAN_THE_SITMAR_LINERS'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Plowman",
['first'] = "Peter",
['year'] = "2004",
['title'] = "The SITMAR Liners: Past and Present",
['location'] = "Dural, NSW",
['publisher'] = "Rosenberg Publishing",
['isbn'] = "1877058254",
},
['hosts'] = {
['gbook'] = {
['id'] = "PhGMcJw9THgC",
}
}
}
return library
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.