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

Content deleted Content added
these might match those parameters in other wikis but we shouldn't suggest values for them as different languages have different translations of the non-magic word
reset changes list;
 
(48 intermediate revisions by 6 users not shown)
Line 1:
--[[
History of changes since last sync: 2023-01-14
 
History of changes since last sync: 2020-07-11
 
 
2020-09-02: suggest |orig-date= instead of |orig-year= parameter; see Help_talk:Citation_Style_1#cite_news_should_have_two_dates
TO DO: Provide suggestions for template-specific errors, e.g. suggest "title" for the erroneous "book-title" when used outside of Cite conference.
2020-09-10: add hints for removed parameter names |ignoreisbnerror=, |doi-broken=, |doi-inactive-date= and |embargo=; see Help_talk:Citation_Style_1#Deprecating_some_unused_parameter_aliases
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
 
]]
 
 
-- Please insert new suggestions in alphabetical order
Line 15 ⟶ 13:
 
suggestions = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
['abruf'] = 'access-date', -- German
['abruf-verborgen'] = 'access-date', -- German
Line 20 ⟶ 19:
['accesso'] = 'access-date', -- Italian
['accessyear'] = 'access-date',
['acessodata'] = 'access-date', -- Brazilian Portuguese
['ad'] = 'first', -- Turkish
['address'] = '___location',
['annéeanno'] = 'date', -- FrenchItalian
['año'] = 'date', -- Spanish
['añooriginal'] = 'orig-date', -- Spanish
['año-original'] = 'orig-date', -- Spanish
['añoacceso'] = 'access-date', -- Spanish
['anno'] = 'date', -- Italian
['annoaccesso'] = 'access-date', -- Italian
['annodiaccesso'] = 'access-date', -- Italian
['annooriginale'] = 'orig-date', -- Italian
['année'] = 'date', -- French
['apellido'] = 'last', -- Spanish
['apellidos'] = 'last', -- Spanish
['archiv-datum'] = 'archive-date', -- German
['archive date'] = 'archive-date',
['archiv-url'] = 'archive-url', -- German
['archive urldate'] = 'archive-urldate', -- Spanishmisspelling
['artikelnrarchive url'] = 'idarchive-url', -- German (as 'id=Article No. ...')misspelling
['archive-link'] = 'archive-url', -- old parameter name
['artist'] = 'others',
['archiv-url'] = 'archive-url', -- German
['arkivdatum'] = 'archive-date', -- Swedish, Norwegian
['arkivurl'] = 'archive-url', -- Swedish, Norwegian
['artist'] = 'others',
['arşiv-tarihi'] = 'archive-date', -- Turkish
['arşiv-url'] = 'archive-url', -- Turkish
['arşivtarihi'] = 'archive-date', -- Turkish
['arşivurl'] = 'archive-url', -- Turkish
['auflage'] = 'edition', -- German
['auteur'] = 'author', -- French
['auther'] = 'author', -- misspelling
['author link'] = 'author-link', -- Polish
['authorfirst'] = 'author-first', -- old parameter name
['authorgiven'] = 'author-given', -- old parameter name
['authorlast'] = 'author-last', -- old parameter name
['authormask'] = 'author-mask', -- old parameter name
['authorsurname'] = 'author-surname', -- old parameter name
['autor'] = 'author', -- Spanish, German (singular and plural)
['autore'] = 'author', -- Italian
['autthor'] = 'author', -- misspelling
['ay'] = 'month', -- Turkish
['año'] = 'date', -- Spanish
['año-original'] = 'orig-date', -- Spanish
['añoacceso'] = 'access-date', -- Spanish
['añooriginal'] = 'orig-date', -- Spanish
['band'] = 'volume', -- German
['bandreihe'] = 'volume', -- German
['baskı'] = 'edition', -- Turkish
['başlık'] = 'title', -- Turkish
['began'] = 'date', -- old parameter name (cite serial only); or orig-date=
['booktitle'] = 'book-title', -- old parameter name
['ch'] = 'language', -- German (as 'language=de-CH')
['chapter_title'] = 'chapter',
['cidchapterurl'] = 'refchapter-url', -- Italianold parameter name
['cid'] = 'ref', -- Italian
['cilt'] = 'volume', -- Turkish
['cita'] = 'quote', -- Spanish
['citazione'] = 'quote', -- Italian
['città'] = '___location', -- Italian
['city'] = '___location', -- old parameter name (cite serial only)
['coauthor'] = 'author',
['coauthors'] = 'author',
Line 58 ⟶ 79:
['coautori'] = 'author', -- Italian
['cognome'] = 'last', -- Italian
['conferenceurl'] = 'conference-url', -- old parameter name
['consulté le'] = 'access-date', -- French
['contributionurl'] = 'contribution-url', -- old parameter name
['curatore'] = 'publisher', -- Italian
['curatore'] = 'publisher', -- Italian
['czasopismo'] = 'journal', -- Polish
['data dostępu'] = 'access-date', -- Polish
['data'] = 'date', -- Polish, Italian
['dataaccesso'] = 'access-date', -- Italian
['dataarchivio'] = 'archive-date', -- Italian
['data dostępudatum'] = 'access-date', -- PolishGerman, Swedish
['datumdead-url'] = 'dateurl-status', -- Germanold parameter name
['deadlink'] = 'url-status', -- old parameter name
['deadurl'] = 'url-status', -- old parameter name
['dead-urldergi'] = 'url-statuswork', -- old parameter nameTurkish
['dil'] = 'language', -- Turkish
['displayauthors'] = 'display-authors', -- old parameter name
['displayeditors'] = 'display-editors', -- old parameter name
['distributor'] = 'publisher',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
['doibrokendoi-broken'] = 'doi-broken-date', -- invalid name foundold inparameter mainspacealias
['doi-brokeninactive'] = 'doi-broken-date', -- formerinvalid name found parameterin aliasmainspace
['doi_brokendatedoi-inactive-date'] = 'doi-broken-date', -- old parameter alias
['doiinactivedoi_brokendate'] = 'doi-broken-date', -- invalid name foundold inparameter mainspacealias
['doi-inactivedoi_inactivedate'] = 'doi-brokeninactive-date', -- invalid name foundold inparameter mainspacealias
['doi-inactive-datedoibroken'] = 'doi-broken-date', -- formerinvalid name found parameterin aliasmainspace
['doi_inactivedatedoiinactive'] = 'doi-inactivebroken-date', -- invalid name found in mainspace
['e-print'] = 'eprint', -- misspelling
--['ed'] = 'edition', avoid suggestion as in English this could be short for editor or edition
-- ['éditeured'] = 'editoredition', -- Frenchavoid suggestion as in English this could be short for editor or edition
-- ['editora'] = 'publisher', -- can be either editor or publisher
['editon'] = 'edition', -- misspelling
-- ['editore'] = 'agency', -- can be either publisher or agency
['editoin'] = 'edition', -- misspelling
-- ['editoraeditori'] = 'publishereditor', -- can be either editor or publisher
-- ['editoreeditorial'] = 'agencypublisher', -- can be either publisher or agencywork
['editoin'] = 'edition', -- misspelling
-- ['editori'] = 'editor', -- can be either editor or publisher
['editon'] = 'edition', -- misspelling
-- ['editorial'] = 'publisher', -- can be either publisher or work
['edizioneeditorfirst'] = 'editioneditor-first', -- Italianold parameter name
['editorgiven'] = 'editor-given', -- old parameter name
['editorlast'] = 'editor-last', -- old parameter name
['editorlink'] = 'editor-link', -- old parameter name
['editormask'] = 'editor-mask', -- old parameter name
['editors'] = 'editor', -- old parameter name (can be emulated using multiple singular |editor= params)
['editorsurname'] = 'editor-surname', -- old parameter name
['edizione'] = 'edition', -- Italian
['embargo'] = 'pmc-embargo-date', -- old parameter name
['ended'] = 'date', -- old parameter name (cite serial only)
['en ligne le'] = 'archive-date', -- French
['encyclopædia'] = 'encyclopedia',
['enlaceautor'] = 'author-link', -- Spanish
['enlaceroto'] = 'url-status', -- Spanish
['embargoepisodelink'] = 'pmcepisode-embargo-datelink', -- formerold parameter name
['e-printerişimtarihi'] = 'eprintaccess-date', -- misspellingTurkish
['eser'] = 'work', -- Turkish
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['foramt'] = 'format', -- misspelling
['formatofore-name'] = 'formatgiven', -- Spanish, Italian, Polishmisguess/misspelling
['fristforename'] = 'firstgiven', -- misspellingmisguess
['författare'] = 'author', -- Swedish, Norwegian
['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['giornalegazete'] = 'journalwork', -- ItalianTurkish
['herausgebergiornale'] = 'editorjournal', -- German (singular and plural)Italian
['hämtdatum'] = 'access-date', -- Swedish
['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish
['ignoreisbnerrorignore-isbn-error'] = 'ignore-isbn-error', -- formerold parameter alias(can be fully emulated using ((syntax)))
['ignoreisbnerror'] = 'isbn', -- old parameter alias (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['imię'] = 'first', -- Polish
['in-set'] = 'inset', -- misspelling
['interviewerlink'] = 'interviewer-link', -- former parameter alias
['interviewermaskinterviewerlink'] = 'interviewer-masklink', -- formerold parameter alias
['isbndefektinterviewermask'] = 'ignoreinterviewer-isbn-errormask', -- Germanold parameter alias
['isbndefekt'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnformalfalsch'] = 'ignore-isbn-error', -- German
['isbnformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German
['isbnistformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['isnb'] = 'isbn', -- misspelling
['issnformalfalschisnb'] = 'ignore-issn-errorisbn', -- Germanmisspelling
['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax)))
['jahr'] = 'date', -- German
['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated)
['kapitel'] = 'chapter', -- German
['langauge'] = 'language', -- misspelling
['langue'] = 'language', -- French
['last-author-amp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lastauthoramp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['lieu'] = '___location', -- French
['lingua'] = 'language', -- Italian
['lire en ligne'] = 'url', -- French
['lizenznummer'] = 'id', -- German (as 'id=License No. ...')
['loaction'] = '___location', -- misspelling
 
['locatoin'] = '___location', -- misspelling
['loaction'] = '___location', -- misspelling
['local'] = '___location', -- Brazilian Portuguese
['locatoin'] = '___location', -- misspelling
['lugar'] = '___location', -- Spanish
['mailinglist'] = 'mailing-list', -- old parameter name
['mes'] = 'date', -- Spanish (not a direct replacement)
['mesemapurl'] = 'datemap-url', -- Italian (not aold directparameter replacement)name
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['miejsce'] = '___location', -- Polish
['miesiąc'] = 'date', -- Polish
Line 133 ⟶ 185:
['monat'] = 'date', -- German
-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['nazwisko'] = 'last', -- Polish
['nespaper'] = 'newspaper', -- misspelling
['newpapernet-work'] = 'newspapernetwork', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['news-papergroup'] = 'newspapernewsgroup', -- misspelling
['news-paper'] = 'newspaper', -- misspelling
['no-cat'] = 'no-tracking', -- old parameter
['nocat'] = 'no-tracking', -- old parameter
['nom'] = 'last', -- French
['nombre'] = 'first', -- Spanish
['nome'] = 'first', -- Italian
['numeronopp'] = 'numberno-pp', -- Italian,old parameter Spanishname
['notracking'] = 'no-tracking', -- old parameter
 
['numero'] = 'number', -- Italian, Spanish
['nummer'] = 'number', -- German
['nummerreihe'] = 'number', -- German
Line 151 ⟶ 209:
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- German
['originalort'] = 'publication-place', -- German
Line 160 ⟶ 218:
['other'] = 'others',
['oznaczenie'] = 'agency', -- Polish
['pagees'] = 'pages', -- misspelling
['pagina'] = 'page', -- Italian
['página'] = 'page', -- Spanish
['páginas'] = 'pages', -- Spanish
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['periodicopagine'] = 'magazinepages', -- SpanishItalian
['périodiquepassage'] = 'publisherpages', -- French
['plublisherperiodico'] = 'publishermagazine', -- misspellingSpanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['post-script'] = 'postscript', -- misspelling
['praca'] = 'work', -- Polish
['primero'] = 'first', -- Spanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['primero'] = 'first', -- Spanish
['ps'] = 'postscript',
['pub'] = 'publisher',
-- ['pubblicazione'] = 'magazine', -- could be any kind of work
-- ['publicación'] = 'journal', -- could be any kind of work
['pulbication-placepublicationdate'] = 'publication-placedate', -- misspellingold parameter name
-- ['published'] = 'publisher', -- could be date, ___location, or name of publisher
['publicationplace'] = 'publication-place', -- old parameter name
['pulbication-place'] = 'publication-place', -- misspelling
['página'] = 'page', -- Spanish
['páginas'] = 'pages', -- Spanish
['périodique'] = 'publisher', -- French
['registration'] = 'url-access', -- old parameter name
['reihe'] = 'series', -- German
['retrieved'] = 'access-date', -- old parameter name
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['rivista'] = 'magazine', -- Italian
['rok'] = 'date', -- Polish
['sammelwerkrok'] = 'workdate', -- GermanPolish
['rubrik'] = 'title', -- Swedish
['script-post'] = 'postscript', -- misspelling
['script-transsammelwerk'] = 'transcriptwork', -- misspellingGerman
['sayfa'] = 'page', -- Turkish
['sayfalar'] = 'pages', -- Turkish
['sayı'] = 'issue', -- Turkish
['script-post'] = 'postscript', -- misspelling
['script-trans'] = 'transcript', -- misspelling
['season'] = 'date', -- old parameter name (cite serial only)
['sectionurl'] = 'section-url', -- old parameter name
['seiten'] = 'pages', -- German
['seria'] = 'series', -- Spanish, Polish
['serie'] = 'series', -- Italian
['série'] = 'series', -- French
['serieslink'] = 'series-link', -- old parameter name
['seriesno'] = 'series-number', -- old parameter name
['service'] = 'agency',
['sitioweb'] = 'website', -- Spanish
['sito'] = 'website', -- Italian
['stronsoyadı'] = 'pagelast', -- PolishTurkish
['strony'] = 'pages', -- Polish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['språk'] = 'language', -- Swedish, Norwegian
['sur-name'] = 'surname', -- misspelling
['stron'] = 'page', -- Polish
['strony'] = 'pages', -- Polish
['subjectlink'] = 'subject-link', -- old parameter name
['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription)
['sur-name'] = 'surname', -- misspelling
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['tag'] = 'date', -- German
['tarih'] = 'date', -- Turkish
['template doc demo'] = 'template-doc-demo',
['template doc demo'] = 'no-tracking', -- old parameter alias
['tile'] = 'title', -- misspelling
['tidning'] = 'work', -- Swedish
['tipo'] = 'type', -- Italian
['titetile'] = 'title', -- misspelling
['timecaption'] = 'time-caption', -- old parameter name
['titlelink'] = 'title-link', -- old parameter name
['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)
['titled'] = 'title', -- Brazilian Portuguese
['titolo'] = 'title', -- Italian
['titre'] = 'title', -- French
['trans-script'] = 'transcript', -- misspelling
['títle'] = 'title',
['títulotrans_chapter'] = 'titletrans-chapter', -- Spanishold parameter alias
['trans_title'] = 'trans-title', -- old parameter alias
['transchapter'] = 'trans-chapter',
['transcripturl'] = 'transcript-url', -- old parameter name
['trans_chapter'] = 'trans-chapter',
['transscript'] = 'transcript', -- misspelling
['transtransscript-scriptformat'] = 'transcript-format', -- misspelling
['transscript-formaturl'] = 'transcript-formaturl', -- misspelling
['transscripturl'] = 'transcript-url', -- misspelling
['transscript-url'] = 'transcript-url', -- misspelling
['trans_title'] = 'trans-title',
['transtitle'] = 'trans-title',
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
['tytuł'] = 'title', -- Polish
['títle'] = 'title',
['título'] = 'title', -- Spanish
['ubicación'] = '___location', -- Spanish
['urlarchivo'] = 'archive-url', -- Spanish
['urlarchivio'] = 'archive-url', -- Italian
['urlmortourlarchivo'] = 'archive-url-status', -- ItalianSpanish
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['übersetzerv-authors'] = 'translatorvauthors', -- German (singular and plural)misspelling
['v-authorseditors'] = 'vauthorsveditors', -- misspelling
['v-editors'] = 'veditors', -- misspelling
['verlag'] = 'publisher', -- German
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
Line 242 ⟶ 323:
['wydanie'] = 'number', -- Polish
['wydawca'] = 'publisher', -- French
['yardımcıyazarlar'] = 'author', -- Turkish
['yayımcı'] = 'publisher', -- Turkish
['yayıncı'] = 'publisher', -- Turkish
['yazar'] = 'author', -- Turkish
['yazarbağı'] = 'author-link', -- Turkish
['yer'] = '___location', -- Turkish
['yıl'] = 'date', -- Turkish
['zaprezentowany'] = 'publisher', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}')
['zitat'] = 'quote', -- German
['zugriff'] = 'access-date', -- German
['éditeur'] = 'editor', -- French
['ölüurl'] = 'url-status', -- Turkish
['übersetzer'] = 'translator', -- German (singular and plural)
}
 
Line 271 ⟶ 362:
 
local patterns = {
['^ac+es+ ?d?a?t?e?$'] = 'access-date', -- misspelling
['^apellido[s]?(%d+)$'] = 'last$1', -- Spanish, enumerated
['^a[utho]+r$'] = 'author', -- misspelling
['^a[utho]+r(%d+)$'] = 'author$1', -- misspelling, enumerated
['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated
['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated
['^cognomeauthorfirst(%d+)$'] = 'lastauthor-first$1', -- Italianold parameter name, enumerated
['^enlaceautoreauthor(%d+)first$'] = 'author-linkfirst$1', -- Spanishold parameter name, enumerated
['^first authorgiven(%d+)$'] = 'firstauthor-given$1', -- old parameter name, enumerated
['^last author(%d+)given$'] = 'lastauthor-given$1', -- old parameter name, enumerated
['^nom[e]?authorlast(%d+)$'] = 'author-last$1', -- Italian/Frenchold parameter name, enumerated
['^nombreauthor(%d+)last$'] = 'firstauthor-last$1', -- Spanishold parameter name, enumerated
['^primeroauthormask(%d+)$'] = 'firstauthor-mask$1', -- Spanishold parameter name, enumerated
['^pu[blish]author(%d+ers?)mask$'] = 'publisherauthor-mask$1', -- misspellingold parameter name, enumerated
['^wkautoreauthorsurname(%d+)$'] = 'author-linksurname$1', -- Italianold parameter name, enumerated
['^author(%d+)surname$'] = 'author-surname$1', -- old parameter name, enumerated
['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated
['^editorfirst(%d+)$'] = 'editor-first$1', -- old parameter name, enumerated
['^editor(%d+)first$'] = 'editor-first$1', -- old parameter name, enumerated
['^editorgiven(%d+)$'] = 'editor-given$1', -- old parameter name, enumerated
['^editor(%d+)given$'] = 'editor-given$1', -- old parameter name, enumerated
['^editorlast(%d+)$'] = 'editor-last$1', -- old parameter name, enumerated
['^editor(%d+)last$'] = 'editor-last$1', -- old parameter name, enumerated
['^editorlink(%d+)$'] = 'editor-link$1', -- old parameter name, enumerated
['^editor(%d+)link$'] = 'editor-link$1', -- old parameter name, enumerated
['^editormask(%d+)$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editor(%d+)mask$'] = 'editor-mask$1', -- old parameter name, enumerated
['^editorsurname(%d+)$'] = 'editor-surname$1', -- old parameter name, enumerated
['^editor(%d+)surname$'] = 'editor-surname$1', -- old parameter name, 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
['^pu[blish]+ers?$'] = 'publisher', -- misspelling
['^subjectlink(%d+)$'] = 'subject-link$1', -- old parameter name, enumerated
['^subject(%d+)link$'] = 'subject-link$1', -- old parameter name, enumerated
['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated
}