Modul:Citation/i18n: Unterschied zwischen den Versionen

K
78 Versionen von wikivoyage:Modul:Citation/i18n importiert
(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' },
collection = { 'collection', 'Sammelwerk' },
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 parameter
-- 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
-- COinS_id: COinS id
-- prefix = : hint before identifier
-- cleanup = true: complete cleanup
-- url = : identifier url formatter
-- doi = : doi equivalent
params = {
params = {
-- type, author and title
-- type, author and title
type       = { 'type', 'Typ' },
type         = { 'type', 'Typ' },
author     = { 'Autor', COinS = 'rft.au' },
author       = { 'Autor', COinS = 'rft.au' },
title       = { 'Titel', COinS = 'rft.title' },
title         = { 'Titel', COinS = 'rft.title' },
titleAddition = { 'TitelErg' },
titleAddition = { 'TitelErg' },
scale       = { 'Maßstab', types = 'map' },
scale         = { 'Maßstab', types = 'map' },
url         = { 'Online', 'URL' },
url           = { 'Online', 'URL', COinS = 'url', url = '%s' },
access     = { 'Zugriff' },
access       = { 'Zugriff' },


-- edited collections
-- edited collections
editor      = { 'Herausgeber', 'Hrsg' },
editor      = { 'Herausgeber', 'Hrsg', types = { 'book', 'map', 'bookitem' } },
collection  = { 'Sammelwerk', types = 'collection' },
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 = { 'collection', 'journal', 'newspaper' } },
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 = { 'collection', 'journal', 'newspaper', 'web' } },
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', 'collection', 'web' }, COinS = 'rft.pub' },
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', 'collection' }, COinS = 'rft.edition' },
edition    = { 'Auflage', types = { 'book', 'map', 'bookitem' }, COinS = 'rft.edition' },
series      = { 'Serie', 'Reihe', types = { 'book', 'collection', 'map' }, COinS = 'rft.series' },
series      = { 'Reihe', types = { 'book', 'bookitem', 'map' }, COinS = 'rft.series' },


-- source
-- source
volume      = { 'Band', types = { 'book', 'map', 'collection', 'journal', 'newspaper' }, COinS = 'rft.volume' },
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', 'collection', 'journal', 'newspaper', 'web' }, COinS = 'rft.pages' },
chapterUrl  = { 'Kapitel-URL', types = 'book' },
columns    = { 'Spalten', types = { 'book', 'collection', 'journal', 'newspaper', 'web' } },
pages      = { 'Seiten', types = { 'book', 'bookitem', 'journal', 'newspaper', 'web', 'webnews' }, COinS = 'rft.pages' },
columns    = { 'Spalten', types = { 'book', 'bookitem', 'journal', 'newspaper', 'web', 'webnews' } },


-- key numbers
-- identifiers
isbn        = { 'ISBN', types = { 'book', 'collection', 'map', 'journal' }, COinS = 'rft.isbn' },
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', COinS_id = 'info:doi' },
arxiv      = { 'arXiv', 'ARXIV', 'arxiv', 'eprint', types = { 'journal' }, COinS = 'info:arxiv',
jstor      = { 'JSTOR', types = { 'journal', 'newspaper' } },
                prefix = '[[w:arXiv|arXiv]]:',
dnb        = { 'DNB', types = { 'book', 'collection', 'map' } },
                url = '//arxiv.org/abs/%s' },
oclc       = { 'OCLC', types = { 'book', 'collection', 'map' }, COinS_id = 'info:oclcnum' },
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', 'collection', 'map' } },
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>&nbsp;(Hrsg.)',
auEditor = '<span class="voy-cite-editor">%s</span>&nbsp;(Hrsg.)',


-- title
-- title
tiAll = '%s. ',
tiAll = '%s. ',
tiAddition = '%s&nbsp;/ %s',
tiAddition = '%s&nbsp;/ %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:&nbsp;',
tiIn = 'In:&nbsp;',
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.&nbsp;<span class="cite-volume">%s</span>',
tiVolume = '%s; Bd.&#x202F;<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.&nbsp;Auflage)',
puDateEditionNum = '%s (%d.&#x202F;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.&nbsp;%s',
addColumns = 'Sp.&#x202F;%s',
addComment = ' %s',
addComment = ' %s',
addDelimiter1 = ', ',
addDelimiter1 = ', ',
Zeile 136: Zeile 186:
addInLanguage = 'in %s',
addInLanguage = 'in %s',
addLanguage = ' (%s)',
addLanguage = ' (%s)',
addPages = 'S.&nbsp;%s',
addPages = 'S.&#x202F;%s',
addPagesSeq = '(%d+)%s*(ff?%.)',
addQuote = ' <span class="voy-cite-quotation">%s</span>',
addQuote = ' <span class="cite-quotation">%s</span>',


-- periodical
-- periodical
prAbbr = ' (%s)',
prAbbr = ' (%s)',
prIssue = 'Nr.&nbsp;<span class="cite-issue">%s</span>',
prIssue = 'Nr.&#x202F;<span class="voy-cite-issue">%s</span>',
prPlace = ' &lt;<span class="cite-place">%s</span>&gt;',
prPlace = ' &lt;<span class="voy-cite-place">%s</span>&gt;',
prVolume = 'Bd.&nbsp;<span class="cite-volume">%s</span>',
prVolume = 'Bd.&#x202F;<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.&nbsp;<span class="cite-volume">%s</span>',
nsVolume = 'Jg.&#x202F;<span class="voy-cite-volume">%s</span>',
 
-- database ids
dbDnb = '[[w:Deutsche Nationalbibliothek|DNB]] [http://d-nb.info/%s %s]',
dbDoi = '[[w:Digital Object Identifier|doi]]:%s',
dbOclc = '[[w:Online Computer Library Center|OCLC]] [https://worldcat.org/oclc/%s %s]',
dbIssn = '[[w:Internationale Standardnummer für fortlaufende Sammelwerke|ISSN]] [http://zdb-katalog.de/list.xhtml?t=iss%3D%22xx1xx%22&key=cql xx1xx]',
dbJstor = '[[w:JSTOR|JSTOR]] [https://www.jstor.org/stable/%s %s]',


-- web
-- web
wbAccess = 'abgerufen am %s',
wbAccess = 'abgerufen am %s',
wbKBytes = 'Dateigröße: %s&nbsp;KByte',
wbKBytes = 'Dateigröße: %s&#x202F;KByte',
wbMBytes = 'Dateigröße: %s&nbsp;MByte',
wbMBytes = 'Dateigröße: %s&#x202F;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&#x202F;%2' },
{ s = '%s+([.:,;!?/›»])', r = '&#x202F;%1' },
{ s = '([‹«])%s+', r = '%1&#x202F;' }
},
 
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 = '_' }
}
}