Module:Citation/CS1/Suggestions: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
Import missing submodule from English Wikipedia |
m Reformat list and remove dead code segments |
||
Line 3: | Line 3: | ||
suggestions = { | suggestions = { | ||
['ASIN-TLD'] = 'asin-tld', | ['ASIN-TLD'] = 'asin-tld', -- old parameter name | ||
['abruf'] = 'access-date', | ['abruf'] = 'access-date', -- German | ||
['abruf-verborgen'] = 'access-date', | ['abruf-verborgen'] = 'access-date', -- German | ||
['accessmonth'] = 'access-date', | ['accessmonth'] = 'access-date', | ||
['accesso'] = 'access-date', | ['accesso'] = 'access-date', -- Italian | ||
['accessyear'] = 'access-date', | ['accessyear'] = 'access-date', | ||
['acessodata'] = 'access-date', | ['acessodata'] = 'access-date', -- Brazilian Portuguese | ||
['ad'] = 'first', | ['ad'] = 'first', -- Turkish | ||
['address'] = 'location', | ['address'] = 'location', | ||
['anno'] = 'date', | ['anno'] = 'date', -- Italian | ||
['annoaccesso'] = 'access-date', | ['annoaccesso'] = 'access-date', -- Italian | ||
['annodiaccesso'] = 'access-date', | ['annodiaccesso'] = 'access-date', -- Italian | ||
['annooriginale'] = 'orig-date', | ['annooriginale'] = 'orig-date', -- Italian | ||
['année'] = 'date', | ['année'] = 'date', -- French | ||
['apellido'] = 'last', | ['apellido'] = 'last', -- Spanish | ||
['apellidos'] = 'last', | ['apellidos'] = 'last', -- Spanish | ||
['archiv-datum'] = 'archive-date', | ['archiv-datum'] = 'archive-date', -- German | ||
['archiv-url'] = 'archive-url', | ['archiv-url'] = 'archive-url', -- German | ||
['archive date'] = 'archive-date', | ['archive date'] = 'archive-date', -- misspelling | ||
['archive url'] = 'archive-url', | ['archive url'] = 'archive-url', -- misspelling | ||
['archive-link'] = 'archive-url', | ['archive-link'] = 'archive-url', -- old parameter name | ||
['archiv-url'] = 'archive-url', | ['archiv-url'] = 'archive-url', -- German | ||
['arkivdatum'] = 'archive-date', | ['arkivdatum'] = 'archive-date', -- Swedish, Norwegian | ||
['arkivurl'] = 'archive-url', | ['arkivurl'] = 'archive-url', -- Swedish, Norwegian | ||
['artist'] = 'others', | ['artist'] = 'others', | ||
['arşiv-tarihi'] = 'archive-date', | ['arşiv-tarihi'] = 'archive-date', -- Turkish | ||
['arşiv-url'] = 'archive-url', | ['arşiv-url'] = 'archive-url', -- Turkish | ||
['arşivtarihi'] = 'archive-date', | ['arşivtarihi'] = 'archive-date', -- Turkish | ||
['arşivurl'] = 'archive-url', | ['arşivurl'] = 'archive-url', -- Turkish | ||
['auflage'] = 'edition', | ['auflage'] = 'edition', -- German | ||
['auteur'] = 'author', | ['auteur'] = 'author', -- French | ||
['auther'] = 'author', | ['auther'] = 'author', -- misspelling | ||
['author link'] = 'author-link', | ['author link'] = 'author-link', -- Polish | ||
['authorfirst'] = 'author-first', | ['authorfirst'] = 'author-first', -- old parameter name | ||
['authorgiven'] = 'author-given', | ['authorgiven'] = 'author-given', -- old parameter name | ||
['authorlast'] = 'author-last', | ['authorlast'] = 'author-last', -- old parameter name | ||
['authormask'] = 'author-mask', | ['authormask'] = 'author-mask', -- old parameter name | ||
['authorsurname'] = 'author-surname', | ['authorsurname'] = 'author-surname', -- old parameter name | ||
['autor'] = 'author', | ['autor'] = 'author', -- Spanish, German (singular and plural) | ||
['autore'] = 'author', | ['autore'] = 'author', -- Italian | ||
['autthor'] = 'author', | ['autthor'] = 'author', -- misspelling | ||
['ay'] = 'month', | ['ay'] = 'month', -- Turkish | ||
['año'] = 'date', | ['año'] = 'date', -- Spanish | ||
['año-original'] = 'orig-date', | ['año-original'] = 'orig-date', -- Spanish | ||
['añoacceso'] = 'access-date', | ['añoacceso'] = 'access-date', -- Spanish | ||
['añooriginal'] = 'orig-date', | ['añooriginal'] = 'orig-date', -- Spanish | ||
['band'] = 'volume', | ['band'] = 'volume', -- German | ||
['bandreihe'] = 'volume', | ['bandreihe'] = 'volume', -- German | ||
['baskı'] = 'edition', | ['baskı'] = 'edition', -- Turkish | ||
['başlık'] = 'title', | ['başlık'] = 'title', -- Turkish | ||
['began'] = 'date', | ['began'] = 'date', -- old parameter name (cite serial only); or orig-date= | ||
['booktitle'] = 'book-title', | ['booktitle'] = 'book-title', -- old parameter name | ||
['ch'] = 'language', | ['ch'] = 'language', -- German (as 'language=de-CH') | ||
['chapter_title'] = 'chapter', | ['chapter_title'] = 'chapter', | ||
['chapterurl'] = 'chapter-url', | ['chapterurl'] = 'chapter-url', -- old parameter name | ||
['cid'] = 'ref', | ['cid'] = 'ref', -- Italian | ||
['cilt'] = 'volume', | ['cilt'] = 'volume', -- Turkish | ||
['cita'] = 'quote', | ['cita'] = 'quote', -- Spanish | ||
['citazione'] = 'quote', | ['citazione'] = 'quote', -- Italian | ||
['città'] = 'location', | ['città'] = 'location', -- Italian | ||
['city'] = 'location', | ['city'] = 'location', -- old parameter name (cite serial only) | ||
['coauthor'] = 'author', | ['coauthor'] = 'author', | ||
['coauthors'] = 'author', | ['coauthors'] = 'author', | ||
['coautores'] = 'author', | ['coautores'] = 'author', -- Spanish | ||
['coautori'] = 'author', | ['coautori'] = 'author', -- Italian | ||
['cognome'] = 'last', | ['cognome'] = 'last', -- Italian | ||
['conferenceurl'] = 'conference-url', | ['conferenceurl'] = 'conference-url', -- old parameter name | ||
['consulté le'] = 'access-date', | ['consulté le'] = 'access-date', -- French | ||
['contributionurl'] = 'contribution-url', | ['contributionurl'] = 'contribution-url', -- old parameter name | ||
['curatore'] = 'publisher', | ['curatore'] = 'publisher', -- Italian | ||
['czasopismo'] = 'journal', | ['czasopismo'] = 'journal', -- Polish | ||
['data dostępu'] = 'access-date', | ['data dostępu'] = 'access-date', -- Polish | ||
['data'] = 'date', | ['data'] = 'date', -- Polish, Italian | ||
['dataaccesso'] = 'access-date', | ['dataaccesso'] = 'access-date', -- Italian | ||
['dataarchivio'] = 'archive-date', | ['dataarchivio'] = 'archive-date', -- Italian | ||
['datum'] = 'date', | ['datum'] = 'date', -- German, Swedish | ||
['dead-url'] = 'url-status', | ['dead-url'] = 'url-status', -- old parameter name | ||
['deadlink'] = 'url-status', | ['deadlink'] = 'url-status', -- old parameter name | ||
['deadurl'] = 'url-status', | ['deadurl'] = 'url-status', -- old parameter name | ||
['dergi'] = 'work', | ['dergi'] = 'work', -- Turkish | ||
['dil'] = 'language', | ['dil'] = 'language', -- Turkish | ||
['displayauthors'] = 'display-authors', | ['displayauthors'] = 'display-authors', -- old parameter name | ||
['displayeditors'] = 'display-editors', | ['displayeditors'] = 'display-editors', -- old parameter name | ||
['distributor'] = 'publisher', | ['distributor'] = 'publisher', | ||
['dnb'] = 'id', | ['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}') | ||
['doi-broken'] = 'doi-broken-date', | ['doi-broken'] = 'doi-broken-date', -- old parameter alias | ||
['doi-inactive'] = 'doi-broken-date', | ['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace | ||
['doi-inactive-date'] = 'doi-broken-date', | ['doi-inactive-date'] = 'doi-broken-date', -- old parameter alias | ||
['doi_brokendate'] = 'doi-broken-date', | ['doi_brokendate'] = 'doi-broken-date', -- old parameter alias | ||
['doi_inactivedate'] = 'doi-inactive-date', | ['doi_inactivedate'] = 'doi-inactive-date', -- old parameter alias | ||
['doibroken'] = 'doi-broken-date', | ['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace | ||
['doiinactive'] = 'doi-broken-date', | ['doiinactive'] = 'doi-broken-date', -- invalid name found in mainspace | ||
['e-print'] = 'eprint', | ['e-print'] = 'eprint', -- misspelling | ||
-- ['ed'] = 'edition', | -- ['ed'] = 'edition', -- avoid suggestion as in English this could be short for editor or edition | ||
-- ['editora'] = 'publisher', | -- ['editora'] = 'publisher', -- can be either editor or publisher | ||
-- ['editore'] = 'agency', | -- ['editore'] = 'agency', -- can be either publisher or agency | ||
-- ['editori'] = 'editor', | -- ['editori'] = 'editor', -- can be either editor or publisher | ||
-- ['editorial'] = 'publisher', | -- ['editorial'] = 'publisher', -- can be either publisher or work | ||
['editoin'] = 'edition', | ['editoin'] = 'edition', -- misspelling | ||
['editon'] = 'edition', | ['editon'] = 'edition', -- misspelling | ||
['editorfirst'] = 'editor-first', | ['editorfirst'] = 'editor-first', -- old parameter name | ||
['editorgiven'] = 'editor-given', | ['editorgiven'] = 'editor-given', -- old parameter name | ||
['editorlast'] = 'editor-last', | ['editorlast'] = 'editor-last', -- old parameter name | ||
['editorlink'] = 'editor-link', | ['editorlink'] = 'editor-link', -- old parameter name | ||
['editormask'] = 'editor-mask', | ['editormask'] = 'editor-mask', -- old parameter name | ||
['editors'] = 'editor', | ['editors'] = 'editor', -- old parameter name (can be emulated using multiple singular |editor= params) | ||
['editorsurname'] = 'editor-surname', | ['editorsurname'] = 'editor-surname', -- old parameter name | ||
['edizione'] = 'edition', | ['edizione'] = 'edition', -- Italian | ||
['embargo'] = 'pmc-embargo-date', | ['embargo'] = 'pmc-embargo-date', -- old parameter name | ||
['ended'] = 'date', | ['ended'] = 'date', -- old parameter name (cite serial only) | ||
['en ligne le'] = 'archive-date', | ['en ligne le'] = 'archive-date', -- French | ||
['encyclopædia'] = 'encyclopedia', | ['encyclopædia'] = 'encyclopedia', | ||
['enlaceautor'] = 'author-link', | ['enlaceautor'] = 'author-link', -- Spanish | ||
['enlaceroto'] = 'url-status', | ['enlaceroto'] = 'url-status', -- Spanish | ||
['episodelink'] = 'episode-link', | ['episodelink'] = 'episode-link', -- old parameter name | ||
['erişimtarihi'] = 'access-date', | ['erişimtarihi'] = 'access-date', -- Turkish | ||
['eser'] = 'work', | ['eser'] = 'work', -- Turkish | ||
['family'] = 'surname', | ['family'] = 'surname', -- misguess | ||
['fecha'] = 'date', | ['fecha'] = 'date', -- Spanish | ||
['fechaacceso'] = 'access-date', | ['fechaacceso'] = 'access-date', -- Spanish | ||
['fechaarchivo'] = 'archive-date', | ['fechaarchivo'] = 'archive-date', -- Spanish | ||
['filetype'] = 'format', | ['filetype'] = 'format', | ||
['foramt'] = 'format', | ['foramt'] = 'format', -- misspelling | ||
['fore-name'] = 'given', | ['fore-name'] = 'given', -- misguess/misspelling | ||
['forename'] = 'given', | ['forename'] = 'given', -- misguess | ||
['författare'] = 'author', | ['författare'] = 'author', -- Swedish, Norwegian | ||
['formato'] = 'format', | ['formato'] = 'format', -- Spanish, Italian, Polish | ||
['frist'] = 'first', | ['frist'] = 'first', -- misspelling | ||
['fundstelle'] = 'at', | ['fundstelle'] = 'at', -- German | ||
['gazete'] = 'work', | ['gazete'] = 'work', -- Turkish | ||
['giornale'] = 'journal', | ['giornale'] = 'journal', -- Italian | ||
['hämtdatum'] = 'access-date', | ['hämtdatum'] = 'access-date', -- Swedish | ||
['herausgeber'] = 'editor', | ['herausgeber'] = 'editor', -- German (singular and plural) | ||
['hrsg'] = 'publisher', | ['hrsg'] = 'publisher', -- German | ||
['hrsgreihe'] = 'editor', | ['hrsgreihe'] = 'editor', -- German | ||
['idioma'] = 'language', | ['idioma'] = 'language', -- Spanish | ||
['ignore-isbn-error'] = 'isbn', | ['ignore-isbn-error'] = 'isbn', -- old parameter (can be fully emulated using ((syntax))) | ||
['ignoreisbnerror'] = 'isbn', | ['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', | ['imię'] = 'first', -- Polish | ||
['in-set'] = 'inset', | ['in-set'] = 'inset', -- misspelling | ||
['interviewerlink'] = 'interviewer-link', | ['interviewerlink'] = 'interviewer-link', -- old parameter alias | ||
['interviewermask'] = 'interviewer-mask', | ['interviewermask'] = 'interviewer-mask', -- old parameter alias | ||
['isbndefekt'] = 'isbn', | ['isbndefekt'] = 'isbn', -- German (suggest|isbn as|ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax)) | ||
['isbnformalfalsch'] = 'isbn', | ['isbnformalfalsch'] = 'isbn', -- German (suggest|isbn as|ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax)) | ||
['isbnistformalfalsch'] = 'isbn', | ['isbnistformalfalsch'] = 'isbn', -- German (suggest|isbn as|ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax)) | ||
['isnb'] = 'isbn', | ['isnb'] = 'isbn', -- misspelling | ||
['issnformalfalsch'] = 'issn', | ['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax))) | ||
['jahr'] = 'date', | ['jahr'] = 'date', -- German | ||
['jahrea'] = 'orig-date', | ['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated) | ||
['kapitel'] = 'chapter', | ['kapitel'] = 'chapter', -- German | ||
['langauge'] = 'language', | ['langauge'] = 'language', -- misspelling | ||
['langue'] = 'language', | ['langue'] = 'language', -- French | ||
['last-author-amp'] = 'name-list-style', | ['last-author-amp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp) | ||
['lastauthoramp'] = 'name-list-style', | ['lastauthoramp'] = 'name-list-style', -- old parameter name (as |name-list-style=amp) | ||
['lieu'] = 'location', | ['lieu'] = 'location', -- French | ||
['lingua'] = 'language', | ['lingua'] = 'language', -- Italian | ||
['lire en ligne'] = 'url', | ['lire en ligne'] = 'url', -- French | ||
['lizenznummer'] = 'id', | ['lizenznummer'] = 'id', -- German (as 'id=License No. ...') | ||
['loaction'] = 'location', -- misspelling | |||
['loaction'] = 'location', | ['local'] = 'location', -- Brazilian Portuguese | ||
['local'] = 'location', | ['locatoin'] = 'location', -- misspelling | ||
['locatoin'] = 'location', | ['lugar'] = 'location', -- Spanish | ||
['lugar'] = 'location', | ['mailinglist'] = 'mailing-list', -- old parameter name | ||
['mailinglist'] = 'mailing-list', | ['mapurl'] = 'map-url', -- old parameter name | ||
['mapurl'] = 'map-url', | ['mes'] = 'date', -- Spanish (not a direct replacement) | ||
['mes'] = 'date', | ['mese'] = 'date', -- Italian (not a direct replacement) | ||
['mese'] = 'date', | ['miejsce'] = 'location', -- Polish | ||
['miejsce'] = 'location', | ['miesiąc'] = 'date', -- Polish | ||
['miesiąc'] = 'date', | ['mois'] = 'date', -- French | ||
['mois'] = 'date', | ['monat'] = 'date', -- German | ||
['monat'] = 'date', | ['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp) | ||
['nazwisko'] = 'last', -- Polish | |||
['name-list-format'] = 'name-list-style', | ['nespaper'] = 'newspaper', -- misspelling | ||
['nazwisko'] = 'last', | ['net-work'] = 'network', -- misspelling | ||
['nespaper'] = 'newspaper', | ['newpaper'] = 'newspaper', -- misspelling | ||
['net-work'] = 'network', | |||
['newpaper'] = 'newspaper', | |||
['news'] = 'newspaper', | ['news'] = 'newspaper', | ||
['news-group'] = 'newsgroup', | ['news-group'] = 'newsgroup', -- misspelling | ||
['news-paper'] = 'newspaper', | ['news-paper'] = 'newspaper', -- misspelling | ||
['no-cat'] = 'no-tracking', | ['no-cat'] = 'no-tracking', -- old parameter | ||
['nocat'] = 'no-tracking', | ['nocat'] = 'no-tracking', -- old parameter | ||
['nom'] = 'last', | ['nom'] = 'last', -- French | ||
['nombre'] = 'first', | ['nombre'] = 'first', -- Spanish | ||
['nome'] = 'first', | ['nome'] = 'first', -- Italian | ||
['nopp'] = 'no-pp', | ['nopp'] = 'no-pp', -- old parameter name | ||
['notracking'] = 'no-tracking', | ['notracking'] = 'no-tracking', -- old parameter | ||
['numero'] = 'number', | ['numero'] = 'number', -- Italian, Spanish | ||
['nummer'] = 'number', | ['nummer'] = 'number', -- German | ||
['nummerreihe'] = 'number', | ['nummerreihe'] = 'number', -- German | ||
['obra'] = 'work', | ['obra'] = 'work', -- Spanish | ||
['odpowiedzialność'] = 'agency', | ['odpowiedzialność'] = 'agency', -- Polish | ||
['offline'] = 'url-status', | ['offline'] = 'url-status', -- German (as 'url-status=dead') | ||
['online'] = 'url', | ['online'] = 'url', -- German (not a direct replacement, but can be emulated) | ||
['opera'] = 'work', | ['opera'] = 'work', -- Italian | ||
['opublikowany'] = 'agency', | ['opublikowany'] = 'agency', -- Polish | ||
['origdate'] = 'orig-date', | ['origdate'] = 'orig-date', -- misspelling | ||
['originaljahr'] = 'orig-date', | ['originaljahr'] = 'orig-date', -- German | ||
['originalort'] = 'publication-place', | ['originalort'] = 'publication-place', -- German | ||
['originalsprache'] = 'language', | ['originalsprache'] = 'language', -- German | ||
['originaltitel'] = 'title', | ['originaltitel'] = 'title', -- German (if 'originaltitel' used, contents of 'title' should be put in 'trans-title') | ||
['ort'] = 'publication-place', | ['ort'] = 'publication-place', -- German | ||
['ortea'] = 'publication-place', | ['ortea'] = 'publication-place', -- German (not a direct replacement, but can be emulated) | ||
['other'] = 'others', | ['other'] = 'others', | ||
['oznaczenie'] = 'agency', | ['oznaczenie'] = 'agency', -- Polish | ||
['pagees'] = 'pages', | ['pagees'] = 'pages', -- misspelling | ||
['pagina'] = 'page', | ['pagina'] = 'page', -- Italian | ||
['pagina'] = 'pages', | ['pagina'] = 'pages', -- Italian | ||
['pagine'] = 'pages', | ['pagine'] = 'pages', -- Italian | ||
['pagine'] = 'pages', | ['pagine'] = 'pages', -- Italian | ||
['passage'] = 'pages', | ['passage'] = 'pages', -- French | ||
['periodico'] = 'magazine', | ['periodico'] = 'magazine', -- Spanish | ||
['plublisher'] = 'publisher', | ['plublisher'] = 'publisher', -- misspelling | ||
['pmcid'] = 'pmc', | ['pmcid'] = 'pmc', | ||
['post-script'] = 'postscript', | ['post-script'] = 'postscript', -- misspelling | ||
['praca'] = 'work', | ['praca'] = 'work', -- Polish | ||
['primero'] = 'first', | ['primero'] = 'first', -- Spanish | ||
['prénom'] = 'first', | ['prénom'] = 'first', -- French | ||
['prénom1'] = 'first1', | ['prénom1'] = 'first1', -- French | ||
['ps'] = 'postscript', | ['ps'] = 'postscript', | ||
['pub'] = 'publisher', | ['pub'] = 'publisher', | ||
['publicationdate'] = 'publication-date', -- old parameter name | |||
['publicationplace'] = 'publication-place', -- old parameter name | |||
['publicationdate'] = 'publication-date', | ['pulbication-place'] = 'publication-place', -- misspelling | ||
['página'] = 'page', -- Spanish | |||
['publicationplace'] = 'publication-place', | ['páginas'] = 'pages', -- Spanish | ||
['pulbication-place'] = 'publication-place', | ['périodique'] = 'publisher', -- French | ||
['página'] = 'page', | ['registration'] = 'url-access', -- old parameter name | ||
['páginas'] = 'pages', | ['reihe'] = 'series', -- German | ||
['périodique'] = 'publisher', | ['retrieved'] = 'access-date', -- old parameter name | ||
['registration'] = 'url-access', | ['richiestasottoscrizione'] = 'url-access', -- Italian (as|url-access=subscription) | ||
['reihe'] = 'series', | ['rivista'] = 'magazine', -- Italian | ||
['retrieved'] = 'access-date', | ['rok'] = 'date', -- Polish | ||
['richiestasottoscrizione'] = 'url-access', | ['rubrik'] = 'title', -- Swedish | ||
['rivista'] = 'magazine', | ['sammelwerk'] = 'work', -- German | ||
['rok'] = 'date', | ['sayfa'] = 'page', -- Turkish | ||
['rubrik'] = 'title', | ['sayfalar'] = 'pages', -- Turkish | ||
['sammelwerk'] = 'work', | ['sayı'] = 'issue', -- Turkish | ||
['sayfa'] = 'page', | ['script-post'] = 'postscript', -- misspelling | ||
['sayfalar'] = 'pages', | ['script-trans'] = 'transcript', -- misspelling | ||
['sayı'] = 'issue', | ['season'] = 'date', -- old parameter name (cite serial only) | ||
['script-post'] = 'postscript', | ['sectionurl'] = 'section-url', -- old parameter name | ||
['script-trans'] = 'transcript', | ['seiten'] = 'pages', -- German | ||
['season'] = 'date', | ['seria'] = 'series', -- Spanish, Polish | ||
['sectionurl'] = 'section-url', | ['serie'] = 'series', -- Italian | ||
['seiten'] = 'pages', | ['série'] = 'series', -- French | ||
['seria'] = 'series', | ['serieslink'] = 'series-link', -- old parameter name | ||
['serie'] = 'series', | ['seriesno'] = 'series-number', -- old parameter name | ||
['série'] = 'series', | |||
['serieslink'] = 'series-link', | |||
['seriesno'] = 'series-number', | |||
['service'] = 'agency', | ['service'] = 'agency', | ||
['sitioweb'] = 'website', | ['sitioweb'] = 'website', -- Spanish | ||
['sito'] = 'website', | ['sito'] = 'website', -- Italian | ||
['soyadı'] = 'last', | ['soyadı'] = 'last', -- Turkish | ||
['spalten'] = 'at', | ['spalten'] = 'at', -- German (not a direct replacement, but can be emulated) | ||
['sprache'] = 'language', | ['sprache'] = 'language', -- German | ||
['språk'] = 'language', | ['språk'] = 'language', -- Swedish, Norwegian | ||
['stron'] = 'page', | ['stron'] = 'page', -- Polish | ||
['strony'] = 'pages', | ['strony'] = 'pages', -- Polish | ||
['subjectlink'] = 'subject-link', | ['subjectlink'] = 'subject-link', -- old parameter name | ||
['subscription'] = 'url-access', | ['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription) | ||
['sur-name'] = 'surname', | ['sur-name'] = 'surname', -- misspelling | ||
['suscripción'] = 'url-access', | ['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription) | ||
['tag'] = 'date', | ['tag'] = 'date', -- German | ||
['tarih'] = 'date', | ['tarih'] = 'date', -- Turkish | ||
['template doc demo'] = 'no-tracking', | ['template doc demo'] = 'no-tracking', -- old parameter alias | ||
['tidning'] = 'work', | ['tidning'] = 'work', -- Swedish | ||
['tile'] = 'title', | ['tile'] = 'title', -- misspelling | ||
['timecaption'] = 'time-caption', | ['timecaption'] = 'time-caption', -- old parameter name | ||
['titlelink'] = 'title-link', | ['titlelink'] = 'title-link', -- old parameter name | ||
['tipo'] = 'type', | ['tipo'] = 'type', -- Italian | ||
['tite'] = 'title', | ['tite'] = 'title', -- misspelling | ||
['titel'] = 'title', | ['titel'] = 'title', -- German | ||
['titel-p'] = 'title', | ['titel-p'] = 'title', -- German ('postscript=none' should be added as well) | ||
['titelerg'] = 'contribution', | ['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated) | ||
['titled'] = 'title', | ['titled'] = 'title', -- Brazilian Portuguese | ||
['titolo'] = 'title', | ['titolo'] = 'title', -- Italian | ||
['titre'] = 'title', | ['titre'] = 'title', -- French | ||
['trans-script'] = 'transcript', | ['trans-script'] = 'transcript', -- misspelling | ||
['trans_chapter'] = 'trans-chapter', | ['trans_chapter'] = 'trans-chapter', -- old parameter alias | ||
['trans_title'] = 'trans-title', | ['trans_title'] = 'trans-title', -- old parameter alias | ||
['transchapter'] = 'trans-chapter', | ['transchapter'] = 'trans-chapter', | ||
['transcripturl'] = 'transcript-url', | ['transcripturl'] = 'transcript-url', -- old parameter name | ||
['transscript'] = 'transcript', | ['transscript'] = 'transcript', -- misspelling | ||
['transscript-format'] = 'transcript-format', | ['transscript-format'] = 'transcript-format', -- misspelling | ||
['transscript-url'] = 'transcript-url', | ['transscript-url'] = 'transcript-url', -- misspelling | ||
['transscripturl'] = 'transcript-url', | ['transscripturl'] = 'transcript-url', -- misspelling | ||
['transtitle'] = 'trans-title', | ['transtitle'] = 'trans-title', | ||
['typ'] = 'author-mask', | ['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask') | ||
['tytuł'] = 'title', | ['tytuł'] = 'title', -- Polish | ||
['títle'] = 'title', | ['títle'] = 'title', | ||
['título'] = 'title', | ['título'] = 'title', -- Spanish | ||
['ubicación'] = 'location', | ['ubicación'] = 'location', -- Spanish | ||
['urlarchivio'] = 'archive-url', | ['urlarchivio'] = 'archive-url', -- Italian | ||
['urlarchivo'] = 'archive-url', | ['urlarchivo'] = 'archive-url', -- Spanish | ||
['urlmorto'] = 'url-status', | ['urlmorto'] = 'url-status', -- Italian | ||
['urn'] = 'id', | ['urn'] = 'id', -- German (as 'id={{URN|...}}') | ||
['v-authors'] = 'vauthors', | ['v-authors'] = 'vauthors', -- misspelling | ||
['v-editors'] = 'veditors', | ['v-editors'] = 'veditors', -- misspelling | ||
['verlag'] = 'publisher', | ['verlag'] = 'publisher', -- German | ||
['verlagea'] = 'publisher', | ['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated) | ||
['vol'] = 'volume', | ['vol'] = 'volume', | ||
['volumen'] = 'volume', | ['volumen'] = 'volume', -- Spanish | ||
['werk'] = 'work', | ['werk'] = 'work', -- German | ||
['werkerg'] = 'contribution', | ['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated) | ||
['wkautore'] = 'author-link', | ['wkautore'] = 'author-link', -- Italian | ||
['wolumin'] = 'volume', | ['wolumin'] = 'volume', -- Polish | ||
['wydanie'] = 'number', | ['wydanie'] = 'number', -- Polish | ||
['wydawca'] = 'publisher', | ['wydawca'] = 'publisher', -- French | ||
['yardımcıyazarlar'] = 'author', | ['yardımcıyazarlar'] = 'author', -- Turkish | ||
['yayımcı'] = 'publisher', | ['yayımcı'] = 'publisher', -- Turkish | ||
['yayıncı'] = 'publisher', | ['yayıncı'] = 'publisher', -- Turkish | ||
['yazar'] = 'author', | ['yazar'] = 'author', -- Turkish | ||
['yazarbağı'] = 'author-link', | ['yazarbağı'] = 'author-link', -- Turkish | ||
['yer'] = 'location', | ['yer'] = 'location', -- Turkish | ||
['yıl'] = 'date', | ['yıl'] = 'date', -- Turkish | ||
['zaprezentowany'] = 'publisher', | ['zaprezentowany'] = 'publisher', -- French | ||
['zdb'] = 'id', | ['zdb'] = 'id', -- German (as 'id={{ZDB|...}}') | ||
['zitat'] = 'quote', | ['zitat'] = 'quote', -- German | ||
['zugriff'] = 'access-date', | ['zugriff'] = 'access-date', -- German | ||
['éditeur'] = 'editor', | ['éditeur'] = 'editor', -- French | ||
['ölüurl'] = 'url-status', | ['ölüurl'] = 'url-status', -- Turkish | ||
['übersetzer'] = 'translator', | ['übersetzer'] = 'translator', -- German (singular and plural) | ||
} | } | ||
--[[--------------------------< P A T T E R N S >-------------------------------------------------------------- | --[[--------------------------< P A T T E R N S >-------------------------------------------------------------- | ||
Here we use Lua patterns to make suggestions. | Here we use Lua patterns to make suggestions. The form is | ||
['pattern'] = 'correct', | ['pattern'] = 'correct', | ||
Lua patterns are not REGEX though they are similar. The escape character is '%', not '\'. | |||
For more information about Lua patterns, see: [[mediawikiwiki:Extension:Scribunto/Lua reference manual#Patterns|Lua reference manual]] | |||
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 '|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator') so again, the code suggests '|author='. | |||
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 | |||
'|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator') | |||
so again, the code suggests '|author='. | |||
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.) | 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. | ||
The value from the capture replaces $1 in the 'correct' value. | |||
]] | ]] | ||
local patterns = { | local patterns = { | ||
['^ac+es+ ?d?a?t?e?$'] = 'access-date', | ['^ac+es+ ?d?a?t?e?$'] = 'access-date', -- misspelling | ||
['^apellido[s]?(%d+)$'] = 'last$1', | ['^apellido[s]?(%d+)$'] = 'last$1', -- Spanish, enumerated | ||
['^a[utho]+r$'] = 'author', | ['^a[utho]+r$'] = 'author', -- misspelling | ||
['^a[utho]+r(%d+)$'] = 'author$1', | ['^a[utho]+r(%d+)$'] = 'author$1', -- misspelling, enumerated | ||
['^author link(%d+)$'] = 'author-link$1', | ['^author link(%d+)$'] = 'author-link$1', -- Polish, enumerated | ||
['^autor[e]?(%d+)$'] = 'author$1', | ['^autor[e]?(%d+)$'] = 'author$1', -- Italian/Spanish/German, enumerated | ||
['^authorfirst(%d+)$'] = 'author-first$1', | ['^authorfirst(%d+)$'] = 'author-first$1', -- old parameter name, enumerated | ||
['^author(%d+)first$'] = 'author-first$1', | ['^author(%d+)first$'] = 'author-first$1', -- old parameter name, enumerated | ||
['^authorgiven(%d+)$'] = 'author-given$1', | ['^authorgiven(%d+)$'] = 'author-given$1', -- old parameter name, enumerated | ||
['^author(%d+)given$'] = 'author-given$1', | ['^author(%d+)given$'] = 'author-given$1', -- old parameter name, enumerated | ||
['^authorlast(%d+)$'] = 'author-last$1', | ['^authorlast(%d+)$'] = 'author-last$1', -- old parameter name, enumerated | ||
['^author(%d+)last$'] = 'author-last$1', | ['^author(%d+)last$'] = 'author-last$1', -- old parameter name, enumerated | ||
['^authormask(%d+)$'] = 'author-mask$1', | ['^authormask(%d+)$'] = 'author-mask$1', -- old parameter name, enumerated | ||
['^author(%d+)mask$'] = 'author-mask$1', | ['^author(%d+)mask$'] = 'author-mask$1', -- old parameter name, enumerated | ||
['^authorsurname(%d+)$'] = 'author-surname$1', | ['^authorsurname(%d+)$'] = 'author-surname$1', -- old parameter name, enumerated | ||
['^author(%d+)surname$'] = 'author-surname$1', | ['^author(%d+)surname$'] = 'author-surname$1', -- old parameter name, enumerated | ||
['^cognome(%d+)$'] = 'last$1', | ['^cognome(%d+)$'] = 'last$1', -- Italian, enumerated | ||
['^editorfirst(%d+)$'] = 'editor-first$1', | ['^editorfirst(%d+)$'] = 'editor-first$1', -- old parameter name, enumerated | ||
['^editor(%d+)first$'] = 'editor-first$1', | ['^editor(%d+)first$'] = 'editor-first$1', -- old parameter name, enumerated | ||
['^editorgiven(%d+)$'] = 'editor-given$1', | ['^editorgiven(%d+)$'] = 'editor-given$1', -- old parameter name, enumerated | ||
['^editor(%d+)given$'] = 'editor-given$1', | ['^editor(%d+)given$'] = 'editor-given$1', -- old parameter name, enumerated | ||
['^editorlast(%d+)$'] = 'editor-last$1', | ['^editorlast(%d+)$'] = 'editor-last$1', -- old parameter name, enumerated | ||
['^editor(%d+)last$'] = 'editor-last$1', | ['^editor(%d+)last$'] = 'editor-last$1', -- old parameter name, enumerated | ||
['^editorlink(%d+)$'] = 'editor-link$1', | ['^editorlink(%d+)$'] = 'editor-link$1', -- old parameter name, enumerated | ||
['^editor(%d+)link$'] = 'editor-link$1', | ['^editor(%d+)link$'] = 'editor-link$1', -- old parameter name, enumerated | ||
['^editormask(%d+)$'] = 'editor-mask$1', | ['^editormask(%d+)$'] = 'editor-mask$1', -- old parameter name, enumerated | ||
['^editor(%d+)mask$'] = 'editor-mask$1', | ['^editor(%d+)mask$'] = 'editor-mask$1', -- old parameter name, enumerated | ||
['^editorsurname(%d+)$'] = 'editor-surname$1', | ['^editorsurname(%d+)$'] = 'editor-surname$1', -- old parameter name, enumerated | ||
['^editor(%d+)surname$'] = 'editor-surname$1', | ['^editor(%d+)surname$'] = 'editor-surname$1', -- old parameter name, enumerated | ||
['^enlaceautore(%d+)$'] = 'author-link$1', | ['^enlaceautore(%d+)$'] = 'author-link$1', -- Spanish, enumerated | ||
['^first (%d+)$'] = 'first$1', | ['^first (%d+)$'] = 'first$1', -- enumerated | ||
['^last (%d+)$'] = 'last$1', | ['^last (%d+)$'] = 'last$1', -- enumerated | ||
['^nom[e]?(%d+)$'] = 'last$1', | ['^nom[e]?(%d+)$'] = 'last$1', -- Italian/French, enumerated | ||
['^nombre(%d+)$'] = 'first$1', | ['^nombre(%d+)$'] = 'first$1', -- Spanish, enumerated | ||
['^primero(%d+)$'] = 'first$1', | ['^primero(%d+)$'] = 'first$1', -- Spanish, enumerated | ||
['^pu[blish]+ers?$'] = 'publisher', | ['^pu[blish]+ers?$'] = 'publisher', -- misspelling | ||
['^subjectlink(%d+)$'] = 'subject-link$1', | ['^subjectlink(%d+)$'] = 'subject-link$1', -- old parameter name, enumerated | ||
['^subject(%d+)link$'] = 'subject-link$1', | ['^subject(%d+)link$'] = 'subject-link$1', -- old parameter name, enumerated | ||
['^wkautore(%d+)$'] = 'author-link$1', | ['^wkautore(%d+)$'] = 'author-link$1', -- Italian, enumerated | ||
} | } | ||
return {suggestions = suggestions, patterns=patterns}; | return {suggestions = suggestions, patterns=patterns}; |
Latest revision as of 22:13, 21 August 2024
This is a list of suggested alternatives to use when an unknown parameter is encountered by a citation template. When an unknown parameter is found within a citation template an error message is generated, and when possible the software makes a suggestion for what the user may have meant by consulting this list of common mistakes and typos.
Each entry takes the form: ['bad input parameter'] = 'suggested parameter to use'
The bad input parameter will have been transformed to lower case before checking this list, so all input forms on this list should be written in lowercase.
These files comprise the module support for CS1 & CS2 citation templates:
-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',
suggestions = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
['abruf'] = 'access-date', -- German
['abruf-verborgen'] = 'access-date', -- German
['accessmonth'] = 'access-date',
['accesso'] = 'access-date', -- Italian
['accessyear'] = 'access-date',
['acessodata'] = 'access-date', -- Brazilian Portuguese
['ad'] = 'first', -- Turkish
['address'] = 'location',
['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
['archiv-url'] = 'archive-url', -- German
['archive date'] = 'archive-date', -- misspelling
['archive url'] = 'archive-url', -- misspelling
['archive-link'] = 'archive-url', -- old parameter name
['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',
['chapterurl'] = 'chapter-url', -- old 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',
['coautores'] = 'author', -- Spanish
['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
['czasopismo'] = 'journal', -- Polish
['data dostępu'] = 'access-date', -- Polish
['data'] = 'date', -- Polish, Italian
['dataaccesso'] = 'access-date', -- Italian
['dataarchivio'] = 'archive-date', -- Italian
['datum'] = 'date', -- German, Swedish
['dead-url'] = 'url-status', -- old parameter name
['deadlink'] = 'url-status', -- old parameter name
['deadurl'] = 'url-status', -- old parameter name
['dergi'] = 'work', -- Turkish
['dil'] = 'language', -- Turkish
['displayauthors'] = 'display-authors', -- old parameter name
['displayeditors'] = 'display-editors', -- old parameter name
['distributor'] = 'publisher',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}')
['doi-broken'] = 'doi-broken-date', -- old parameter alias
['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace
['doi-inactive-date'] = 'doi-broken-date', -- old parameter alias
['doi_brokendate'] = 'doi-broken-date', -- old parameter alias
['doi_inactivedate'] = 'doi-inactive-date', -- old parameter alias
['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace
['doiinactive'] = 'doi-broken-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
-- ['editora'] = 'publisher', -- can be either editor or publisher
-- ['editore'] = 'agency', -- can be either publisher or agency
-- ['editori'] = 'editor', -- can be either editor or publisher
-- ['editorial'] = 'publisher', -- can be either publisher or work
['editoin'] = 'edition', -- misspelling
['editon'] = 'edition', -- misspelling
['editorfirst'] = 'editor-first', -- old 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
['episodelink'] = 'episode-link', -- old parameter name
['erişimtarihi'] = 'access-date', -- Turkish
['eser'] = 'work', -- Turkish
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['foramt'] = 'format', -- misspelling
['fore-name'] = 'given', -- misguess/misspelling
['forename'] = 'given', -- misguess
['författare'] = 'author', -- Swedish, Norwegian
['formato'] = 'format', -- Spanish, Italian, Polish
['frist'] = 'first', -- misspelling
['fundstelle'] = 'at', -- German
['gazete'] = 'work', -- Turkish
['giornale'] = 'journal', -- Italian
['hämtdatum'] = 'access-date', -- Swedish
['herausgeber'] = 'editor', -- German (singular and plural)
['hrsg'] = 'publisher', -- German
['hrsgreihe'] = 'editor', -- German
['idioma'] = 'language', -- Spanish
['ignore-isbn-error'] = 'isbn', -- old parameter (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', -- old parameter alias
['interviewermask'] = 'interviewer-mask', -- old 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'] = 'isbn', -- German (suggest|isbn as|ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['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
['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
['local'] = 'location', -- Brazilian Portuguese
['locatoin'] = 'location', -- misspelling
['lugar'] = 'location', -- Spanish
['mailinglist'] = 'mailing-list', -- old parameter name
['mapurl'] = 'map-url', -- old parameter name
['mes'] = 'date', -- Spanish (not a direct replacement)
['mese'] = 'date', -- Italian (not a direct replacement)
['miejsce'] = 'location', -- Polish
['miesiąc'] = 'date', -- Polish
['mois'] = 'date', -- French
['monat'] = 'date', -- German
['name-list-format'] = 'name-list-style', -- old parameter name (as |name-list-style=amp)
['nazwisko'] = 'last', -- Polish
['nespaper'] = 'newspaper', -- misspelling
['net-work'] = 'network', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['news-group'] = 'newsgroup', -- 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
['nopp'] = 'no-pp', -- old parameter name
['notracking'] = 'no-tracking', -- old parameter
['numero'] = 'number', -- Italian, Spanish
['nummer'] = 'number', -- German
['nummerreihe'] = 'number', -- German
['obra'] = 'work', -- Spanish
['odpowiedzialność'] = 'agency', -- Polish
['offline'] = 'url-status', -- German (as 'url-status=dead')
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opera'] = 'work', -- Italian
['opublikowany'] = 'agency', -- Polish
['origdate'] = 'orig-date', -- misspelling
['originaljahr'] = 'orig-date', -- German
['originalort'] = 'publication-place', -- German
['originalsprache'] = 'language', -- German
['originaltitel'] = 'title', -- German (if 'originaltitel' used, contents of 'title' should be put in 'trans-title')
['ort'] = 'publication-place', -- German
['ortea'] = 'publication-place', -- German (not a direct replacement, but can be emulated)
['other'] = 'others',
['oznaczenie'] = 'agency', -- Polish
['pagees'] = 'pages', -- misspelling
['pagina'] = 'page', -- Italian
['pagina'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['pagine'] = 'pages', -- Italian
['passage'] = 'pages', -- French
['periodico'] = 'magazine', -- Spanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['post-script'] = 'postscript', -- misspelling
['praca'] = 'work', -- Polish
['primero'] = 'first', -- Spanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['ps'] = 'postscript',
['pub'] = 'publisher',
['publicationdate'] = 'publication-date', -- old parameter name
['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
['rubrik'] = 'title', -- Swedish
['sammelwerk'] = 'work', -- German
['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
['soyadı'] = 'last', -- Turkish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['språk'] = 'language', -- Swedish, Norwegian
['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'] = 'no-tracking', -- old parameter alias
['tidning'] = 'work', -- Swedish
['tile'] = '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
['trans_chapter'] = 'trans-chapter', -- old parameter alias
['trans_title'] = 'trans-title', -- old parameter alias
['transchapter'] = 'trans-chapter',
['transcripturl'] = 'transcript-url', -- old parameter name
['transscript'] = 'transcript', -- misspelling
['transscript-format'] = 'transcript-format', -- misspelling
['transscript-url'] = 'transcript-url', -- misspelling
['transscripturl'] = 'transcript-url', -- misspelling
['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
['urlarchivio'] = 'archive-url', -- Italian
['urlarchivo'] = 'archive-url', -- Spanish
['urlmorto'] = 'url-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['v-authors'] = 'vauthors', -- misspelling
['v-editors'] = 'veditors', -- misspelling
['verlag'] = 'publisher', -- German
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['vol'] = 'volume',
['volumen'] = 'volume', -- Spanish
['werk'] = 'work', -- German
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['wkautore'] = 'author-link', -- Italian
['wolumin'] = 'volume', -- Polish
['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)
}
--[[--------------------------< 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 REGEX though they are similar. The escape character is '%', not '\'.
For more information about Lua patterns, see: [[mediawikiwiki:Extension:Scribunto/Lua reference manual#Patterns|Lua reference manual]]
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 '|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator') so again, the code suggests '|author='.
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.
]]
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
['^authorfirst(%d+)$'] = 'author-first$1', -- old parameter name, enumerated
['^author(%d+)first$'] = 'author-first$1', -- old parameter name, enumerated
['^authorgiven(%d+)$'] = 'author-given$1', -- old parameter name, enumerated
['^author(%d+)given$'] = 'author-given$1', -- old parameter name, enumerated
['^authorlast(%d+)$'] = 'author-last$1', -- old parameter name, enumerated
['^author(%d+)last$'] = 'author-last$1', -- old parameter name, enumerated
['^authormask(%d+)$'] = 'author-mask$1', -- old parameter name, enumerated
['^author(%d+)mask$'] = 'author-mask$1', -- old parameter name, enumerated
['^authorsurname(%d+)$'] = 'author-surname$1', -- old 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
}
return {suggestions = suggestions, patterns=patterns};