Importer, Bürokraten, Moderatoren (CommentStreams), Strukturierte-Diskussionen-Bots, Oberflächenadministratoren, Push-Abonnementverwalter, Oversighter, Administratoren, Kampagnenbearbeiter (Hochladeassistent)
855
Bearbeitungen
(addPagesSeq) |
K (78 Versionen von wikivoyage:Modul:Citation/i18n importiert) |
||
| (43 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
-- Separating code from internationalization | -- Separating code from internationalization | ||
-- documentation | |||
local citationI18n = { | |||
suite = 'Citation', | |||
sub = 'i18n', | |||
serial = '2022-08-18' | |||
} | |||
return { | return { | ||
-- administration | |||
moduleInterface = citationI18n, | |||
styleSrc = 'Module:Citation/styles.css', | |||
-- options | -- options | ||
skipPathCheck = false, -- for URL check, see Module:UrlCheck | skipPathCheck = false, -- for URL check, see Module:UrlCheck | ||
| Zeile 16: | Zeile 27: | ||
book = { 'book', 'Buch' }, | book = { 'book', 'Buch' }, | ||
map = { 'map', 'Karte' }, | map = { 'map', 'Karte' }, | ||
bookitem = { 'bookitem', 'collection', 'Sammelwerk' }, | |||
journal = { 'journal', 'Zeitschrift' }, | journal = { 'journal', 'Zeitschrift' }, | ||
newspaper = { 'newspaper', 'Zeitung' }, | newspaper = { 'newspaper', 'Zeitung' }, | ||
web = { 'web', 'Web', 'Internet' } | web = { 'web', 'Web', 'Internet' }, | ||
webnews = { 'webnews', 'news', 'Nachricht' }, | |||
}, | }, | ||
| Zeile 29: | Zeile 41: | ||
}, | }, | ||
-- list of possible | -- list of possible parameters | ||
-- no index: possible parameter names | -- no index/key : possible parameter names | ||
-- types: reference types for which parameter is valid | -- types = : reference types for which parameter is valid | ||
-- COinS: COinS key | -- COinS = : COinS key | ||
-- | -- prefix = : hint before identifier | ||
-- | -- url = : identifier url formatter | ||
-- doi = : doi equivalent | |||
params = { | params = { | ||
-- type, author and title | -- type, author and title | ||
type | type = { 'type', 'Typ' }, | ||
author | author = { 'Autor', COinS = 'rft.au' }, | ||
title | title = { 'Titel', COinS = 'rft.title' }, | ||
titleAddition = { 'TitelErg' }, | titleAddition = { 'TitelErg' }, | ||
scale | scale = { 'Maßstab', types = 'map' }, | ||
url | url = { 'Online', 'URL', COinS = 'url', url = '%s' }, | ||
access | access = { 'Zugriff' }, | ||
-- edited collections | -- edited collections | ||
editor = { 'Herausgeber', 'Hrsg' }, | editor = { 'Herausgeber', 'Hrsg', types = { 'book', 'map', 'bookitem' } }, | ||
collection = { 'Sammelwerk', types = ' | collection = { 'Sammelwerk', types = 'bookitem' }, | ||
journal = { 'Zeitschrift', 'Sammelwerk', types = 'journal', COinS = 'rft.jtitle' }, | journal = { 'Zeitschrift', 'Sammelwerk', types = 'journal', COinS = 'rft.jtitle' }, | ||
newspaper = { 'Zeitung', 'Sammelwerk', types = 'newspaper', COinS = 'rft.jtitle' }, | newspaper = { 'Zeitung', 'Sammelwerk', types = 'newspaper', COinS = 'rft.jtitle' }, | ||
abbr = { 'Abk', types = { ' | abbr = { 'Abk', types = { 'bookitem', 'journal', 'newspaper' }, COinS = 'rft.stitle' }, | ||
website = { 'Website', 'Internet', 'Sammelwerk', types = 'web' }, | website = { 'Website', 'Internet', 'Sammelwerk', types = { 'web', 'webnews' } }, | ||
siteUrl = { 'Site-URL', 'Website-URL', types = { ' | siteUrl = { 'Site-URL', 'Website-URL', types = { 'bookitem', 'journal', 'newspaper', 'web', 'webnews' }, | ||
url = '%s' }, | |||
-- published | -- published | ||
place = { 'Ort', COinS = 'rft.place' }, | place = { 'Ort', COinS = 'rft.place' }, | ||
publisher = { 'Verlag', types = { 'book', 'map', ' | publisher = { 'Verlag', types = { 'book', 'map', 'bookitem', 'web', 'webnews' }, COinS = 'rft.pub' }, | ||
date = { 'Datum', 'Jahr', COinS = 'rft.date' }, | date = { 'Datum', 'Jahr', COinS = 'rft.date' }, | ||
edition = { 'Auflage', types = { 'book', 'map', ' | edition = { 'Auflage', types = { 'book', 'map', 'bookitem' }, COinS = 'rft.edition' }, | ||
series = { | series = { 'Reihe', types = { 'book', 'bookitem', 'map' }, COinS = 'rft.series' }, | ||
-- source | -- source | ||
volume = { 'Band', types = { 'book', 'map', ' | volume = { 'Band', types = { 'book', 'map', 'bookitem', 'journal', 'newspaper' }, COinS = 'rft.volume' }, | ||
issue = { 'Nummer', types = { 'journal', 'newspaper' }, COinS = 'rft.issue' }, | issue = { 'Nummer', types = { 'journal', 'newspaper' }, COinS = 'rft.issue' }, | ||
chapter = { 'Kapitel', types = 'book', COinS = 'rft.atitle' }, | chapter = { 'Kapitel', types = 'book', COinS = 'rft.atitle' }, | ||
pages = { 'Seiten', types = { 'book', ' | chapterUrl = { 'Kapitel-URL', types = 'book' }, | ||
columns = { 'Spalten', types = { 'book', ' | pages = { 'Seiten', types = { 'book', 'bookitem', 'journal', 'newspaper', 'web', 'webnews' }, COinS = 'rft.pages' }, | ||
columns = { 'Spalten', types = { 'book', 'bookitem', 'journal', 'newspaper', 'web', 'webnews' } }, | |||
-- | -- identifiers | ||
isbn = { 'ISBN', types = { 'book', ' | isbn = { 'ISBN', 'isbn', types = { 'book', 'bookitem', 'map', 'journal' }, COinS = 'rft.isbn' }, | ||
issn = { 'ISSN', COinS = 'rft.issn' }, | issn = { 'ISSN', 'issn', COinS = 'rft.issn', | ||
eissn = { 'EISSN', COinS = 'rft.eissn' }, | prefix = '[[w:Internationale Standardnummer für fortlaufende Sammelwerke|ISSN]] ', | ||
url = '//zdb-katalog.de/list.xhtml?t=iss%3D%22%s%22&key=cql' }, | |||
eissn = { 'EISSN', 'eissn', COinS = 'rft.eissn' }, | |||
ignoreError = { 'ignoreError' }, | ignoreError = { 'ignoreError' }, | ||
doi = { 'DOI', | arxiv = { 'arXiv', 'ARXIV', 'arxiv', 'eprint', types = { 'journal' }, COinS = 'info:arxiv', | ||
jstor = { 'JSTOR', types = { 'journal', 'newspaper' } }, | prefix = '[[w:arXiv|arXiv]]:', | ||
url = '//arxiv.org/abs/%s' }, | |||
asin = { 'ASIN', 'asin', | |||
prefix = '[[w:Amazon Standard Identification Number|ASIN]] ', | |||
url = '//www.amazon.de/gp/product/%s' }, | |||
bibcode = { 'BIBCODE', 'bibcode', COinS = 'info:bibcode', | |||
prefix = '[[w:Bibcode|Bibcode]]:', | |||
url = '//ui.adsabs.harvard.edu/abs/%s' }, | |||
dnb = { 'DNB', 'dnb', types = { 'book', 'bookitem', 'map' }, | |||
prefix = '[[w:Deutsche Nationalbibliothek|DNB]] ', | |||
url = '//d-nb.info/%s' }, | |||
doi = { 'DOI', 'doi', COinS = 'info:doi', | |||
prefix = '[[w:Digital Object Identifier|doi]]:', | |||
url = '//doi.org/%s' }, | |||
hdl = { 'HDL', 'hdl', COinS = 'info:hdl', | |||
prefix = '[[w:Handle-System|hdl]]:', | |||
url = '//hdl.handle.net/%s' }, | |||
jstor = { 'JSTOR', 'jstor', types = { 'journal', 'newspaper' }, COinS = 'jstor', | |||
prefix = '[[w:JSTOR|JSTOR]] ', | |||
url = '//www.jstor.org/stable/%s', | |||
doi = '10.2307/%s' }, | |||
oclc = { 'OCLC', 'oclc', types = { 'book', 'bookitem', 'map' }, COinS = 'info:oclcnum', | |||
prefix = '[[w:Online Computer Library Center|OCLC]] ', | |||
url = '//worldcat.org/oclc/%s' }, | |||
ol = { 'OL', 'ol', | |||
prefix = '[[w:Open Library|OL]] ', | |||
url = '//openlibrary.org/%s' }, | |||
pmid = { 'PMID', 'pmid', types = { 'journal' }, COinS = 'info:pmid', | |||
prefix = '[[w:PubMed|PubMed]] ', | |||
url = '//pubmed.ncbi.nlm.nih.gov/%s' }, | |||
urn = { 'URN', 'urn', types = { 'book', 'map' }, | |||
prefix = '[[w:Uniform Resource Name|urn]]:', | |||
url = '//nbn-resolving.org/urn:%s' }, | |||
-- archive | -- archive | ||
| Zeile 89: | Zeile 136: | ||
-- additional statesments | -- additional statesments | ||
extent = { 'Umfang', 'Seitenanzahl', types = { 'book', ' | extent = { 'Umfang', 'Seitenanzahl', types = { 'book', 'bookitem', 'map' }, COinS = 'rft.tpages' }, | ||
language = { 'Sprache' }, | language = { 'Sprache' }, | ||
comment = { 'Kommentar' }, | comment = { 'Kommentar' }, | ||
quote = { 'Zitat' } | quote = { 'Zitat' } | ||
}, | }, | ||
-- use following urls if args.url is not specified | |||
additionalTitleUrls = { 'urn', 'doi', 'hdl', 'jstor' }, | |||
-- list of formatter strings | -- list of formatter strings | ||
| Zeile 99: | Zeile 149: | ||
formatters = { | formatters = { | ||
-- author | -- author | ||
auAuthor = '<span class="cite-author">%s</span>', | auAuthor = '<span class="voy-cite-author">%s</span>', | ||
auAuthorAll = '%s: ', | auAuthorAll = '%s: ', | ||
auAuthorEditor = '%s ; %s', | auAuthorEditor = '%s ; %s', | ||
auEditor = '<span class="cite-editor">%s</span> (Hrsg.)', | auEditor = '<span class="voy-cite-editor">%s</span> (Hrsg.)', | ||
-- title | -- title | ||
tiAll = '%s. ', | tiAll = '%s. ', | ||
tiAddition = '%s / %s', | tiAddition = '%s / %s', | ||
tiChapter = 'Kapitel <span class="cite-chapter-title">%s</span>', | tiChapter = 'Kapitel <span class="voy-cite-chapter-title">%s</span>', | ||
tiCollectionTitle = '<span class="cite-collection-title">%s</span>', | tiCollectionTitle = '<span class="voy-cite-collection-title">%s</span>', | ||
tiIn = 'In: ', | tiIn = 'In: ', | ||
tiJournalTitle = '<span class="cite-journal-title">%s</span>', | tiJournalTitle = '<span class="voy-cite-journal-title">%s</span>', | ||
tiNewspaperTitle = '<span class="cite-newspaper-title">%s</span>', | tiNewspaperTitle = '<span class="voy-cite-newspaper-title">%s</span>', | ||
tiScale = 'Maßstab: <span class="cite-scale">%s</span>. ', | tiScale = 'Maßstab: <span class="voy-cite-scale">%s</span>. ', | ||
tiSeries = '<span class="cite-series">%s</span>', | tiSeries = '<span class="voy-cite-series">%s</span>', | ||
tiTitle = '<span class="cite-title">%s</span>', | tiTitle = '<span class="voy-cite-title">%s</span>', | ||
tiVolume = '%s; Bd.& | tiVolume = '%s; Bd. <span class="voy-cite-volume">%s</span>', | ||
tiWebsiteTitle = '<span class="cite-website-title">%s</span>', | tiWebsiteTitle = '<span class="voy-cite-website-title">%s</span>', | ||
-- publisher | -- publisher | ||
puAll = '%s.', | puAll = '%s.', | ||
puDate = '<span class="cite-date">%s</span>', | puDate = '<span class="voy-cite-date">%s</span>', | ||
puDateEditionNum = '%s (%d.& | puDateEditionNum = '%s (%d. Auflage)', | ||
puDateEdition = '%s (%s)', | puDateEdition = '%s (%s)', | ||
puPlace = '<span class="cite-place">%s</span>', | puPlace = '<span class="voy-cite-place">%s</span>', | ||
puPlaceDate = '%s, %s', | puPlaceDate = '%s, %s', | ||
puPlacePub = '%s: %s', | puPlacePub = '%s: %s', | ||
puPublisher = '<span class="cite-publisher">%s</span>', | puPublisher = '<span class="voy-cite-publisher">%s</span>', | ||
-- additions | -- additions | ||
addColumns = 'Sp.& | addColumns = 'Sp. %s', | ||
addComment = ' %s', | addComment = ' %s', | ||
addDelimiter1 = ', ', | addDelimiter1 = ', ', | ||
| Zeile 136: | Zeile 186: | ||
addInLanguage = 'in %s', | addInLanguage = 'in %s', | ||
addLanguage = ' (%s)', | addLanguage = ' (%s)', | ||
addPages = 'S.& | addPages = 'S. %s', | ||
addQuote = ' <span class="voy-cite-quotation">%s</span>', | |||
addQuote = ' <span class="cite-quotation">%s</span>', | |||
-- periodical | -- periodical | ||
prAbbr = ' (%s)', | prAbbr = ' (%s)', | ||
prIssue = 'Nr.& | prIssue = 'Nr. <span class="voy-cite-issue">%s</span>', | ||
prPlace = ' <<span class="cite-place">%s</span>>', | prPlace = ' <<span class="voy-cite-place">%s</span>>', | ||
prVolume = 'Bd.& | prVolume = 'Bd. <span class="voy-cite-volume">%s</span>', | ||
prVolIssue = '%s,<span class="cite-issue">%s</span>', | prVolIssue = '%s,<span class="voy-cite-issue">%s</span>', | ||
prVolYear = '%s (<span class="cite-date">%s</span>)', | prVolYear = '%s (<span class="voy-cite-date">%s</span>)', | ||
-- newspaper | -- newspaper | ||
nsVolume = 'Jg.& | nsVolume = 'Jg. <span class="voy-cite-volume">%s</span>', | ||
-- web | -- web | ||
wbAccess = 'abgerufen am %s', | wbAccess = 'abgerufen am %s', | ||
wbKBytes = 'Dateigröße: %s& | wbKBytes = 'Dateigröße: %s KByte', | ||
wbMBytes = 'Dateigröße: %s& | wbMBytes = 'Dateigröße: %s MByte', | ||
-- archive | -- archive | ||
| Zeile 187: | Zeile 229: | ||
noTitleUrl = '<span class="error">Titel und URL fehlen</span>[[Category:Literatur: Titel und URL fehlen]]', | noTitleUrl = '<span class="error">Titel und URL fehlen</span>[[Category:Literatur: Titel und URL fehlen]]', | ||
noURL = '<span class="error">Ungültige URL</span>[[Category:Literatur: ungültige URL]]', | noURL = '<span class="error">Ungültige URL</span>[[Category:Literatur: ungültige URL]]', | ||
unwantedURL = '[[Category:Literatur: unerwünschte URL]]', | |||
unknownParam = '<span class="error">Ungültiger Parameter: %s</span>[[Category:Literatur: ungültige Parameter]]', | unknownParam = '<span class="error">Ungültiger Parameter: %s</span>[[Category:Literatur: ungültige Parameter]]', | ||
unknownParams = '<span class="error">Ungültige Parameter: %s</span>[[Category:Literatur: ungültige Parameter]]', | unknownParams = '<span class="error">Ungültige Parameter: %s</span>[[Category:Literatur: ungültige Parameter]]', | ||
unknownTitle = '[[Category:Literatur: fehlender Titel]]', | unknownTitle = '[[Category:Literatur: fehlender Titel]]', | ||
unknownPeriodical = '[[Category:Literatur: fehlender Titel eines Periodikums]]', | unknownPeriodical = '[[Category:Literatur: fehlender Titel eines Periodikums]]', | ||
redundantParams = '[[Category:Literatur: redundante Parameter]]', | |||
wrongChars = '<span class="error">Ungültige Steuerzeichen</span>[[Category:Literatur: ungültige Steuerzeichen]]', | wrongChars = '<span class="error">Ungültige Steuerzeichen</span>[[Category:Literatur: ungültige Steuerzeichen]]', | ||
wrongDate = '<span class="error">Ungültiges Datum</span>[[Category:Literatur: ungültiges Datum]]', | wrongDate = '<span class="error">Ungültiges Datum</span>[[Category:Literatur: ungültiges Datum]]', | ||
| Zeile 196: | Zeile 240: | ||
wrongPages = '<span class="error">Ungültige Seiten</span>[[Category:Literatur: ungültige Seiten]]', | wrongPages = '<span class="error">Ungültige Seiten</span>[[Category:Literatur: ungültige Seiten]]', | ||
wrongType = '<span class="error">Ungültiger Typ</span>[[Category:Literatur: ungültiger Typ]]', | wrongType = '<span class="error">Ungültiger Typ</span>[[Category:Literatur: ungültiger Typ]]', | ||
wrongURN = '[[Category:Literatur: ungültige URN-Prüfziffer]]', | |||
wrongValue = '<span class="error">Ungültiger Wert: %s</span>[[Category:Literatur: ungültiger Wert]]', | wrongValue = '<span class="error">Ungültiger Wert: %s</span>[[Category:Literatur: ungültiger Wert]]', | ||
wrongValues = '<span class="error">Ungültige Werte: %s</span>[[Category:Literatur: ungültiger Wert]]', | wrongValues = '<span class="error">Ungültige Werte: %s</span>[[Category:Literatur: ungültiger Wert]]', | ||
KBytesMBytes = '<span class="error">KBytes und MBytes gleichzeitig</span>[[Category:Literatur: KBytes und MBytes gleichzeitig]]' | KBytesMBytes = '<span class="error">KBytes und MBytes gleichzeitig</span>[[Category:Literatur: KBytes und MBytes gleichzeitig]]' | ||
} | }, | ||
citeClass = 'citation ', | |||
addCiteClasses = { | |||
book = 'printNoLink book', | |||
bookitem = 'printNoLink book bookitem', | |||
journal = 'printNoLink journal', | |||
map = 'printNoLink book map', | |||
newspaper = 'printNoLink news newspaper', | |||
web = 'web', | |||
webnews = 'news' | |||
}, | |||
replacements = { | |||
{ s = '([!%?…‥])%s*%.+', r = '%1' }, | |||
{ s = "([!%?…‥]'')%s*%.+", r = '%1' }, | |||
{ s = '([!%?…‥]</span>)%s*%.+', r = '%1' }, | |||
{ s = '(%d+)%s+(f?f%.)', r = '%1 %2' }, | |||
{ s = '%s+([.:,;!?/›»])', r = ' %1' }, | |||
{ s = '([‹«])%s+', r = '%1 ' } | |||
}, | |||
unwantedUrls = { | |||
'doi.org/', 'hdl.handle.net/', 'jstor.org/', 'openlibrary.org/', | |||
'arxiv.org/abs/', 'adsabs.harvard.edu/', 'worldcat.org/oclc', | |||
'ncbi.nlm.nih.gov/pubmed/', 'urn:nbn:' | |||
}, | |||
-- nbn-resolving.org resolving: ch, de, or propagation | |||
-- https://wiki.dnb.de/display/URNSERVDOK/URN-Resolver+API | |||
nbnResolving = { at = '_', ch = '_', cz = '_', de = '_', fi = '_', hu = '_', | |||
it = '_', nl = '_', no = '_', se = '_'}, | |||
nbnCheckDigit = { at = '_', ch = '_', de = '_', fi = '_' } | |||
} | } | ||