Module:SST/shards/A
| 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 "A".
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 = {}
-- AIA guide to New York City Edition 4 (Published 2000)
-- Template:Cite AIA4
library['AIA4'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last1'] = "White", ['first1'] = "Norval", ['author-link1'] = "Norval White",
['last2'] = "Willensky", ['first2'] = "Elliot",
['title'] = "AIA Guide to New York City", ['title-link'] = "AIA Guide to New York City",
['edition'] = "4th", ['location'] = "New York", ['publisher'] = "Crown Publishers",
['year'] = "2000", ['isbn'] = "978-0-8129-3107-5"
},
['hosts'] = {
['ia'] = {
['id'] = "aiaguidetonewyor0000unse_a0o0"
}
}
}
-- AIA guide to New York City Edition 5 (Published 2010)
-- Template:Cite AIA5
library['AIA5'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['first1'] = "Norval", ['last1'] = "White", ['author-link1'] = "Norval White",
['last2'] = "Willensky", ['first2'] = "Elliot",
['last3'] = "Leadon", ['first3'] = "Fran",
['title'] = "AIA Guide to New York City", ['title-link'] = "AIA Guide to New York City",
['edition'] = "5th", ['location'] = "New York", ['publisher'] = "Oxford University Press",
['year'] = "2010", ['isbn'] = "978-0-19538-386-7"
},
['hosts'] = {
['ia'] = {
['id'] = "aiaguidetonewyor0000unse_m6u4"
}
}
}
-- A History of the Byzantine State and Society by Stanford University Press
-- Template:A History of the Byzantine State and Society
library['A_HISTORY_OF_THE_BYZANTINE_STATE_AND_SOCIETY'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Treadgold",
['first'] = "Warren",
['author-link'] = "Warren Treadgold",
['title'] = "A History of the Byzantine State and Society",
['location'] = "Stanford, California",
['publisher'] = "[[Stanford University Press]]",
['year'] = "1997",
['isbn'] = "0-8047-2630-2"
},
['hosts'] = {
['ia'] = {
['id'] = "historyofbyzanti0000trea"
}
}
}
-- A Short History of Berkhamsted
-- Template:A Short History of Berkhamsted
library['A_SHORT_HISTORY_OF_BERKHAMSTED'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['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'] = {
['ia'] = {
['id'] = "shorthistoryofbe0000birt"
}
}
}
-- The Age of the Galley: Mediterranean Oared Vessels Since Pre-Classical Times by Conway Maritime Press
-- Template:Cite The Age of the Galley
library['AGE_OF_THE_GALLEY'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor-last1'] = "Morrison",
['editor-first1'] = "John S.",
['editor-link1'] = "John Sinclair Morrison",
['editor-last2'] = "Gardiner",
['editor-first2'] = "Robert",
['year'] = "1995",
['title'] = "The Age of the Galley: Mediterranean Oared Vessels Since Pre-Classical Times",
['location'] = "London",
['publisher'] = "Conway Maritime Press",
['isbn'] = "0-85177-554-3"
},
['hosts'] = {
['ia'] = {
['id'] = "ageofgalleymedit0000unse"
}
}
}
-- Four Bishops and Their See: Perth, Western Australia, 1857-1957 by University of Western Australia Press
-- Template:Alexander-Four Bishops
library['ALEXANDER_FOUR_BISHOPS'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['editor-last1'] = "Alexander",
['editor-first1'] = "Fred",
['editor-link1'] = "Fred Alexander (historian)",
['date'] = "1957",
['title'] = "Four Bishops and Their See: Perth, Western Australia, 1857-1957",
['location'] = "Crawley, WA",
['publisher'] = "[[University of Western Australia Press]]",
['language'] = "en"
},
['hosts'] = {
['ia'] = {
['id'] = "fourbishopstheir0000unse"
}
}
}
-- Naval Wars in the Levant 1559–1853 by Princeton University Press
-- Template:Naval Wars in the Levant 1559–1853
library['ANDERSON_NAVAL_WARS_IN_THE_LEVANT_1559–1853'] = {
host = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Anderson",
['first'] = "R. C.",
['author-link'] = "R. C. Anderson",
['title'] = "Naval Wars in the Levant 1559–1853",
['year'] = "1952",
['publisher'] = "Princeton University Press",
['location'] = "Princeton",
},
['hosts'] = {
['ia'] = {
['id'] = {
"navalwarsinlevan0000unse_i3p7",
"navalwarsinlevan0000unse",
"navalwarsinlevan0000unse_a4a4",
"bwb_P9-DYU-324",
"bwb_P8-BXL-150",
}
}
}
}
-- The Governors and Judges of Egypt by [[Muhammad ibn Yusuf al-Kindi|Muhammad ibn Yusuf Al-Kindi]]
-- Template:The Governors and Judges of Egypt
library['ALKINDI_THE_GOVERNORS_AND_JUDGES_OF_EGYPT'] = {
['host'] = 'ia', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['title'] = "The Governors and Judges of Egypt",
['editor-first'] = "Rhuvon",
['editor-last'] = "Guest",
['last'] = "Al-Kindi",
['first'] = "Muhammad ibn Yusuf",
['author-link'] = "Muhammad ibn Yusuf al-Kindi",
['year'] = "1912",
['publisher'] = "E. J. Brill",
['location'] = "Leyden and London",
['language'] = "Arabic",
},
['hosts'] = {
['ia'] = {
['id'] = "in.ernet.dli.2015.283285",
['iasearch'] = "none",
['iadisplay'] = "full screen",
},
['gbook'] = {
['id'] = "7jc1AQAAMAAJ",
}
}
}
-- Porsche 924 / 944, 968 by Jörg Austen
-- Template:Austen: Porsche 924 944 968
library['AUSTEN_PORSCHE_924_944_968'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Austen",
['first'] = "Jörg",
['year'] = "2013",
['title'] = "Porsche 924 / 944, 968",
['location'] = "Stuttgart",
['publisher'] = "Motorbuch Verlag",
['isbn'] = "9783613034990",
['language'] = "de",
},
['hosts'] = {
['gbook'] = {
['id'] = "_Oi1NAEACAAJ",
}
}
}
-- NSU: Alle Automobile von 1905 bis 1977 by Klaus Arth
-- Template:Arth: NSU: Alle Automobile von 1905 bis 1977
library['ARTH_NSU_ALLE_AUTOMOBILE_1905_1977'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Arth",
['first'] = "Klaus",
['year'] = "2016",
['title'] = "NSU: Alle Automobile von 1905 bis 1977",
['trans-title'] = "NSU: All Automobiles from 1905 to 1977",
['series'] = "Typenkunde Classic",
['location'] = "Bielefeld, Germany",
['publisher'] = "Delius Klasing",
['isbn'] = "9783667106902",
['language'] = "de",
},
['hosts'] = {
['gbook'] = {
['id'] = "GIHPjwEACAAJ",
}
}
}
-- NSU-Automobile: Typen, Technik, Modelle by Klaus Arth
-- Template:Arth: NSU-Automobile
library['ARTH_NSU_AUTOMOBILE'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Arth",
['first'] = "Klaus",
['year'] = "2015",
['title'] = "NSU-Automobile: Typen, Technik, Modelle",
['trans-title'] = "NSU Automobiles: Types, Technology, Models",
['series'] = "Edition Audi Tradition",
['location'] = "Bielefeld, Germany",
['publisher'] = "Delius Klasing",
['edition'] = "2nd",
['isbn'] = "9783667103499",
['language'] = "de",
},
['hosts'] = {
['gbook'] = {
['id'] = "CDD-sgEACAAJ",
}
}
}
-- Mercedes-Benz SL: Faszination seit sechs Jahrzehnten by Bruno Alfieri
-- Template:Alfieri: Mercedes-Benz SL
library['ALFIERI_MERCEDES_BENZ_SL'] = {
['host'] = 'gbook', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['last'] = "Alfieri",
['first'] = "Bruno",
['year'] = "2016",
['title'] = "Mercedes-Benz SL: Faszination seit sechs Jahrzehnten",
['trans-title'] = "Mercedes-Benz SL: Fascination for Six Decades",
['location'] = "Stuttgart",
['publisher'] = "Motorbuch Verlag",
['isbn'] = "978-3-613-03908-7",
['language'] = "de",
},
['hosts'] = {
['gbook'] = {
['id'] = "AgLejwEACAAJ",
}
}
}
-- সার্ধশতবর্শ স্মারকগ্রন্থ ১৮৬৯-২০১৯ by Anoar Ali
-- Template:Anoar Ali: 150th Anniversary Memorial Book 1869-2019
library['ANOAR_ALI_150TH_ANNIVERSARY'] = {
['host'] = 'web', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite book',
['title'] = "সার্ধশতবর্শ স্মারকগ্রন্থ ১৮৬৯-২০১৯",
['trans-title'] = "150th Anniversary Memorial Book 1869-2019",
['first'] = "Anoar",
['last'] = "Ali",
['publisher'] = "Kushtia Municipal Corporation",
['location'] = "Kushtia",
['language'] = "bn",
['ISBN'] = "978-984-34608-1-3",
['archive-url'] = "https://web.archive.org/web/20240912182127/https://file-khulna.portal.gov.bd/files/municipality.kushtia.gov.bd/page/3ee8b429_1b3e_436f_871a_967df1771800/95045a66398890cffdac61208576a13b.pdf",
['archive-date'] = "2024-09-12",
},
['hosts'] = {
['web'] = {
['url'] = "https://file-khulna.portal.gov.bd/files/municipality.kushtia.gov.bd/page/3ee8b429_1b3e_436f_871a_967df1771800/95045a66398890cffdac61208576a13b.pdf",
}
}
}
-- SHS Interactive Map by Arizona Department of Transportation, Multimodal Planning Division
-- Template:ADOT SHS
library['AZ_STATE_HIGHWAY_SYSTEM_INTERACTIVE_MAP'] = {
['host'] = 'web', -- WARNING: Changing host breaks page numbers in Wikipedia articles. See WP:SSTS#changehost
['cite_params'] = {
['_template'] = 'cite web',
['author'] = "Arizona Department of Transportation, Multimodal Planning Division",
['author-link'] = "Arizona Department of Transportation",
['title'] = "State Highway System Interactive Map",
['ref'] = "{{sfnref|ADOT_MAP}}"
},
['hosts'] = {
['web'] = {
['url'] = "https://experience.arcgis.com/experience/bc8ed17659f149889f6d5ac4598bb0ae/page/Page",
}
}
}
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.