Content deleted Content added
No edit summary |
Matthiaspaul (talk | contribs) Remove |translator= from suggestion list as it is meanwhile a supported parameter. Suggest superset parameter |date= instead of the discouraged parameter |year=. Refine several foreign language suggestions to reflect changes in parameters supported by English citation templates. Add various suggestions to emulate parameters supported by German citation templates as much as possible. |
||
Line 1:
--[[
History of changes since last sync: 2017-04-29
2018-07-31: remove lang from suggestion list as it is now explicitly whitelisted; see Help_talk:Citation_Style_1#lang_on_suggestion_list_removed;_general_q_about_suggestion_list▼
2020-02-16: sync from live; add |deadurl= and |dead-url=; |doi_brokendate=, |doi_inactivedate=, |template doc demo=, |trans_chapter=, |trans_title= added earlier but apparently not documented; see Wikipedia:Village_pump_(technical)#Automated_suggestion_for_%7Cdead-url%3D_%7Cdeadurl%3D_to_%7Curl-status▼
▲* 2018-07-31: remove lang from suggestion list as it is now explicitly whitelisted; see Help_talk:Citation_Style_1#lang_on_suggestion_list_removed;_general_q_about_suggestion_list
▲* 2020-02-16: sync from live; add |deadurl= and |dead-url=; |doi_brokendate=, |doi_inactivedate=, |template doc demo=, |trans_chapter=, |trans_title= added earlier but apparently not documented; see Wikipedia:Village_pump_(technical)#Automated_suggestion_for_%7Cdead-url%3D_%7Cdeadurl%3D_to_%7Curl-status
* 2020-06-16: Remove |translator= from suggestion list as it is now a supported parameter. Suggest superset parameter |date= instead of the discouraged parameter |year=. Refine several foreign language suggestions to reflect changes in parameters supported by English citation templates. Add various suggestions to emulate parameters supported by German citation templates as much as possible.
]]
-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',
suggestions = {
['
['abruf-verborgen'] = 'access-date', ['accessmonth'] = 'access-date', -- no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date' ['accesso'] = 'access-date',
['accessyear'] = 'access-date',
['address'] = '___location',
['année'] = '
['año'] = '
['año-original'] = 'orig-year',
['añoacceso'] = 'access-date',
['annoaccesso'] = 'access-date',
['annodiaccesso'] = 'access-date',
['apellido'] = 'last',
['archiv-datum'] = 'archive-date',
['archive date'] = 'archive-date',
['archiv-url'] = 'archive-url',
['archive url'] = 'archive-url',
['artikelnr'] = 'id', -- German (as 'id=Article No. ...') (not yet supported by us directly)
['artist'] = 'others',
['auflage'] = 'edition',
['auteur'] = 'author',
['auther'] = 'author',
['author link'] = 'author-link',
['author link2'] = 'author2-link',
['autor'] = 'authors',
['autore'] = 'author',
['autthor'] = 'author',
['band'] = 'volume',
['bandreihe'] = 'volume', -- German
['ch'] = 'language', -- German (as 'language=de-CH')
['chapter_title'] = 'chapter',
['cita'] = 'quote',
['citazione'] = 'quote',
['coauthor'] = 'author',
['coauthors'] = 'author',
['coautores'] = 'author',
['coautori'] = 'author',
['cognome'] = 'last',
['
['
['
['
['
['
['datum'] = 'date', -- German
['deadlink'] = 'url-status',
['deadurl'] = 'url-status',
['dead-url'] = 'url-status',
['distributor'] = 'publisher',
['dnb'] = 'id',
['doi_brokendate'] = 'doi-broken-date',
['doi_inactivedate'] = 'doi-inactive-date',
['éditeur'] = 'editor',
['editon'] = 'edition',
['editoin'] = 'edition',
['editora'] = 'publisher',
['editorial'] = 'publisher',
['en ligne le'] = 'archive-date',
['encyclopædia'] = 'encyclopedia',
['enlaceautor'] = 'author-link',
['fecha'] = 'date',
['fechaacceso'] = 'access-date',
['fechaarchivo'] = 'archive-date',
['filetype'] = 'format',
['first 1'] = 'first1',
['foramt'] = 'format',
['formato'] = 'format',
['frist'] = 'first',
['
['
['
['
['idioma'] = 'language', -- Spanish, Italian
['isbndefekt'] = 'ignore-isbn-error', -- German
['isbnformalfalsch'] = 'ignore-isbn-error', -- German
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German
['isnb'] = 'isbn',
['
['
['kapitel'] = 'chapter', -- German
['kbytes'] = 'format', -- German (not a direct replacement, but can be emulated)
['kommentar'] = 'postscript', -- German (not a direct replacement, but can be emulated)
['langauge'] = 'language',
['langue'] = 'language',
['last 1'] = 'last1',
['lieu'] = '___location',
['lingua'] = 'language',
['lire en ligne'] = 'url',
['lizenznummer'] = 'id',
['loaction'] = '___location',
['locatoin'] = '___location',
['lugar'] = '___location',
['miejsce'] = '___location',
['miesiąc'] = 'date',
['mois'] = 'date',
['monat'] = 'date',
-- ['name'] = 'author',
['nazwisko'] = 'last',
['nespaper'] = 'newspaper',
['newpaper'] = 'newspaper',
['news'] = 'newspaper',
['nom'] = 'last',
['nom1'] = 'last1',
['nombre'] = 'first',
['nome'] = 'first',
['nummer'] = 'number',
['
['
['
['
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
▲ ['opublikowany'] = 'agency', -- Polish
['
['origdate'] = 'orig-year',
['originaljahr'] = 'orig-year',
['originalort'] = '
['originalsprache'] = 'language',
['originaltitel'] = 'title',
['ort'] = '
['ortea'] = 'publishing-place', -- German (not a direct replacement, but can be emulated)
['other'] = 'others',
['oznaczenie'] = 'agency',
['pagees'] = 'pages',
['página'] = 'page',
['páginas'] = 'pages',
['passage'] = 'pages',
['pagina'] = 'pages',
['pagine'] = 'pages',
['périodique'] = 'publisher',
['plublisher'] = 'publisher',
['pmcid'] = 'pmc',
['praca'] = 'work',
['prénom'] = 'first',
['prénom1'] = 'first1',
['ps'] = 'postscript',
['pub'] = 'publisher',
['pulbication-place'] = 'publication-place',
['reihe'] = 'series',
['retrieved'] = 'access-date',
['rok'] = 'date',
['sammelwerk'] = 'work',
['
['
▲ ['série'] = 'work', -- French *RECHECK*
['service'] = 'agency',
['sitioweb'] = 'website',
['sito'] = 'website',
['stron'] = 'page',
['strony'] = 'pages',
['spalten'] = 'at',
['sprache'] = 'language',
['suscripción'] = '
['tag'] = 'date',
['template doc demo'] = 'template-doc-demo',
['tile'] = 'title',
['tite'] = 'title',
['titel'] = 'title',
['titel-p'] = 'title',
['titelerg'] = 'contribution',
['titolo'] = 'title',
['titre'] = 'title',
['títle'] = 'title',
['título'] = 'title',
['transchapter'] = 'trans-chapter',
['trans_chapter'] = 'trans-chapter',
['trans_title'] = 'trans-title',
['transtitle'] = 'trans-title',
['typ'] = 'author-mask',
['tytuł'] = 'title',
['ubicación'] = '___location',
['
['
['
['urn'] = 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly) ['übersetzer'] = 'translator',
['verlag'] = 'publisher',
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['vol'] = 'volume',
['volumen'] = 'volume',
['werk'] = 'work',
['werkerg'] = 'contribution',
['wkautore'] = 'author-link',
['wolumin'] = 'volume',
['wydanie'] = 'number',
['wydawca'] = 'publisher',
['zaprezentowany'] = 'publisher',
['zdb'] = 'id',
['zitat'] = 'quote',
['zugriff'] = 'access-date',
}
Line 189 ⟶ 207:
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------
Here we use Lua patterns to make suggestions. The form is
['pattern'] = 'correct', Lua patterns are not
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial
match from incorrectly suggesting the wrong parameter name. For instance, the pattern 'a[utho]+r'
matches 'author' in the no-longer-supported parameter |author-separator= so the code suggests One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.)
The value from the capture replaces $1 in the 'correct' value.
]]
Line 207 ⟶ 228:
['^ac+es+ ?d?a?t?e?$'] = 'access-date',
['^a[utho]+r$'] = 'author',
['^a[utho]+r(%d+)$'] = 'author$1',
['^pu[blish]+ers?$'] = 'publisher',
}
|