Module:SST/shards/N
| 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. |
| Editing of this module by new or unregistered users is currently disabled. See the protection policy and protection log for more details. If you cannot edit this module and you wish to make a change, you can submit an edit request, discuss changes on the talk page, request unprotection, log in, or create an account. |
- Note: This is part of the WP:SSTS system see that page for complete documentation
This page contains the data configurations for Module:SST ("Single-source templates") for all book keys starting with the letter "N".
Create a new shard entry
All book metadata is stored in "shards" which are Lua Modules that contain simple tables.
There are two types of shards:
- Single - A single book. They share shard files. For example, all single books that start with "A" are in Module:SST/shards/A
- Sets - Works that have multiple volumes or editions e.g. an Encyclopedia or a 3-edition book. Each one has their own private shard file stored in
Module:SST/shards/setsfor 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.
Naming the book key
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.
- Example:
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.
- BOWEN_THE_LIFE_AND_TIMES_OF_AL_IBN_ISA
- IMBER_THE_OTTOMAN_EMPIRE_2002
- IMBER_THE_OTTOMAN_EMPIRE_2009
- BYZANTINE_SEALS_1
- BYZANTINE_SEALS_2
Host
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".
Citation Parameters
- A table of CS1 parameters displayed by default. (Users can override these within the invoking templates.)
|_template=: Optional. Defaults tocite book, can also be set tocite 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"
},
|
Hosts
- A nested table defining where the book can be found online and how the routing engines should handle it. Supported host keys are
|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).
- A nested table defining where the book can be found online and how the routing engines should handle it. Supported host keys are
|id== The host-specific identifier.- IA: The ID from the URL. Multiple IDs for the same edition can be defined see Example setup.
- Hathi: The handle ID
- GBook: The 12-character ID
- Wikisource: The full Page namespace name, including extension
- Web: For a web host, omit id. See Example setup.
- Physical: A physical copy only - for books without a digital host. See Example setup.
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'] = {}
}
|
- Internet Archive Options:
- query = (Internet Archive only). Optional. Use instead of `id` for multi-volume works. Links the main title to an IA search page. Page linking will output as unlinked plain text. (ex. `query = 'title:"Encyclopaedia Britannica" AND date:1911'`)
- iadisplay = "full screen" (Internet Archive only). Optional. Opens the book in full-screen mode instead of the default 2-up view.
- iasearch = "none" or "pagenum" (Internet Archive only). Optional. Set to "none" to disable the dummy search for PD books.
Example: Internet Archive Options
|
|---|
['hosts'] = {
['ia'] = {
['query'] = "title:Britannica AND year:1911",
}
}
['hosts'] = {
['ia'] = {
['id'] = "encyclopaediabrit01chisrich",
['iasearch'] = "none",
['iadisplay'] = "full screen"
}
}
|
Multiple IDs
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 New Islamic Dynasties: A Chronological and Genealogical Manual by Edinburgh University Press
-- Template:Bosworth-The New Islamic Dynasties
library['NEW_ISLAMIC_DYNASTIES'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Bosworth",
['first'] = "Clifford Edmund",
['author-link'] = "Clifford Edmund Bosworth",
['title'] = "The New Islamic Dynasties: A Chronological and Genealogical Manual",
['series'] = "New Edinburgh Islamic Surveys",
['year'] = "1996",
['location'] = "Edinburgh",
['publisher'] = "Edinburgh University Press",
['isbn'] = "0-7486-2137-7"
},
['hosts'] = {
['ia'] = {
['id'] = "newislamicdynast0000unse"
}
}
}
-- Nebraska Place-Names by University of Nebraska Press
-- Template:Nebraska Place-Names
library['NEBRASKA_PLACE_NAMES'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last1'] = "Fitzpatrick",
['first1'] = "Lillian L.",
['last2'] = "Link",
['first2'] = "J. T.",
['editor-last'] = "Fairclough",
['editor-first'] = "G. Thomas",
['title'] = "Nebraska Place-Names",
['year'] = "1960",
['publisher'] = "[[University of Nebraska Press]]",
['place'] = "Lincoln, Nebraska",
['isbn'] = "((0-8032-5060-6))",
},
['hosts'] = {
['ia'] = {
['id'] = "nebraskaplacenam0000fitz",
}
}
}
-- The Byzantine Family of Kantakouzenos (Cantacuzenus), ca. 1100–1460: A Genealogical and Prosopographical Study by [[Donald Nicol|Donald M. Nicol]]
-- Template:The Byzantine Family of Kantakouzenos
library['NICOL_THE_BYZANTINE_FAMILY_OF_KANTAKOUZENOS'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nicol",
['first'] = "Donald M.",
['author-link'] = "Donald Nicol",
['title'] = "The Byzantine Family of Kantakouzenos (Cantacuzenus), ca. 1100–1460: A Genealogical and Prosopographical Study",
['location'] = "Washington, DC",
['publisher'] = "[[Dumbarton Oaks Center for Byzantine Studies]]",
['year'] = "1968",
['series'] = "Dumbarton Oaks studies 11",
},
['hosts'] = {
['ia'] = {
['id'] = "byzantinefamilyo0000dona",
},
['gbook'] = {
['id'] = "HqdBAAAAIAAJ",
}
}
}
-- High Asia: An Illustrated History of the 7000 Metre Peaks by Jill Neate
-- Template:Neate-High Asia
library['NEATE_HIGH_ASIA'] = {
host = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Neate",
['first'] = "Jill",
['title'] = "High Asia: An Illustrated History of the 7000 Metre Peaks",
['year'] = "1989",
['publisher'] = "[[The Mountaineers (club)|The Mountaineers]]",
['location'] = "Seattle",
['isbn'] = "0-89886-238-8",
},
['hosts'] = {
['physical'] = {}
}
}
-- The Byzantine Lady: Ten Portraits, 1250–1500 by [[Donald Nicol|Donald M. Nicol]]
-- Template:The Byzantine Lady: Ten Portraits, 1250–1500
library['NICOL_THE_BYZANTINE_LADY'] = {
host = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nicol",
['first'] = "Donald M.",
['author-link'] = "Donald Nicol",
['title'] = "The Byzantine Lady: Ten Portraits, 1250–1500",
['publisher'] = "Cambridge University Press",
['location'] = "Cambridge and New York",
['year'] = "1994",
['isbn'] = "0-521-45531-6",
},
['hosts'] = {
['gbook'] = {
['id'] = "Lr7WFLexQyIC",
}
}
}
-- Byzantium and Venice: A Study in Diplomatic and Cultural Relations by [[Donald Nicol|Donald M. Nicol]]
-- Template:Byzantium and Venice: A Study in Diplomatic and Cultural Relations
library['NICOL_BYZANTIUM_AND_VENICE'] = {
['host'] = 'gbook',
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nicol",
['first'] = "Donald M.",
['author-link'] = "Donald Nicol",
['title'] = "Byzantium and Venice: A Study in Diplomatic and Cultural Relations",
['publisher'] = "Cambridge University Press",
['location'] = "Cambridge",
['year'] = "1988",
['isbn'] = "0-521-34157-4",
},
['hosts'] = {
['gbook'] = {
['id'] = "rymIUITIYdwC",
}
}
}
-- The Immortal Emperor: The Life and Legend of Constantine Palaiologos, Last Emperor of the Romans by [[Donald Nicol|Donald M. Nicol]]
-- Template:The Immortal Emperor: The Life and Legend of Constantine Palaiologos, Last Emperor of the Romans
library['NICOL_THE_IMMORTAL_EMPEROR'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nicol",
['first'] = "Donald M.",
['author-link'] = "Donald Nicol",
['title'] = "The Immortal Emperor: The Life and Legend of Constantine Palaiologos, Last Emperor of the Romans",
['location'] = "Cambridge",
['publisher'] = "[[Cambridge University Press]]",
['year'] = "1992",
['isbn'] = "978-0-511-58369-8",
},
['hosts'] = {
['ia'] = {
['id'] = "immortalemperorl0000nico",
}
}
}
-- The Despotate of Epiros, 1267–1479: A Contribution to the History of Greece in the Middle Ages by [[Donald Nicol|Donald M. Nicol]]
-- Template:The Despotate of Epiros, 1267–1479
library['NICOL_THE_DESPOTATE_OF_EPIROS'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['first'] = "Donald M.",
['last'] = "Nicol",
['author-link'] = "Donald Nicol",
['title'] = "The Despotate of Epiros, 1267–1479: A Contribution to the History of Greece in the Middle Ages",
['year'] = "1984",
['publisher'] = "Cambridge University Press",
['location'] = "Cambridge",
['isbn'] = "978-0-521-13089-9",
},
['hosts'] = {
['ia'] = {
['id'] = "despotateofepiro0000nico",
},
['gbook'] = {
['id'] = "XIj0FfKto9AC",
}
}
}
-- The Establishment Boys by Barry Nicholls
-- Template:Nicholls-The Establishment Boys
library['NICHOLLS_THE_ESTABLISHMENT_BOYS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nicholls",
['first'] = "Barry",
['year'] = "2021",
['title'] = "The Establishment Boys",
['location'] = "Mile End, SA",
['publisher'] = "[[Wakefield Press (Australia)|Wakefield Press]]",
['isbn'] = "9781743058589",
},
['hosts'] = {
['physical'] = {}
}
}
-- Personenwagen von Mercedes-Benz: Automobillegenden und Geschichten seit 1886 by Harry Niemann
-- Template:Niemann: Personenwagen von Mercedes-Benz
library['NIEMANN_PERSONENWAGEN_VON_MERCEDES_BENZ'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Niemann",
['first'] = "Harry",
['year'] = "2006",
['title'] = "Personenwagen von Mercedes-Benz: Automobillegenden und Geschichten seit 1886",
['trans-title'] = "Passenger Cars from Mercedes-Benz: Automobile Legends and Stories since 1886",
['location'] = "Stuttgart",
['publisher'] = "Motorbuch Verlag",
['isbn'] = "3613025965",
['language'] = "de",
},
['hosts'] = {
['physical'] = {}
}
}
-- Racing the Silver Arrows: Mercedes-Benz versus Auto Union 1934-1939 by Chris Nixon
-- Template:Nixon: Racing the Silver Arrows
library['NIXON_RACING_THE_SILVER_ARROWS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nixon",
['first'] = "Chris",
['year'] = "2003",
['orig-year'] = "1986",
['title'] = "Racing the Silver Arrows: Mercedes-Benz versus Auto Union 1934-1939",
['location'] = "Isleworth, Middlesex, UK",
['publisher'] = "Transport Bookman Publications",
['isbn'] = "0851840558",
['edition'] = "revised",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes SL Series: The Complete Story by [[Andrew Noakes]]
-- Template:Noakes: Mercedes SL Series: The Complete Story
library['NOAKES_MERCEDES_SL_SERIES'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Noakes",
['first'] = "Andrew",
['author-link'] = "Andrew Noakes",
['year'] = "2004",
['title'] = "Mercedes SL Series: The Complete Story",
['series'] = "Crowood AutoClassics Series",
['location'] = "Ramsbury, Marlborough, UK",
['publisher'] = "The Crowood Press",
['isbn'] = "9781861266736",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz Production Models Book 1946-1995 by W. Robert Nitske
-- Template:Nitskey: Mercedes-Benz Production Models Book 1946-1995
library['NITSKE_MERCEDES_BENZ_PRODUCTION_MODELS_BOOK_1946_1995'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Nitske",
['first'] = "W. Robert",
['edition'] = "4th",
['year'] = "1995",
['title'] = "Mercedes-Benz Production Models Book 1946-1995",
['location'] = "Osceola, WI, US",
['publisher'] = "MBI Publishing",
['isbn'] = "0-7603-0245-6",
},
['hosts'] = {
['physical'] = {}
}
}
return library