Module:SST/shards/M
| 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 "M".
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 = {}
-- Églises romanes oubliées du Roussillon by Les Presses du Languedoc
-- Template:Églises romanes oubliées du Roussillon
library['MALLET_EGLISES_ROMANES'] = {
host = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['first1'] = "Géraldine",
['last1'] = "Mallet",
['title'] = "Églises romanes oubliées du Roussillon",
['publisher'] = "Les Presses du Languedoc",
['isbn'] = "978-2-8599-8244-7",
['year'] = "2003",
['location'] = "Montpellier",
['lang'] = "fr",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mapper of Mountains M.P. Bridgland in the Canadian Rockies 1902-1930 by The University of Alberta Press
-- Template:MacLaren-Mapper of Mountains
library['MACLAREN_MAPPER_OF_MOUNTAINS'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last1'] = "MacLaren",
['first1'] = "I.S.",
['others'] = "With Eric Higgs, Gabrielle Zezulka-Mailloux",
['title'] = "Mapper of Mountains: M.P. Bridgland in the Canadian Rockies 1902-1930",
['year'] = "2005",
['isbn'] = "0-88864-456-6",
['publisher'] = "The University of Alberta Press",
['location'] = "Edmonton, AB",
},
['hosts'] = {
['ia'] = {
['id'] = {
"mapperofmountain0000macl",
"mapperofmountain00macl",
},
}
}
}
-- The Latins in the Levant: A History of Frankish Greece (1204–1566) by [[William Miller (historian)|William Miller]]
-- Template:The Latins in the Levant
library['MILLER_THE_LATINS_IN_THE_LEVANT'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['title'] = "The Latins in the Levant: A History of Frankish Greece (1204–1566)",
['first'] = "William",
['last'] = "Miller",
['author-link'] = "William Miller (historian)",
['location'] = "London",
['publisher'] = "John Murray",
['year'] = "1908",
},
['hosts'] = {
['ia'] = {
['id'] = "latinsinlevanthi00mill",
['iasearch'] = "none",
['iadisplay'] = "full screen",
}
}
}
-- The Muslims of Medieval Italy by Alex Metcalfe
-- Template:The Muslims of Medieval Italy
library['METCALFE_THE_MUSLIMS_OF_MEDIEVAL_ITALY'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Metcalfe",
['first'] = "Alex",
['title'] = "The Muslims of Medieval Italy",
['location'] = "Edinburgh",
['publisher'] = "Edinburgh University Press",
['year'] = "2009",
['isbn'] = "978-0-7486-2008-1",
},
['hosts'] = {
['ia'] = {
['id'] = "muslimsofmedieva0000alex",
}
}
}
-- The Visual History of Type by Paul McNeil
-- Template:The Visual History of Type
library['MCNEIL_THE_VISUAL_HISTORY_OF_TYPE'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "McNeil",
['first'] = "Paul",
['year'] = "2017",
['title'] = "The Visual History of Type",
['location'] = "[[London]]",
['publisher'] = "[[Laurence King Publishing|Laurence King]]",
['isbn'] = "978-1-78067-976-1",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes: Coupes/Sedans/Wagons, 1974-84 Repair Manual by Chilton; Sparkford, UK: Haynes Publishing
-- Template:Mellon: Mercedes: Coupes 1974-84 Repair Manual
library['MELLON_MERCEDES_COUPS_1974_1984_REPAIR'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor1-last'] = "Mellon",
['editor1-first'] = "Thomas A",
['year'] = "2001",
['title'] = "Mercedes: Coupes/Sedans/Wagons, 1974-84 Repair Manual",
['series'] = "Chilton Total Car Care Series",
['location'] = "Radnor, PA, USA",
['publisher'] = "Chilton; Sparkford, UK: Haynes Publishing",
['isbn'] = "0-8019-9076-9",
['ref'] = "Chilton-MCSW 1974-84",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz SL Sports Cars by Laurence Meredith
-- Template:Meredith: Mercedes-Benz SL Sports Cars
library['MEREDITH_MERCEDES_BENZ_SL_SPORTS_CARS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Meredith",
['first'] = "Laurence",
['year'] = "1999",
['title'] = "Mercedes-Benz SL Sports Cars",
['series'] = "Suttons Photographic History of Transport series",
['location'] = "Stroud, Gloucestershire, England",
['publisher'] = "Sutton Publishing",
['isbn'] = "075092232X",
},
['hosts'] = {
['physical'] = {}
}
}
-- Original Porsche 924/944/968: The Guide to all models 1975-95, including Turbos and limited edition by Peter Morgan
-- Template:Morgan: Original Porsche 924/944/968
library['MORGAN_ORIGINAL_PORSCHE_924_944_968'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Morgan",
['first'] = "Peter",
['year'] = "1998",
['title'] = "Original Porsche 924/944/968: The Guide to all models 1975-95, including Turbos and limited edition",
['location'] = "Bedford, Devon, UK",
['publisher'] = "Bay View Books / Osceola, WI, USA: Motorbooks",
['isbn'] = "190143205X",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz SLs & SLCs Ultimate Portfolio 1971-1989 by Brooklands Books
-- Template:Brooklands: Mercedes-Benz SLs & SLCs Ultimate Portfolio 1971-1989
library['MERCEDES_BENZ_SLS_SLCS_ULTIMATE_PORTFOLIO_1971_1989'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor-last'] = "Clarke",
['editor-first'] = "R.M.",
['year'] = "2004",
['title'] = "Mercedes-Benz SLs & SLCs Ultimate Portfolio 1971-1989",
['series'] = "Road Test Portfolio Series",
['location'] = "Cobham, Surrey, UK",
['publisher'] = "Brooklands Books",
['isbn'] = "1-85520-677-3",
},
['hosts'] = {
['physical'] = {}
}
}
-- Original Mercedes SL: The Restorer's Guide to 300SL, 190SL and 230/250/280SL models to 1971 by Laurence Meredith
-- Template:Meredith: Original Mercedes SL
library['MEREDITH_ORIGINAL_MERCEDES_SL'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Meredith",
['first'] = "Laurence",
['year'] = "1996",
['title'] = "Original Mercedes SL: The Restorer's Guide to 300SL, 190SL and 230/250/280SL models to 1971",
['location'] = "Bideford, Devon, UK",
['publisher'] = "Bay View Books",
['isbn'] = "1870979664",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz Saloons: The Classic Models of the 1960s and 1970s by Laurence Meredith
-- Template:Meredith: Mercedes-Benz Saloons
library['MEREDITH_MERCEDES_BENZ_SALOONS'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Meredith",
['first'] = "Laurence",
['year'] = "2003",
['title'] = "Mercedes-Benz Saloons: The Classic Models of the 1960s and 1970s",
['series'] = "Crowood AutoClassic Series",
['location'] = "Ramsbury, Marlborough, UK",
['publisher'] = "The Crowood Press",
['isbn'] = "1861265182",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz V8s: Limousines, Saloons, Sedans. 1963 to date by F. Wilson McComb
-- Template:McComb: Mercedes-Benz V8s
library['MCCOMB_MERCEDES_BENZ_V8S'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "McComb",
['first'] = "F. Wilson",
['year'] = "1980",
['title'] = "Mercedes-Benz V8s: Limousines, Saloons, Sedans. 1963 to date",
['series'] = "Osprey AutoHistory series",
['publisher'] = "Osprey Publishing",
['location'] = "London",
['isbn'] = "0850453836",
},
['hosts'] = {
['physical'] = {}
}
}
-- Mercedes-Benz Technical Companion by Bentley Publishers
-- Template:Bentley-MB Technical
library['MERCEDES_BENZ_TECHNICAL_COMPANION'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['author'] = "Mercedes-Benz Club of America",
['year'] = "2005",
['title'] = "Mercedes-Benz Technical Companion",
['location'] = "Cambridge, MA, US",
['publisher'] = "Bentley Publishers",
['isbn'] = "978-0-8376-1033-7",
},
['hosts'] = {
['physical'] = {}
}
}
-- Paddle-Wheel Days in California by Jerry MacMullen
-- Template:MacMullen: Paddle-Wheel Days in California
library['MACMULLEN_PADDLE_WHEEL_DAYS_IN_CALIFORNIA'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last1'] = "MacMullen",
['first1'] = "Jerry",
['title'] = "Paddle-Wheel Days in California",
['location'] = "Palo Alto, California",
['publisher'] = "[[Stanford University Press]]",
['origyear'] = "1944",
['year'] = "1970",
['isbn'] = "0-8047-0382-5",
},
['hosts'] = {
['ia'] = {
['id'] = "paddlewheeldaysi0000jerr_b6h4",
}
}
}
-- Stern-wheelers up Columbia: A Century of Steamboating in the Oregon Country by [[Randall V. Mills]]
-- Template:Mills: Stern-wheelers up Columbia
library['MILLS_STERN_WHEELERS_UP_COLUMBIA'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last1'] = "Mills",
['first1'] = "Randall V.",
['author-link1'] = "Randall V. Mills",
['title'] = "Stern-wheelers up Columbia: A Century of Steamboating in the Oregon Country",
['isbn'] = "0-8032-5874-7",
['location'] = "Lincoln, Nebraska",
['publisher'] = "University of Nebraska Press",
['year'] = "1977",
['origyear'] = "1947",
},
['hosts'] = {
['ia'] = {
['id'] = {
"sternwheelersupc0000unse_b9w5",
"sternwheelersupc0000unse",
},
}
}
}
-- Observations of intercrater plains on Mercury by M. C. Malin
-- Template:Malin 1976
library['MALIN_OBSERVATIONS_1976'] = {
['host'] = 'physical', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite journal',
['last'] = "Malin",
['first'] = "M. C.",
['year'] = "1976",
['title'] = "Observations of intercrater plains on Mercury",
['journal'] = "Geophysical Research Letters",
['volume'] = "3",
['issue'] = "10",
['pages'] = "581–584",
['doi'] = "10.1029/GL003i010p00581",
['bibcode'] = "1976GeoRL...3..581M",
},
['hosts'] = {
['physical'] = {}
}
}
return library
Content Disclaimer
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.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.