https://projectmailer.net/index.php?title=Module:Citation/CS1/Suggestions&feed=atom&action=history
Module:Citation/CS1/Suggestions - Revision history
2024-03-29T04:44:27Z
Revision history for this page on the wiki
MediaWiki 1.39.0
https://projectmailer.net/index.php?title=Module:Citation/CS1/Suggestions&diff=4057&oldid=prev
Grlucas: 1 revision imported
2019-02-05T20:45:41Z
<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:45, 5 February 2019</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Grlucas
https://projectmailer.net/index.php?title=Module:Citation/CS1/Suggestions&diff=4056&oldid=prev
en>Meltdown627: added "sito"
2019-01-21T23:49:41Z
<p>added "sito"</p>
<p><b>New page</b></p><div>--Please insert new suggestions in alphabetical order<br />
--The form is ['incorrect'] = 'correct',<br />
<br />
suggestions = {<br />
['accessmonth'] = 'access-date', -- no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date'<br />
['accesso'] = 'access-date', -- Italian<br />
['accessyear'] = 'access-date', -- no longer supported by us, but still by citation templates mirrored in foreign WPs; can be emulated using 'access-date'<br />
['address'] = 'location',<br />
['année'] = 'year', -- French<br />
['año'] = 'year',<br />
['año-original'] = 'orig-year',<br />
['añoacceso'] = 'access-date', -- Spanish<br />
['annoaccesso'] = 'access-date', --Italian<br />
['annodiaccesso'] = 'access-date', --Italian<br />
['apellido'] = 'last', -- Spanish<br />
['archiv-datum'] = 'archive-date', -- German<br />
['archive date'] = 'archive-date',<br />
['archiv-url'] = 'archive-url', -- German<br />
['archive url'] = 'archive-url', -- Spanish<br />
['artist'] = 'others',<br />
['auflage'] = 'edition', -- German<br />
['auteur'] = 'author', -- French<br />
['auther'] = 'author',<br />
['author link'] = 'author-link', -- Polish<br />
['author link2'] = 'author2-link', -- Polish<br />
['autor'] = 'authors', -- German (singular and plural)<br />
['autore'] = 'author', -- Italian<br />
['autthor'] = 'author',<br />
['band'] = 'volume', -- German<br />
['chapter_title'] = 'chapter',<br />
['cita'] = 'quote', -- Spanish<br />
['citazione'] = 'quote', -- Italian<br />
['coauthor'] = 'author',<br />
['coauthors'] = 'author',<br />
['coautores'] = 'author', -- Spanish<br />
['coautori'] = 'author', -- Italian<br />
['cognome'] = 'last', -- Italian<br />
['consulté le'] = 'access-date', -- French<br />
['czasopismo'] = 'journal', -- Polish<br />
['data'] = 'date', -- Polish, Italian<br />
['dataarchivio'] = 'archive-date', -- Italian<br />
['data dostępu'] = 'access-date', -- Polish<br />
['datum'] = 'date', -- German<br />
['deadlink'] = 'dead-url',<br />
['distributor'] = 'publisher',<br />
['dnb'] = 'id', -- German (as 'id={{DNB-IDN|...}}') (not yet supported by us directly)<br />
['éditeur'] = 'editor', -- French<br />
['editon'] = 'edition',<br />
['editoin'] = 'edition',<br />
['editorial'] = 'publisher',<br />
['en ligne le'] = 'archive-date', -- French<br />
['encyclopædia'] = 'encyclopedia',<br />
['enlaceautor'] = 'author-link', -- Spanish<br />
['fecha'] = 'date', -- Spanish<br />
['fechaacceso'] = 'access-date', -- Spanish<br />
['fechaarchivo'] = 'archive-date', -- Spanish<br />
['filetype'] = 'format',<br />
['first 1'] = 'first1',<br />
['foramt'] = 'format',<br />
['formato'] = 'format', -- Spanish, Italian, Polish<br />
['frist'] = 'first',<br />
['herausgeber'] = 'editors', -- German (singular and plural)<br />
['idioma'] = 'language', -- Spanish, Italian<br />
['imię'] = 'first', -- Polish<br />
['isbnistformalfalsch'] = 'ignore-isbn-error', -- German<br />
['isnb'] = 'isbn',<br />
['jahr'] = 'year', -- German<br />
['kapitel'] = 'chapter', -- German<br />
-- ['kommentar'] = 'comment', -- German (not yet supported by us)<br />
['lang'] = 'language', <br />
['langauge'] = 'language',<br />
['langue'] = 'language', -- French<br />
['last 1'] = 'last1',<br />
['lieu'] = 'location', -- French<br />
['lingua'] = 'language', -- Italian<br />
['lire en ligne'] = 'url', -- French<br />
['lizenznummer'] = 'id', -- German (as 'id=License ...')<br />
['loaction'] = 'location',<br />
['locatoin'] = 'location',<br />
['lugar'] = 'location', -- Spanish<br />
['miejsce'] = 'location', -- Polish<br />
['miesiąc'] = 'date', -- Polish<br />
['mois'] = 'date', -- French<br />
['monat'] = 'date', -- German<br />
-- ['name'] = 'author', -- 'name' is often erroneously used for 'title' and 'work' as well, so no suggestion is better than a wrong suggestion<br />
['nazwisko'] = 'last', -- Polish<br />
['nespaper'] = 'newspaper',<br />
['newpaper'] = 'newspaper',<br />
['news'] = 'newspaper',<br />
['nom'] = 'last', -- French<br />
['nom1'] = 'last1', -- French<br />
['nombre'] = 'first', -- Spanish<br />
['nome'] = 'first', -- Italian<br />
['nummer'] = 'number', -- German<br />
['obra'] = 'work', -- Spanish<br />
['odpowiedzialność'] = 'agency', -- Polish<br />
['offline'] = 'dead-url', -- German<br />
['online'] = 'url', -- German (not a direct replacement, but can be emulated)<br />
['opublikowany'] = 'agency', -- Polish<br />
['opera'] = 'work', -- Italian<br />
['origdate'] = 'orig-year',<br />
['originaljahr'] = 'orig-year', -- German<br />
['originalort'] = 'location', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')<br />
['originalsprache'] = 'language', -- German<br />
['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put in 'trans-title')<br />
['ort'] = 'location', -- German<br />
['other'] = 'others',<br />
['oznaczenie'] = 'agency', -- Polish<br />
['pagees'] = 'pages',<br />
['página'] = 'page', -- Spanish, Italian<br />
['páginas'] = 'pages', -- Spanish, Italian<br />
['passage'] = 'pages', -- French<br />
['pagina'] = 'pages', -- Italian<br />
['pagine'] = 'pages', -- Italian<br />
['périodique'] = 'publisher', -- French<br />
['plublisher'] = 'publisher',<br />
['pmcid'] = 'pmc',<br />
['praca'] = 'work', -- Polish<br />
['prénom'] = 'first', -- French<br />
['prénom1'] = 'first1', -- French<br />
['ps'] = 'postscript',<br />
['pub'] = 'publisher',<br />
['pulbication-place'] = 'publication-place',<br />
['reihe'] = 'series', -- German<br />
['retrieved'] = 'access-date',<br />
['rok'] = 'date', -- Polish<br />
['sammelwerk'] = 'work', -- German<br />
['seiten'] = 'pages', -- German<br />
['seria'] = 'series', -- Polish<br />
['série'] = 'work', -- French *RECHECK*<br />
['service'] = 'agency',<br />
['sitioweb'] = 'website', --Spanish<br />
['sito'] = 'website', --Italian<br />
['stron'] = 'page', -- Polish<br />
['strony'] = 'pages', -- Polish<br />
['spalten'] = 'at', -- German (not a direct replacement, but can be emulated)<br />
['sprache'] = 'language', -- German<br />
['suscripción'] = 'subscription', -- Spanish, Polish<br />
['tag'] = 'date', -- German<br />
['tile'] = 'title',<br />
['tite'] = 'title',<br />
['titel'] = 'title', -- German<br />
['titel-p'] = 'title', -- German ('postscript=none' should be added as well)<br />
['titelerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)<br />
['titolo'] = 'title', -- Spanish, Italian<br />
['titre'] = 'title', -- French<br />
['títle'] = 'title',<br />
['título'] = 'title', -- Spanish<br />
['transchapter'] = 'trans-chapter',<br />
['translator'] = 'others',<br />
['transtitle'] = 'trans-title',<br />
['typ'] = 'author-mask', -- German (not a direct replacement, but the only valid argument 'typ=wl' can be emulated using 'author-mask')<br />
['tytuł'] = 'title', -- Polish<br />
['ubicación'] = 'location', -- Spanish<br />
['urlarchivo'] = 'archive-url', -- Spanish<br />
['urlarchivio'] = 'archive-url', -- Italian<br />
['urn'] = 'id', -- German (as 'id={{URN|...}}') (not yet supported by us directly)<br />
['übersetzer'] = 'translator', -- German (singular and plural)<br />
['verlag'] = 'publisher', -- German<br />
['vol'] = 'volume', <br />
['volumen'] = 'volume', -- Spanish<br />
['werk'] = 'work', -- German<br />
['werkerg'] = 'contribution', -- German (not a direct replacement, but can be emulated)<br />
['wkautore'] = 'author-link', -- Italian<br />
['wolumin'] = 'volume', -- Polish<br />
['wydanie'] = 'number', -- Polish<br />
['wydawca'] = 'publisher', -- French<br />
['zaprezentowany'] = 'publisher', -- French<br />
['zdb'] = 'id', -- German (as 'id={{ZDB|...}}') (not yet supported by us directly)<br />
['zitat'] = 'quote', -- German<br />
['zugriff'] = 'access-date', -- German<br />
}<br />
<br />
<br />
--[[--------------------------< P A T T E R N S >--------------------------------------------------------------<br />
<br />
Here we use Lua patterns to make suggestions. The form is ['pattern'] = 'correct',<br />
<br />
Lua patterns are not regex though they are similar. The escape character is '%', not '\'. For more information about<br />
lua patterns, see: Extension:Scribunto/Lua_reference_manual#Patterns<br />
<br />
Patterns should probably always include the '^' and '$' anchor assertions to prevent a partial match from incorrectly<br />
suggesting the wrong parameter name. For instance, the pattern 'a[utho]+r' matches 'author' in the no-longer-supported<br />
parameter |author-separator= so the code suggests '|author='; the same pattern also matches the no-longer-supported<br />
parameter |separator= (returning 'ator') so again, the code suggests '|author='.<br />
<br />
One capture is supported, typically the enumerator from an enumerated parameter (the '6' in |author6=, etc.) The value from the<br />
capture replaces $1 in the 'correct' value.<br />
<br />
]]<br />
<br />
local patterns = {<br />
['^ac+es+ ?d?a?t?e?$'] = 'access-date',<br />
['^a[utho]+r$'] = 'author',<br />
['^a[utho]+r(%d+)$'] = 'author$1', -- enumerated<br />
['^pu[blish]+ers?$'] = 'publisher',<br />
}<br />
<br />
return {suggestions = suggestions, patterns=patterns};</div>
en>Meltdown627