Module:SST/shards/L
| 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. |
- 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 "L".
Create a new shard entry
[edit]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
[edit]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
[edit]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
[edit]- 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
[edit]- 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
[edit]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 = {}
-- State and Society in Fatimid Egypt by [[Yaacov Lev]]
-- Template:State and Society in Fatimid Egypt
library['LEV_STATE_AND_SOCIETY_IN_FATIMID_EGYPT'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lev",
['first'] = "Yaacov",
['author-link'] = "Yaacov Lev",
['title'] = "State and Society in Fatimid Egypt",
['year'] = "1991",
['location'] = "Leiden",
['publisher'] = "Brill",
['isbn'] = "90-04-09344-3",
},
['hosts'] = {
['ia'] = {
['id'] = "statesocietyinfa0000levy",
},
['gbook'] = {
['id'] = "I2LwgIL_bpEC",
}
}
}
-- Venice: A Maritime Republic by [[Frederic C. Lane|Frederic Chapin Lane]]
-- Template:Venice: A Maritime Republic
library['LANE_VENICE'] = {
['host'] = 'ia',
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lane",
['first'] = "Frederic Chapin",
['authorlink'] = "Frederic C. Lane",
['title'] = "Venice: A Maritime Republic",
['location'] = "Baltimore, Maryland",
['publisher'] = "Johns Hopkins University Press",
['year'] = "1973",
['isbn'] = "0-8018-1445-6",
},
['hosts'] = {
['ia'] = {
['id'] = {
"venicemaritimere0000lane",
"venicemaritimere0000lane_o4q1",
},
},
['gbook'] = {
['id'] = "PQpU2JGJCMwC",
},
}
}
-- Saladin in Egypt by [[Yaacov Lev]]
-- Template:Saladin in Egypt
library['LEV_SALADIN_IN_EGYPT'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lev",
['first'] = "Yaacov",
['author-link'] = "Yaacov Lev",
['year'] = "1999",
['title'] = "Saladin in Egypt",
['location'] = "Leiden, Boston, Köln",
['publisher'] = "Brill",
['isbn'] = "90-04-11221-9",
},
['hosts'] = {
['ia'] = {
['id'] = "saladininegyptme0000yaac",
},
['gbook'] = {
['id'] = "v22DckibeIUC",
}
}
}
-- Faszination Mercedes-Benz SL: Evolution eines Klassikers by Hartmut Lehbrink
-- Template:Lehbrink: Faszination Mercedes
library['LEHBRINK_FASZINATION_MERCEDES_BENZ_SL'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lehbrink",
['first'] = "Hartmut",
['year'] = "2012",
['title'] = "Faszination Mercedes-Benz SL: Evolution eines Klassikers",
['trans-title'] = "Fascination Mercedes-Benz SL: Evolution of a Classic",
['location'] = "Königswinter, Germany",
['publisher'] = "Heel Verlag",
['isbn'] = "9783868526028",
['language'] = "de",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz Ponton & Heckflosse: Die Autos und ihre Geschichte 1953-1967 by Joachim Lederer
-- Template:Lederer: Mercedes-Benz Ponton & Heckflosse
library['LEDERER_MERCEDES_BENZ_PONTON_HECKFLOSSE'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lederer",
['first'] = "Joachim",
['year'] = "1997",
['title'] = "Mercedes-Benz Ponton & Heckflosse: Die Autos und ihre Geschichte 1953-1967",
['trans-title'] = "Mercedes-Benz Ponton & Fintails: The Cars and their History 1953-1967",
['location'] = "Stuttgart",
['publisher'] = "Motorbuch Verlag",
['isbn'] = "3613018322",
['language'] = "de",
},
['hosts'] = {
['physical'] = {}
}
}
-- NSU Personenwagen: Eine Chronik by Reinhard Lintelmann
-- Template:Lintelmann: NSU Personenwagen: Eine Chronik
library['LINTELMANN_NSU_PERSONENWAGEN'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lintelmann",
['first'] = "Reinhard",
['year'] = "1987",
['title'] = "NSU Personenwagen: Eine Chronik",
['trans-title'] = "NSU Passenger Vehicles: A Chronicle",
['series'] = "Markenreihe series",
['location'] = "Brilon, Germany",
['publisher'] = "Podszun Verlag",
['isbn'] = "3923448368",
['language'] = "de",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz Buyer's Guide: Roadsters, Coupes, and Convertibles by Fred Larimer
-- Template:Larimer: Mercedes-Benz Buyer's Guide
library['LARIMER_MERCEDES_BENZ_BUYERS_GUIDE'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Larimer",
['first'] = "Fred",
['year'] = "2004",
['title'] = "Mercedes-Benz Buyer's Guide: Roadsters, Coupes, and Convertibles",
['location'] = "St. Paul, MN, USA",
['publisher'] = "MBI Publishing",
['isbn'] = "0760318115",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz SL: Die Sportwagen-Legende by Reinhard Lintelmann
-- Template:Lintelmann: Mercedes-Benz SL
library['LINTELMANN_MERCEDES_BENZ_SL'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Lintelmann",
['first'] = "Reinhard",
['year'] = "2010",
['title'] = "Mercedes-Benz SL: Die Sportwagen-Legende",
['trans-title'] = "Mercedes-Benz SL: The Legendary Sports Car",
['location'] = "Köln",
['publisher'] = "Komet Verlag",
['isbn'] = "9783898368636",
['language'] = "de",
},
['hosts'] = {
['physical'] = {}
}
}
-- The Great American Convertible by Richard M Langworth
-- Template:Langworth: The Great American Convertible
library['LANGWORTH_THE_GREAT_AMERICAN_CONVERTIBLE'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Langworth",
['first'] = "Richard M",
['year'] = "1988",
['title'] = "The Great American Convertible",
['location'] = "New York",
['publisher'] = "Beekman House",
['isbn'] = "0-517-65581-0",
},
['hosts'] = {
['physical'] = {}
}
}
-- Porsche Legends: Inside History of the Epic Cars by Randy Leffingwell
-- Template:Leffingwell: Porsche Legends
library['LEFFINGWELL_PORSCHE_LEGENDS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Leffingwell",
['first'] = "Randy",
['year'] = "1993",
['title'] = "Porsche Legends: Inside History of the Epic Cars",
['location'] = "Osceola, WI, US",
['publisher'] = "Motorbooks International",
['isbn'] = "0879387106",
},
['hosts'] = {
['physical'] = {}
}
}
-- German Racing Silver: Drivers, Cars and Triumphs of German Motor Racing by [[Karl Ludvigsen]]
-- Template:Ludvigsen: German Racing Silver
library['LUDVIGSEN_GERMAN_RACING_SILVER'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Ludvigsen",
['first'] = "Karl",
['author-link'] = "Karl Ludvigsen",
['year'] = "2009",
['title'] = "German Racing Silver: Drivers, Cars and Triumphs of German Motor Racing",
['series'] = "Racing Colours Series",
['location'] = "Hersham, Surrey, UK",
['publisher'] = "Ian Allan Publishing",
['isbn'] = "9780711033689",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes SL Series: The Complete Story by Brian Laban
-- Template:Mercedes SL Series
library['LABAN_MERCEDES_SL_SERIES'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Laban",
['first'] = "Brian",
['year'] = "1992",
['title'] = "Mercedes SL Series: The Complete Story",
['series'] = "Crowood AutoClassics Series",
['location'] = "Ramsbury, Marlborough, UK",
['publisher'] = "The Crowood Press",
['isbn'] = "1852235950",
},
['hosts'] = {
['physical'] = {}
}
}
-- Porsche 70 Years: There Is No Substitute by Randy Leffingwell
-- Template:Leffingwell: Porsche 70 Years
library['LEFFINGWELL_PORSCHE_70_YEARS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Leffingwell",
['first'] = "Randy",
['year'] = "2017",
['title'] = "Porsche 70 Years: There Is No Substitute",
['location'] = "Beverly, MA, US",
['publisher'] = "Motorbooks",
['isbn'] = "978-0-7603-4725-6",
},
['hosts'] = {
['physical'] = {}
}
}
return library