Modulo:Citation/CS1/Suggestions
Aspettu
La documentazione per questo modulo può essere creata in Modulo:Citation/CS1/Suggestions/man
--Please insert new suggestions in alphabetical order
--The form is ['incorrect'] = 'correct',
suggestions = {
['accessmonth'] = 'data di accessu', -- no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date'
['accesso'] = 'data di accessu', -- Italian
['accessyear'] = 'data di accessu', -- no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date'
['address'] = 'locu',
['année'] = 'annu', -- French
['año'] = 'annu',
['año-original'] = 'annu uriginale',
['añoacceso'] = 'data di accessu', -- Spanish
['annoaccesso'] = 'data di accessu', -- Italian
['annodiaccesso'] = 'data di accessu', -- Italian
['apellido'] = 'cognome', -- Spanish
['archiv-datum'] = 'data d’archiviu', -- German
['archive date'] = 'data d’archiviu',
['archiv-url'] = 'url d’archiviu', -- German
['archive url'] = 'url d’archiviu', -- Spanish
['artist'] = 'altri',
['auflage'] = 'edizione', -- German
['auteur'] = 'autore', -- French
['auther'] = 'autore',
['author link'] = 'autore-ligame', -- Polish
['author link2'] = 'autore-ligame2', -- Polish
['autor'] = 'autore', -- German (singular and plural)
['autore'] = 'autore', -- Italian
['autthor'] = 'autore',
['band'] = 'voluminu', -- German
['chapter_title'] = 'capitulu',
['cita'] = 'citazione', -- Spanish
['citazione'] = 'citazione', -- Italian
['coauthor'] = 'autore',
['coauthors'] = 'autore',
['coautores'] = 'autore', -- Spanish
['coautori'] = 'autore', -- Italian
['cognome'] = 'cognome', -- Italian
['consulté le'] = 'data di accessu', -- French
['czasopismo'] = 'ghjurnale', -- Polish
['data'] = 'data', -- Polish, Italian
['dataarchivio'] = 'data d’archiviu', -- Italian
['data dostępu'] = 'data di accessu', -- Polish
['datum'] = 'data', -- German
['deadlink'] = 'url-status',
['distributor'] = 'editore',
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}') (not yet supported by us directly)
['éditeur'] = 'editore', -- French
['editon'] = 'edizione',
['editoin'] = 'edizione',
['editora'] = 'editore', -- Portuguese
['editorial'] = 'editore',
['en ligne le'] = 'data d’archiviu', -- French
['encyclopædia'] = 'encyclopedia',
['enlaceautor'] = 'ligame d’autore', -- Spanish
['fecha'] = 'data', -- Spanish
['fechaacceso'] = 'data di accessu', -- Spanish
['fechaarchivo'] = 'data d’archiviu', -- Spanish
['filetype'] = 'furmatu',
['first 1'] = 'nomu1',
['foramt'] = 'furmatu',
['formato'] = 'furmatu', -- Spanish, Italian, Polish
['frist'] = 'nomu',
['herausgeber'] = 'editori', -- German (singular and plural)
['idioma'] = 'lingua', -- Spanish, Italian
['imię'] = 'nomu', -- Polish
['isbnistformalfalsch'] = 'isbn hè sbagliatu', -- German
['isnb'] = 'isbn',
['jahr'] = 'annu', -- German
['kapitel'] = 'capitulu', -- German
-- ['kommentar'] = 'cumentà', -- German (not yet supported by us)
['lang'] = 'lingua',
['langauge'] = 'lingua',
['langue'] = 'lingua', -- French
['last 1'] = 'cognome1',
['lieu'] = 'locu', -- French
['lingua'] = 'lingua', -- Italian
['lire en ligne'] = 'url', -- French
['lizenznummer'] = 'id', -- German (as 'id=License ...')
['loaction'] = 'locu',
['locatoin'] = 'locu',
['lugar'] = 'locu', -- Spanish
['miejsce'] = 'locu', -- Polish
['miesiąc'] = 'data', -- Polish
['mois'] = 'data', -- French
['monat'] = 'data', -- German
-- ['name'] = 'autore', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion
['nazwisko'] = 'cognome', -- Polish
['nespaper'] = 'newspaper',
['newpaper'] = 'newspaper',
['news'] = 'newspaper',
['nom'] = 'cognome', -- French
['nom1'] = 'cognome1', -- French
['nombre'] = 'nomu', -- Spanish
['nome'] = 'nomu', -- Italian
['nummer'] = 'numeru', -- German
['obra'] = 'travaglià', -- Spanish
['odpowiedzialność'] = 'agenzia', -- Polish
['offline'] = 'url-status', -- German
['online'] = 'url', -- German (not a direct replacement, but can be emulated)
['opublikowany'] = 'agenzia', -- Polish
['opera'] = 'travaglià', -- Italian
['origdate'] = 'orig-year',
['originaljahr'] = 'orig-year', -- German
['originalort'] = 'locu', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')
['originalsprache'] = 'lingua', -- German
['originaltitel'] = 'titulu', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')
['ort'] = 'locu', -- German
['other'] = 'altri',
['oznaczenie'] = 'agenzia', -- Polish
['pagees'] = 'pagine',
['página'] = 'pagina', -- Spanish, Italian
['páginas'] = 'pagine', -- Spanish, Italian
['passage'] = 'pagine', -- French
['pagina'] = 'pagine', -- Italian
['pagine'] = 'pagine', -- Italian
['périodique'] = 'editore', -- French
['plublisher'] = 'editore',
['pmcid'] = 'pmc',
['praca'] = 'travaglià', -- Polish
['prénom'] = 'nomu', -- French
['prénom1'] = 'nomu1', -- French
['ps'] = 'postscrittu',
['pub'] = 'editore',
['pulbication-place'] = 'lochi di publicazione',
['reihe'] = 'serie', -- German
['retrieved'] = 'data di accessu',
['rok'] = 'data', -- Polish
['sammelwerk'] = 'travaglià', -- German
['seiten'] = 'pagine', -- German
['seria'] = 'serie', -- Polish
['série'] = 'serie', -- French *RECHECK*
['service'] = 'agenzia',
['sitioweb'] = 'situ web', --Spanish
['sito'] = 'situ web', --Italian
['stron'] = 'pagina', -- Polish
['strony'] = 'pagine', -- Polish
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)
['sprache'] = 'lingua', -- German
['suscripción'] = 'abbunamentu', -- Spanish, Polish
['tag'] = 'data', -- German
['tile'] = 'titulu',
['tite'] = 'titulu',
['titel'] = 'titulu', -- German
['titel-p'] = 'titulu', -- German ('postscript=none' should be added as well)
['titelerg'] = 'cuntribuzione', -- German (not a direct replacement, but can be emulated)
['titolo'] = 'titulu', -- Spanish, Italian
['titre'] = 'titulu', -- French
['títle'] = 'titulu',
['título'] = 'titulu', -- Spanish
['transchapter'] = 'trascapitulu',
['translator'] = 'traduttore',
['transtitle'] = 'trastitulu',
['typ'] = 'maschera d’autore', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')
['tytuł'] = 'titulu', -- Polish
['ubicación'] = 'locu', -- Spanish
['urlarchivo'] = 'url d’archiviu', -- Spanish
['urlarchivio'] = 'url d’archiviu', -- Italian
['urn'] = 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly)
['übersetzer'] = 'traduttore', -- German (singular and plural)
['verlag'] = 'editore', -- German
['vol'] = 'voluminu',
['volumen'] = 'voluminu', -- Spanish
['werk'] = 'travaglià', -- German
['werkerg'] = 'cuntribuzione', -- German (not a direct replacement, but can be emulated)
['wkautore'] = 'ligame d’autore', -- Italian
['wolumin'] = 'voluminu', -- Polish
['wydanie'] = 'numeru', -- Polish
['wydawca'] = 'editore', -- French
['zaprezentowany'] = 'editore', -- French
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}') (not yet supported by us directly)
['zitat'] = 'citazione', -- German
['zugriff'] = 'data di accessu', -- German
}
--[[--------------------------< 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: Extension:Scribunto/Lua_reference_manual#Patterns
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?$'] = 'data di accessu',
['^a[utho]+r$'] = 'autore',
['^a[utho]+r(%d+)$'] = 'autore$1', -- enumerated
['^pu[blish]+ers?$'] = 'editore',
}
return {suggestions = suggestions, patterns=patterns};