Modul:Citation/i18n: Unterschied zwischen den Versionen
(+Fehlerkategorie) |
(anzahl parameter verringert) |
||
| Zeile 51: | Zeile 51: | ||
place = { 'Ort', COinS = 'rft.place' }, | place = { 'Ort', COinS = 'rft.place' }, | ||
publisher = { 'Verlag | publisher = { 'Verlag', types = { 'book', 'map', 'collection', 'web' }, 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', 'collection' }, COinS = 'rft.edition' }, | ||
volume = { 'Band', types = { 'book', 'map', 'collection', 'journal', 'newspaper' }, COinS = 'rft.volume' }, | volume = { 'Band', types = { 'book', 'map', 'collection', 'journal', 'newspaper' }, COinS = 'rft.volume' }, | ||
issue = { | issue = { 'Nummer', types = { 'journal', 'newspaper' }, COinS = 'rft.issue' }, | ||
pages = { | pages = { 'Seiten', types = { 'book', 'collection', 'journal', 'newspaper', 'web' }, COinS = 'rft.pages' }, | ||
columns = { | columns = { 'Spalten', types = { 'book', 'collection', 'journal', 'newspaper', 'web' } }, | ||
extent = { 'Umfang | extent = { 'Umfang', types = { 'book', 'collection', 'map' } }, | ||
series = { 'Serie', 'Reihe', types = { 'book', 'collection', 'map' }, COinS = 'rft.series' }, | series = { 'Serie', 'Reihe', types = { 'book', 'collection', 'map' }, COinS = 'rft.series' }, | ||
series2 = { 'Serie2 | series2 = { 'Serie2', types = { 'book', 'collection', 'map' } }, | ||
series3 = { 'Serie3 | series3 = { 'Serie3', types = { 'book', 'collection', 'map' } }, | ||
url = { 'Online', 'URL' }, | url = { 'Online', 'URL' }, | ||
| Zeile 68: | Zeile 68: | ||
archiveUrl = { 'Archiv-URL' }, | archiveUrl = { 'Archiv-URL' }, | ||
urlStatus = { 'URL-Status' }, | urlStatus = { 'URL-Status' }, | ||
archiveDate = { 'Archiv-Datum | archiveDate = { 'Archiv-Datum' }, | ||
format = { 'Format' }, | format = { 'Format' }, | ||
KBytes = { 'KBytes | KBytes = { 'KBytes' }, | ||
MBytes = { 'MBytes | MBytes = { 'MBytes' }, | ||
accessDate = { | accessDate = { 'Abruf' }, | ||
isbn = { 'ISBN', types = { 'book', 'collection', 'map', 'journal' }, COinS = 'rft.isbn' }, | isbn = { 'ISBN', types = { 'book', 'collection', 'map', 'journal' }, COinS = 'rft.isbn' }, | ||
| Zeile 78: | Zeile 78: | ||
eissn = { 'EISSN', COinS = 'rft.eissn' }, | eissn = { 'EISSN', COinS = 'rft.eissn' }, | ||
doi = { 'DOI', COinS_id = 'info:doi' }, | doi = { 'DOI', COinS_id = 'info:doi' }, | ||
ignoreError = { 'ignoreError | ignoreError = { 'ignoreError' }, | ||
jstor = { 'JSTOR', types = { 'journal', 'newspaper' } }, | jstor = { 'JSTOR', types = { 'journal', 'newspaper' } }, | ||
| Zeile 85: | Zeile 85: | ||
language = { 'Sprache' }, | language = { 'Sprache' }, | ||
comment = { 'Kommentar', 'Zitat | comment = { 'Kommentar', 'Zitat' } | ||
}, | }, | ||
Version vom 1. April 2020, 16:47 Uhr
Die Dokumentation für dieses Modul kann unter Modul:Citation/i18n/doc erstellt werden
-- Separating code from internationalization
return {
-- options
skipPathCheck = false, -- for URL check, see Module:UrlCheck
-- project information
project = {
name = 'wikivoyage.org',
languageCode = mw.language.getContentLanguage():getCode(),
language = mw.language.fetchLanguageName( mw.language.getContentLanguage():getCode() )
},
-- list of valid type values
refTypes = {
book = { 'book', 'Buch' },
map = { 'map', 'Karte' },
collection = { 'collection', 'Sammelwerk' },
journal = { 'journal', 'Zeitschrift' },
newspaper = { 'newspaper', 'Zeitung' },
web = { 'web', 'Web', 'Internet' }
},
-- list of valid status values
urlStatusTable = {
dead = { 'dead', 'offline' },
live = { 'live', 'online' },
usurped = { 'unfit', 'usurped', 'usurpiert' }
},
-- list of possible parameter
-- no index: possible parameter names
-- types: reference types for which parameter is valid
-- COinS: COinS key
-- COinS_id: COinS id
-- cleanup = true: complete cleanup
params = {
type = { 'type', 'Typ' },
author = { 'Autor', COinS = 'rft.au' },
editor = { 'Herausgeber', 'Hrsg' },
title = { 'Titel', COinS = 'rft.title' },
titleAddition = { 'TitelErg' },
chapter = { 'Kapitel', types = 'book', COinS = 'rft.atitle' },
scale = { 'Maßstab', types = 'map' },
collection = { 'Sammelwerk', types = 'collection' },
journal = { 'Zeitschrift', 'Sammelwerk', types = 'journal', COinS = 'rft.jtitle' },
newspaper = { 'Zeitung', 'Sammelwerk', types = 'newspaper', COinS = 'rft.jtitle' },
website = { 'Website', 'Internet', 'Sammelwerk', types = 'web' },
abbr = { 'Abk', types = { 'collection', 'journal', 'newspaper' } },
place = { 'Ort', COinS = 'rft.place' },
publisher = { 'Verlag', types = { 'book', 'map', 'collection', 'web' }, COinS = 'rft.pub' },
date = { 'Datum', 'Jahr', COinS = 'rft.date' },
edition = { 'Auflage', types = { 'book', 'map', 'collection' }, COinS = 'rft.edition' },
volume = { 'Band', types = { 'book', 'map', 'collection', 'journal', 'newspaper' }, COinS = 'rft.volume' },
issue = { 'Nummer', types = { 'journal', 'newspaper' }, COinS = 'rft.issue' },
pages = { 'Seiten', types = { 'book', 'collection', 'journal', 'newspaper', 'web' }, COinS = 'rft.pages' },
columns = { 'Spalten', types = { 'book', 'collection', 'journal', 'newspaper', 'web' } },
extent = { 'Umfang', types = { 'book', 'collection', 'map' } },
series = { 'Serie', 'Reihe', types = { 'book', 'collection', 'map' }, COinS = 'rft.series' },
series2 = { 'Serie2', types = { 'book', 'collection', 'map' } },
series3 = { 'Serie3', types = { 'book', 'collection', 'map' } },
url = { 'Online', 'URL' },
siteUrl = { 'Site-URL', 'Website-URL', types = { 'collection', 'journal', 'newspaper', 'web' } },
archiveUrl = { 'Archiv-URL' },
urlStatus = { 'URL-Status' },
archiveDate = { 'Archiv-Datum' },
format = { 'Format' },
KBytes = { 'KBytes' },
MBytes = { 'MBytes' },
accessDate = { 'Abruf' },
isbn = { 'ISBN', types = { 'book', 'collection', 'map', 'journal' }, COinS = 'rft.isbn' },
issn = { 'ISSN', COinS = 'rft.issn' },
eissn = { 'EISSN', COinS = 'rft.eissn' },
doi = { 'DOI', COinS_id = 'info:doi' },
ignoreError = { 'ignoreError' },
jstor = { 'JSTOR', types = { 'journal', 'newspaper' } },
dnb = { 'DNB', types = { 'book', 'collection', 'map' } },
oclc = { 'OCLC', types = { 'book', 'collection', 'map' }, COinS_id = 'info:oclcnum' },
language = { 'Sprache' },
comment = { 'Kommentar', 'Zitat' }
},
-- list of formatter strings
-- formatting is geared to DIN 690 = ISO 690, and DIN 1505-2
formatters = {
-- author
auAuthor = '%s: ',
auAuthorEditor = '%s ; %s',
auEditor = '%s (Hrsg.)',
-- title
tiAll = '%s. ',
tiAddition = '%s / %s',
tiChapter = "Kapitel ''%s''",
tiIn = 'In: ',
tiScale = 'Maßstab: %s. ',
tiSeries = '(%s)',
tiTitle = "''%s''",
tiVolume = "''%s''; Bd. %s",
-- publisher
puAll = '%s.',
puDateEditionNum = '%s (%d. Auflage)',
puDateEdition = '%s (%s)',
puPlaceDate = '%s, %s',
puPlacePub = '%s: %s',
-- additions
addColumns = 'Sp. %s',
addComment = ' %s',
addDelimiter1 = ', ',
addDelimiter2 = '; ',
addExtent = '%s Seiten',
addLanguage = ' (%s)',
addPages = 'S. %s',
addPagesSeq = '%s*(ff?%.)',
-- periodical
prAbbr = ' (%s)',
prIssue = 'Nr. %s',
prPlace = ' <%s>',
prVolume = 'Bd. %s',
prVolIssue = '%s,%s',
prVolYear = '%s (%s)',
-- newspaper
nsVolume = 'Jg. %s',
-- 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
wbAccess = 'abgerufen am %s',
wbKBytes = 'Dateigröße: %s KByte',
wbMBytes = 'Dateigröße: %s MByte',
-- archive
arArchived = 'Archiviert',
arOriginal = 'Original',
arArchive = ' %s vom %s.',
arArchiveDate = ' %s vom %s am %s.',
arOffline = ' %s nicht mehr verfügbar.',
-- language
lgIn = 'in %s'
},
-- error categories and hints
texts = {
decimalPoint = ',',
moreThan100 = '<span class="error">Dateigröße über 100 MB</span>[[Category:Literatur: Dateigröße über 100 MB]]',
noTitle = '<span class="error">Fehlender Titel</span>',
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]]',
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]]',
unknownTitle = '[[Category:Literatur: fehlender Titel]]',
unknownPeriodical = '[[Category:Literatur: fehlender Titel eines Periodikums]]',
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]]',
wrongIssn = '<span class="error">Ungültige ISSN</span>[[Category:Seiten mit ISSN-Fehlern]]',
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]]',
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]]',
KBytesMBytes = '<span class="error">KBytes und MBytes gleichzeitig</span>[[Category:Literatur: KBytes und MBytes gleichzeitig]]'
}
}