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

Content deleted Content added
synch from live;
reset changes list;
 
(86 intermediate revisions by 9 users not shown)
Line 1:
--[[
--Please insert new suggestions in alphabetical order
History of changes since last sync: 2023-01-14
--The form is ['incorrect'] = 'correct',
 
 
 
TO DO: Provide suggestions for template-specific errors, e.g. suggest "title" for the erroneous "book-title" when used outside of Cite conference.
 
]]
 
 
-- Please insert new suggestions in alphabetical order
-- The form is ['incorrect'] = 'correct',
 
suggestions = {
['ASIN-TLD'] = 'asin-tld', -- old parameter name
-- ['acccessdate'] = 'access-date',
-- ['accesdateabruf'] = 'access-date', -- German
-- ['access dateabruf-verborgen'] = 'access-date', -- German
-- ['accessateaccessmonth'] = 'access-date',
-- ['accessdareaccesso'] = 'access-date', -- Italian
-- ['accessdatteaccessyear'] = 'access-date',
-- ['accessddateacessodata'] = 'access-date', -- Brazilian Portuguese
['ad'] = 'first', -- Turkish
-- ['accessdte'] = 'access-date',
-- ['accessed'] = 'access-date',
-- ['accessedate'] = 'access-date',
-- ['accesssdate'] = 'access-date',
-- ['accssdate'] = 'access-date',
-- ['acessdate'] = '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')
['accessyear'] = 'access-date', -- (no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date')
['address'] = '___location',
['annéeanno'] = 'yeardate', -- FrenchItalian
['añoannoaccesso'] = 'yearaccess-date', -- Italian
['año-originalannodiaccesso'] = 'origaccess-yeardate', -- Italian
['añoaccesoannooriginale'] = 'accessorig-date', -- Spanish, Italian
['apellidoannée'] = 'lastdate', -- Spanish, ItalianFrench
['archiv-datumapellido'] = 'archive-datelast', -- GermanSpanish
['apellidos'] = 'last', -- Spanish
['archive date'] = 'archive-date',
['archiv-urldatum'] = 'archive-urldate', -- German
['archive archiv-url'] = 'archive-url', -- Spanish, ItalianGerman
['archive date'] = 'archive-date', -- misspelling
['artist'] = 'others',
['auflagearchive url'] = 'editionarchive-url', -- Germanmisspelling
['archive-link'] = 'archive-url', -- old parameter name
['auteur'] = 'author', -- French
['archiv-url'] = 'archive-url', -- German
['auther'] = 'author',
['arkivdatum'] = 'archive-date', -- Swedish, Norwegian
-- ['authorformat'] = 'name-list-format', -- remove after 2016-01-01
['arkivurl'] = 'archive-url', -- Swedish, Norwegian
-- ['author-format'] = 'name-list-format', -- remove after 2016-01-01
['author linkartist'] = 'author-linkothers', -- Polish
['author link2arşiv-tarihi'] = 'author2archive-linkdate', -- PolishTurkish
['arşiv-url'] = 'archive-url', -- Turkish
-- ['autor'] = 'author', -- Spanish, Italian, Polish
['arşivtarihi'] = 'archive-date', -- Turkish
['autor'] = 'authors', -- German (singular and plural)
['arşivurl'] = 'archive-url', -- Turkish
-- ['autor2'] = 'author2', -- Spanish, Italian, Polish
-- ['autor3auflage'] = 'author3edition', -- PolishGerman
['autthorauteur'] = 'author', -- French
['auther'] = 'author', -- misspelling
['band'] = 'volume', -- German
['author link'] = 'author-link', -- Polish
-- ['began'] = 'date', -- remove after 2016-01-01
['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',
['citachapterurl'] = 'quotechapter-url', -- Spanish,old parameter Italianname
['coautorescid'] = 'coauthorsref', -- Spanish, Italian
['consulté lecilt'] = 'access-datevolume', -- FrenchTurkish
['czasopismocita'] = 'journalquote', -- PolishSpanish
['datacitazione'] = 'datequote', -- PolishItalian
['data dostępucittà'] = 'access-date___location', -- PolishItalian
['city'] = '___location', -- old parameter name (cite serial only)
['datum'] = 'date', -- German
['deadlinkcoauthor'] = 'dead-urlauthor',
['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|...}}') (not yet supported by us directly)
['éditeurdoi-broken'] = 'editordoi-broken-date', -- Frenchold parameter alias
['doi-inactive'] = 'doi-broken-date', -- invalid name found in mainspace
['editon'] = 'edition',
['doi-inactive-date'] = 'doi-broken-date', -- old parameter alias
['editoin'] = 'edition',
['doi_brokendate'] = 'doi-broken-date', -- old parameter alias
-- ['editorformat'] = 'name-list-format', -- remove after 2016-01-01
['doi_inactivedate'] = 'doi-inactive-date', -- old parameter alias
-- ['editor-format'] = 'name-list-format', -- remove after 2016-01-01
['doibroken'] = 'doi-broken-date', -- invalid name found in mainspace
-- ['editorgiven'] = 'editor-given', -- remove after 2016-01-01
['doiinactive'] = 'doi-broken-date', -- invalid name found in mainspace
['editorial'] = 'publisher',
['e-print'] = 'eprint', -- misspelling
-- ['editorsurname'] = 'editor-surname', -- remove after 2016-01-01
-- ['ed'] = 'edition', -- avoid suggestion as in English this could be short for editor or edition
['en ligne le'] = 'archive-date', -- French
-- ['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
-- ['ended'] = 'date', -- remove after 2016-01-01
['enlaceautorenlaceroto'] = 'authorurl-linkstatus', -- Spanish, Italian
['fechaepisodelink'] = 'dateepisode-link', -- Spanish,old parameter Italianname
['fechaaccesoerişimtarihi'] = 'access-date', -- Spanish, ItalianTurkish
['fechaarchivoeser'] = 'archive-datework', -- Spanish, ItalianTurkish
['family'] = 'surname', -- misguess
['fecha'] = 'date', -- Spanish
['fechaacceso'] = 'access-date', -- Spanish
['fechaarchivo'] = 'archive-date', -- Spanish
['filetype'] = 'format',
['first 1foramt'] = 'first1format', -- misspelling
['fore-name'] = 'given', -- misguess/misspelling
['foramt'] = 'format',
['formatoforename'] = 'formatgiven', -- Spanish, Italian, Polishmisguess
['författare'] = 'author', -- Swedish, Norwegian
['frist'] = 'first',
['formato'] = 'format', -- Spanish, Italian, Polish
['herausgeber'] = 'editors', -- German (singular and plural)
['idiomafrist'] = 'languagefirst', -- Spanish, Italianmisspelling
['imięfundstelle'] = 'firstat', -- PolishGerman
['gazete'] = 'work', -- Turkish
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German
['isnbgiornale'] = 'isbnjournal', -- Italian
['jahrhämtdatum'] = 'yearaccess-date', -- GermanSwedish
['kapitelherausgeber'] = 'chaptereditor', -- German (singular and plural)
-- ['kommentarhrsg'] = 'commentpublisher', -- German (not yet supported by us)
['langhrsgreihe'] = 'languageeditor', -- German
['langaugeidioma'] = 'language', -- Spanish
['ignore-isbn-error'] = 'isbn', -- old parameter (can be fully emulated using ((syntax)))
['langue'] = 'language', -- French
['ignoreisbnerror'] = 'isbn', -- old parameter alias (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['last 1'] = 'last1',
['lieuimię'] = '___locationfirst', -- FrenchPolish
['lire en lignein-set'] = 'urlinset', -- Frenchmisspelling
['interviewerlink'] = 'interviewer-link', -- old parameter alias
['lizenznummer'] = 'id', -- German (as 'id=License ...')
['interviewermask'] = 'interviewer-mask', -- old parameter alias
['loaction'] = '___location',
['isbndefekt'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['locatoin'] = '___location',
['isbnformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['lugar'] = '___location', -- Spanish
['isbnistformalfalsch'] = 'isbn', -- German (suggest |isbn as |ignore-isbn-error is deprecated), not a direct replacement, but can be fully emulated using ((syntax))
['miejsce'] = '___location', -- Polish
['miesiącisnb'] = 'dateisbn', -- Polishmisspelling
['issnformalfalsch'] = 'issn', -- German (can be fully emulated using ((syntax)))
['mois'] = 'date', -- French
['monatjahr'] = 'date', -- German
['jahrea'] = 'orig-date', -- German (not a direct replacement, but can be emulated)
-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
['nazwiskokapitel'] = 'lastchapter', -- PolishGerman
['langauge'] = 'language', -- misspelling
['nespaper'] = 'newspaper',
['newpaperlangue'] = 'newspaperlanguage', -- 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'] = '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
['net-work'] = 'network', -- misspelling
['newpaper'] = 'newspaper', -- misspelling
['news'] = 'newspaper',
['nomnews-group'] = 'lastnewsgroup', -- Frenchmisspelling
['nom1news-paper'] = 'last1newspaper', -- Frenchmisspelling
['nombreno-cat'] = 'firstno-tracking', -- Spanish,old Italianparameter
['nummernocat'] = 'numberno-tracking', -- Germanold parameter
['obranom'] = 'worklast', -- Spanish, ItalianFrench
['odpowiedzialnośćnombre'] = 'agencyfirst', -- PolishSpanish
['offlinenome'] = 'dead-urlfirst', -- GermanItalian
['nopp'] = 'no-pp', -- old parameter name
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opublikowanynotracking'] = 'agencyno-tracking', -- Polishold parameter
['numero'] = 'number', -- Italian, Spanish
['origdate'] = 'orig-year',
['originaljahrnummer'] = 'orig-yearnumber', -- German
['nummerreihe'] = 'number', -- German
['originalort'] = '___location', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')
['originalspracheobra'] = 'languagework', -- GermanSpanish
['odpowiedzialność'] = 'agency', -- Polish
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
['ortoffline'] = '___locationurl-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' is specified, any possible 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
['páginapagina'] = 'page', -- Spanish, Italian
['páginaspagina'] = 'pages', -- Spanish, Italian
['passagepagine'] = 'pages', -- FrenchItalian
['périodiquepagine'] = 'publisherpages', -- FrenchItalian
['plublisherpassage'] = 'publisherpages', -- French
['periodico'] = 'magazine', -- Spanish
['plublisher'] = 'publisher', -- misspelling
['pmcid'] = 'pmc',
['pracapost-script'] = 'workpostscript', -- Polishmisspelling
['prénompraca'] = 'firstwork', -- FrenchPolish
['prénom1primero'] = 'first1first', -- FrenchSpanish
['prénom'] = 'first', -- French
['prénom1'] = 'first1', -- French
['ps'] = 'postscript',
['pub'] = 'publisher',
-- ['pubblicazione'] = 'magazine', -- could be any kind of work
-- ['pubisher'] = 'publisher',
-- ['publicación'] = 'journal', -- could be any kind of work
-- ['publiser'] = 'publisher',
['publicationdate'] = 'publication-date', -- old parameter name
-- ['publishers'] = 'publisher',
-- ['publsherpublished'] = 'publisher', -- could be date, ___location, or name of publisher
['publicationplace'] = 'publication-place', -- old parameter name
-- ['publsiher'] = 'publisher',
['pulbication-place'] = 'publication-place', -- misspelling
['página'] = 'page', -- Spanish
-- ['pulbisher'] = 'publisher',
['páginas'] = 'pages', -- Spanish
-- ['pulisher'] = 'publisher',
['reihepériodique'] = 'seriespublisher', -- GermanFrench
['registration'] = 'url-access', -- old parameter name
['retrieved'] = 'access-date',
['rokreihe'] = 'dateseries', -- PolishGerman
['retrieved'] = 'access-date', -- old parameter name
['sammelwerk'] = 'work', -- German
['richiestasottoscrizione'] = 'url-access', -- Italian (as |url-access=subscription)
['seiten'] = 'pages', -- German
['rivista'] = 'magazine', -- Italian
-- ['separator'] = 'mode', -- remove after 2016-01-01
['seriarok'] = 'seriesdate', -- Polish
['rubrik'] = 'title', -- Swedish
['série'] = 'work', -- French *RECHECK*
['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
['stronsito'] = 'pagewebsite', -- PolishItalian
['stronysoyadı'] = 'pageslast', -- PolishTurkish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'language', -- German
['språk'] = 'language', -- Swedish, Norwegian
['suscripción'] = 'subscription', -- Spanish, Italian, Polish
['tagstron'] = 'datepage', -- GermanPolish
['tilestrony'] = 'titlepages', -- Polish
['subjectlink'] = 'subject-link', -- old parameter name
['tite'] = 'title',
['subscription'] = 'url-access', -- old parameter name (emulated as |url-access=subscription)
['titel'] = 'title', -- German
['sur-name'] = 'surname', -- misspelling
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)
['suscripción'] = 'url-access', -- Spanish, Polish (as |url-access=subscription)
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['titolotag'] = 'titledate', -- Spanish, ItalianGerman
['titretarih'] = 'titledate', -- FrenchTurkish
['template doc demo'] = 'no-tracking', -- old parameter alias
['títle'] = 'title',
['tidning'] = 'work', -- Swedish
['título'] = 'title', -- Spanish, Italian
['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
['translator'] = 'others',
['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
['ubicacióntítle'] = '___locationtitle', -- Spanish, Italian
['urlarchivotítulo'] = 'archive-urltitle', -- Spanish, Italian
['ubicación'] = '___location', -- Spanish
['urn'] = 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly)
['urlarchivio'] = 'archive-url', -- Italian
['übersetzer'] = 'translator', -- German (singular and plural)
['verlagurlarchivo'] = 'publisherarchive-url', -- GermanSpanish
['volurlmorto'] = 'volumeurl-status', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}')
['volumen'] = 'volume', -- Spanish
['werkv-authors'] = 'workvauthors', -- Germanmisspelling
['v-editors'] = 'veditors', -- misspelling
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)
['woluminverlag'] = 'volumepublisher', -- PolishGerman
['verlagea'] = 'publisher', -- German (not a direct replacement, but can be emulated)
['wydanie'] = 'number', -- Polish
['wydawcavol'] = 'publishervolume', -- French
['zaprezentowanyvolumen'] = 'publishervolume', -- FrenchSpanish
['werk'] = 'work', -- German
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}') (not yet supported by us directly)
['zitatwerkerg'] = 'quotecontribution', -- German (not a direct replacement, but can be emulated)
['zugriffwkautore'] = 'accessauthor-datelink', -- GermanItalian
['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 regexREGEX though they are similar. The escape character is '%', not '\'. For more information about
luaFor more information about Lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns
 
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial match from incorrectly
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
parameter |author-separator= so the code suggests '|author='; the same pattern also matches the no-longer-supported parameter |separator= (returning 'ator')
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
The value from the capture replaces $1 in the 'correct' value.
 
]]
 
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
['^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
}