Module:Citation/CS1/Suggestions/sandbox: Difference between revisions

Content deleted Content added
added four more misspellings, marked those entries which are known misspellings accordingly
added more hints for parameters from citation templates in Italian and Spanish Wikipedia
Line 7:
2020-09-10: add hints for removed parameter names |interviewerlink= and |interviewermask=; see Help_talk:Citation_Style_1#name-given= and -surname parameter variants
2020-09-10: add hints for some likely misspellings of parameter names which do not have hyphenated forms (|eprint=, |newspaper=, |postscript=, |surname=, |transcript=, |vauthors=, |veditors=)
2020-09-14: add hints for parameters from citation templates in Italian and Spanish Wikipedia
 
]]
Line 21 ⟶ 22:
['address'] = '___location',
['année'] = 'date', -- French
['año'] = 'date', -- Spanish
['año-originalañooriginal'] = 'orig-date', -- Spanish
['año-original'] = 'orig-date', -- Spanish
['añoacceso'] = 'access-date', -- Spanish
['last 1anno'] = 'last1date', -- misspellingItalian
['annoaccesso'] = 'access-date', -- Italian
['annodiaccesso'] = 'access-date', -- Italian
['annooriginale'] = 'orig-date', -- Italian
['apellido'] = 'last', -- Spanish
['nom1apellidos'] = 'last1last', -- FrenchSpanish
['archiv-datum'] = 'archive-date', -- German
['archive date'] = 'archive-date',
Line 37 ⟶ 42:
['auther'] = 'author',
['author link'] = 'author-link', -- Polish
['author link2autor'] = 'author2-linkauthor', -- PolishSpanish, German (singular and plural)
['autor'] = 'author', -- German (singular and plural)
['autore'] = 'author', -- Italian
['autthor'] = 'author',
Line 45 ⟶ 49:
['ch'] = 'language', -- German (as 'language=de-CH')
['chapter_title'] = 'chapter',
['cid'] = 'ref', -- Italian
['cita'] = 'quote', -- Spanish
['citazione'] = 'quote', -- Italian
['città'] = '___location', -- Italian
['coauthor'] = 'author',
['coauthors'] = 'author',
Line 53 ⟶ 59:
['cognome'] = 'last', -- Italian
['consulté le'] = 'access-date', -- French
['curatore'] = 'publisher', -- Italian
['czasopismo'] = 'journal', -- Polish
['data'] = 'date', -- Polish, Italian
['dataaccesso'] = 'access-date', -- Italian
['dataarchivio'] = 'archive-date', -- Italian
['data dostępu'] = 'access-date', -- Polish
Line 70 ⟶ 78:
['doi-inactive-date'] = 'doi-broken-date', -- former parameter alias
['doi_inactivedate'] = 'doi-inactive-date',
['ed'] = 'edition', -- Italian
['éditeur'] = 'editor', -- French
['editon'] = 'edition', -- misspelling
['editoin'] = 'edition', -- misspelling
['editora'] = 'publisher', -- Portuguese
['editorialeditore'] = 'publisheragency', -- Italian
['editori'] = 'editor', -- Italian (plural, not a perfect match)
['editorial'] = 'publisher', -- Spanish
['edizione'] = 'edition', -- Italian
['en ligne le'] = 'archive-date', -- French
['encyclopædia'] = 'encyclopedia',
['enlaceautor'] = 'author-link', -- Spanish
['enlaceroto'] = 'url-status', -- Spanish
['embargo'] = 'pmc-embargo-date', -- former parameter name
['e-print'] = 'eprint', -- misspelling
Line 84 ⟶ 97:
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['first 1'] = 'first1', -- misspelling
['foramt'] = 'format', -- misspelling
['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['giornale'] = 'journal', -- Italian
['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish, Italian
['ignoreisbnerror'] = 'ignore-isbn-error', -- former parameter alias
['imię'] = 'first', -- Polish
Line 107 ⟶ 120:
['langauge'] = 'language', -- misspelling
['langue'] = 'language', -- French
['last 1'] = 'last1', -- misspelling
['lieu'] = '___location', -- French
['lingua'] = 'language', -- Italian
Line 114 ⟶ 126:
['locatoin'] = '___location', -- misspelling
['lugar'] = '___location', -- Spanish
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['miejsce'] = '___location', -- Polish
['miesiąc'] = 'date', -- Polish
Line 125 ⟶ 139:
['news-paper'] = 'newspaper', -- misspelling
['nom'] = 'last', -- French
['nom1'] = 'last1', -- French
['nombre'] = 'first', -- Spanish
['nome'] = 'first', -- Italian
['numero'] = 'number', -- Italian, Spanish
 
['nummer'] = 'number', -- German
['nummerreihe'] = 'number', -- German
Line 134 ⟶ 149:
['offline'] = 'url-status', -- German (as 'url-status=dead')
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opublikowany'] = 'agency', -- Polish
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- German
Line 146 ⟶ 161:
['oznaczenie'] = 'agency', -- Polish
['pagees'] = 'pages', -- misspelling
['páginapagina'] = 'page', -- Spanish, Italian
['páginaspágina'] = 'pagespage', -- Spanish, Italian
['páginas'] = 'pages', -- Spanish
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['periodico'] = 'magazine', -- Spanish
['périodique'] = 'publisher', -- French
['plublisher'] = 'publisher', -- misspelling
Line 158 ⟶ 176:
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['primero'] = 'first', -- Spanish
['ps'] = 'postscript',
['pub'] = 'publisher',
['pubblicazione'] = 'magazine', -- Italian
['publicación'] = 'journal', -- Spanish
['pulbication-place'] = 'publication-place', -- misspelling
['reihe'] = 'series', -- German
['retrieved'] = 'access-date',
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['rok'] = 'date', -- Polish
['sammelwerk'] = 'work', -- German
['script-post'] = 'postscript', -- misspelling
['script-trans'] = 'transcript', -- misspelling
['seria'] = 'series', -- Spanish, Polish
['serie'] = 'series', -- Italian
['série'] = 'series', -- French
['service'] = 'agency',
Line 181 ⟶ 204:
['template doc demo'] = 'template-doc-demo',
['tile'] = 'title', -- misspelling
['tipo'] = 'type', -- Italian
['tite'] = 'title', -- misspelling
['titel'] = 'title', -- German
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['titolo'] = 'title', -- Spanish, Italian
['titre'] = 'title', -- French
['títle'] = 'title',
Line 203 ⟶ 227:
['urlarchivo'] = 'archive-url', -- Spanish
['urlarchivio'] = 'archive-url', -- Italian
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['übersetzer'] = 'translator', -- German (singular and plural)
Line 209 ⟶ 234:
['verlag'] = 'publisher', -- German
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['vol'] = 'volume', -- Italian
['volumen'] = 'volume', -- Spanish
['werk'] = 'work', -- German
Line 246 ⟶ 271:
 
local patterns = {
['^ac+es+ ?d?a?t?e?$'] = 'access-date', -- misspelling
['^aapellido[uthos]?(%d+r)$'] = 'authorlast$1', -- Spanish, enumerated
['^a[utho]+r(%d+)$'] = 'author$1', -- enumeratedmisspelling
['^pua[blishutho]+ers?r(%d+)$'] = 'publisherauthor$1', -- misspelling, enumerated
['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated
['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated
['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated
['^enlaceautore(%d+)$'] = 'author-link$1', -- Spanish, enumerated
['^first (%d+)$'] = 'first$1', -- enumerated
['^last (%d+)$'] = 'last$1', -- enumerated
['^nom[e]?(%d+)$'] = 'last$1', -- Italian/French, enumerated
['^nombre(%d+)$'] = 'first$1', -- Spanish, enumerated
['^primero(%d+)$'] = 'first$1', -- Spanish, enumerated
['first 1^pu[blish]+ers?$'] = 'first1publisher', -- misspelling
['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated
}