Modulo:Citazione/Configurazione
Istruzioni per l'uso
Questo è un modulo scritto in Lua. Le istruzioni che seguono sono contenute nella sottopagina Modulo:Citazione/Configurazione/man (modifica · cronologia)
Sandbox: Modulo:Citazione/Configurazione/sandbox (modifica · cronologia) · Sottopagine: lista · Test: Modulo:Citazione/Configurazione/test (modifica · cronologia · Esegui)
Questo è un modulo scritto in Lua. Le istruzioni che seguono sono contenute nella sottopagina Modulo:Citazione/Configurazione/man (modifica · cronologia)
Sandbox: Modulo:Citazione/Configurazione/sandbox (modifica · cronologia) · Sottopagine: lista · Test: Modulo:Citazione/Configurazione/test (modifica · cronologia · Esegui)
Modulo Lua di supporto a Modulo:Citazione. Contiene le tabelle di configurazione con i nomi dei parametri, i messaggi di errore, i parametri per la gestione degli identificatori (codici ISBN, doi, ecc..).
citation_config = {};
--[[
List of namespaces that should not be included in citation
error categories. Same as setting notracking = true by default
Note: Namespace names should use underscores instead of spaces.
]]
citation_config.uncategorized_namespaces = { 'Utente', 'Discussioni_utente', 'Discussioni' };
--[[
Translation table
The following contains fixed text that may be output as part of a citation.
This is separated from the main body to aid in future translations of this
module.
]]
citation_config.messages = {
['published'] = 'published $1',
['lay summary'] = 'Lay summary',
['retrieved'] = 'URL consultato il $1',
['inactive'] = 'inattivo',
['archived-dead'] = 'archiviato dall\'<abbr title="$1">url originale</abbr> in data $2',
['archived-not-dead'] = 'Archiviato dall\'originale in data $2',
['archived-missing'] = 'Archiviato dall\'originale in data $1',
['archived'] = 'Archiviato',
['original'] = 'l\'originale',
['editor'] = 'curatore',
['editors'] = 'curatori',
['edition'] = '($1 ed.)',
['episode'] = 'episodio',
['season'] = 'stagione',
['series'] = 'serie',
['cartography'] = 'Cartografia di $1',
['section'] = 'Sezione $1',
['inset'] = '$1 inset',
['written'] = 'Scritto a $1',
['in'] = 'In',
['et al'] = 'et al.',
-- include category when 'via' parameter is not used in the citation
['subscription'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(subscription required)</span>',
['subscription_no_via'] = '<span style="font-size:0.95em; font-size:90%; color:#555">(subscription required)</span>' ..
'[[Category:Pages containing links to subscription-only content]]',
['language'] = '(in $1)',
['via'] = " – via $1 [[Category:Subscription required using via]]",
['event'] = 'Event occurs at',
['minutes'] = 'minutes in',
['quoted-title'] = '"$1"',
['italic-title'] = "''$1''",
['trans-quoted-title'] = "[$1]", -- char #91=[ char #93=]
['trans-italic-title'] = "[''$1'']",
['quoted-text'] = '"$1"',
['parameter'] = '<code>|$1=</code>', -- char #124 = |
['parameter-separator'] = ', ',
['parameter-final-separator'] = ' e ',
['parameter-pair-separator'] = ' e ',
-- Error output
['hidden-error'] = '<span style="display:none;font-size:100%" class="error citation-comment">$1</span>',
['visible-error'] = '<span style="font-size:100%" class="error citation-comment">$1</span>',
-- Determines the location of the help page
['help page link'] = 'Help:CS1 errors', -- TODO: dove metterla ?
['help page label'] = 'aiuto',
-- Internal errors (should only occur if configuration is bad)
['undefined_error'] = 'Chiamato con una configurazione di errore non definita',
['unknown_manual_ID'] = 'Modalità ID manuale non riconosciuta',
['unknown_ID_mode'] = 'Modalità ID non riconosciuta',
['unknown_argument_map'] = 'Argomento mappa non definito per questa variabile',
['bare_url_no_origin'] = 'Trovato url nudo ma l\'indicatore di origine è nil o vuoto',
}
-- Aliases table for commonly passed parameters
citation_config.aliases = {
['AccessDate'] = 'accesso',
['Agency'] = 'agenzia',
['AirDate'] = 'datatrasmissione',
['ArchiveDate'] = {'dataarchivio' },
['ArchiveURL'] = {'urlarchivio'},
['ASINTLD'] = {'ASIN-TLD', 'asin-tld'},
['At'] = 'at',
--['Authors'] = {'authors', 'people'},
['AuthorFormat'] = {"formatoautori"},
['AuthorSeparator'] = 'separatoreautori',
['AuthorNameSeparator'] = 'separatorenomiautori',
['BookTitle'] = 'booktitle',
['Cartography'] = 'cartografia',
['Chapter'] = {'capitolo', 'contributo', 'voce', 'articolo', 'sezione' },
['ChapterLink'] = 'wkcapitolo',
['ChapterURL'] = {'urlcapitolo', 'urlcontributo' },
['Coauthors'] = {'coautore', 'coautori' },
['Conference'] = 'conferenza',
['ConferenceURL'] = {'urlconferenza' },
['Date'] = 'data',
['Day'] = 'giorno',
['DeadURL'] = 'deadurl',
['DisplayAuthors'] = {"mostraautori"},
['DisplayEditors'] = {"mostracuratori"},
['DoiBroken'] = {'doi_inactivedate', 'doi_brokendate', 'DoiBroken'},
['Edition'] = 'edizione',
['Editors'] = 'curatori',
['EditorFormat'] = {"formatocuratore" },
['EditorSeparator'] = 'separatorecuratore',
['EditorNameSeparator'] = 'separatorenomicuratori',
['Embargo'] = {'Embargo', 'embargo'},
['Format'] = 'formato',
['ID'] = {'id', 'ID'},
['IgnoreISBN'] = {'ignoraerroriisbn'},
['Inset'] = 'inset',
['Issue'] = {'numero'},
['Language'] = {'lingua'},
['LastAuthorAmp'] = 'lastauthoramp',
['LayDate'] = 'laydate',
['LaySource'] = 'laysource',
['LayURL'] = {'layurl', 'laysummary'},
['Minutes'] = 'minuti',
['Month'] = 'mese',
['NameSeparator'] = 'name-separator',
['Network'] = 'network',
['NoPP'] = 'nopp',
['NoTracking'] = {'nocat', 'notracking', "no-tracking"},
['OrigYear'] = 'annooriginale',
['Others'] = 'altri',
['Page'] = {'pagina'},
['Pages'] = {'pagine'},
['Periodical'] = {'pubblicazione', 'giornale', 'rivista', 'opera',
'sito', 'periodico', 'enciclopedia', 'dizionario'},
['Place'] = {'città'},
['PPrefix'] = 'PPrefix',
['PPPrefix'] = 'PPPrefix',
['PostScript'] = 'postscript',
['PublicationDate'] = {'datapubblicazione' },
['PublicationPlace'] = {'cittàpubblicazione' },
['PublisherName'] = 'editore',
['Quote'] = {'citazione'},
['Ref'] = {'cid'},
['Scale'] = 'scala',
['Section'] = 'sezione',
['Season'] = 'stagione',
['Separator'] = 'separatore',
['Series'] = {'serie', 'versione'},
['SeriesSeparator'] = 'separatoreserie',
['SeriesLink'] = 'serieslink',
['SeriesNumber'] = {'seriesnumber', 'seriesno'},
['Station'] = 'station',
['SubscriptionRequired'] = 'richiestasottoscrizione',
['Time'] = 'tempo',
['TimeCaption'] = 'timecaption',
['Title'] = 'titolo',
['TitleLink'] = {'wktitolo', 'wkepisodio' },
['TitleNote'] = 'department',
['TitleType'] = {'tipo'},
['TransChapter'] = {'trans-chapter', 'trans_chapter' },
['Transcript'] = 'trascrizione',
['TranscriptURL'] = {'urltrascrizione'},
['TransTitle'] = {'titolotradotto' },
['URL'] = {'url', 'URL'},
['Via'] = 'via',
['Volume'] = 'volume',
['Year'] = 'anno',
['AuthorList-First'] = {"nome#"},
['AuthorList-Last'] = {"autore#", "cognome#"},
['AuthorList-Link'] = {"wkautor#"},
['AuthorList-Mask'] = {"autore#-maschera", "autore-maschera#"},
['EditorList-First'] = {"curatore#-nome", "curatore-nome#"},
['EditorList-Last'] = {"curatore#-cognome", "curatore-cognome#", "curatore#"},
['EditorList-Link'] = {"wkcuratore#"},
['EditorList-Mask'] = {"curatore#-maschera", "curatore-maschera#"},
}
-- Default parameter values
citation_config.defaults = {
['DeadURL'] = 'sì',
['PostScript'] = '.',
['Separator'] = '.',
['AuthorSeparator'] = ';',
['EditorSeparator'] = ';',
['NameSeparator'] = ',',
['PPrefix'] = "p. ",
['PPPrefix'] = "pp. ",
}
--[[
Error condition table
The following contains a list of IDs for various error conditions defined in the
code. For each ID, we specify a text message to display, an error category to
include, and whether the error message should be wrapped as a hidden comment.
Anchor changes require identical changes to matching anchor in Help:CS1 errors
]]
citation_config.error_conditions = {
accessdate_missing_url = {
message = '<code>|accesso=</code> richiede <code>|url=</code>',
anchor = 'accessdate_missing_url',
category = 'Errori del modulo citazione - pagine con data di accesso senza URL',
hidden = true },
archive_missing_date = {
message = '<code>|urlarchivio=</code> richiede <code>|dataarchivio=</code>',
anchor = 'archive_missing_date',
category = 'Errori del modulo citazione - pagine con errori in urlarchivio',
hidden = false },
archive_missing_url = {
message = '<code>|urlarchivio=</code> richiede <code>|url=</code>',
anchor = 'archive_missing_url',
category = 'Errori del modulo citazione - pagine con errori in urlarchivio',
hidden = false },
bad_doi = {
message = 'Controllare il valore del parametro <code>|doi=</code>',
anchor = 'bad_doi',
category = 'Errori del modulo citazione - errore del codice DOI',
hidden = false },
bad_isbn = {
message = 'Controllare il valore dell\'<code>|ISBN=</code>',
anchor = 'bad_isbn',
category = 'Errori del modulo citazione - errore del codice ISBN',
hidden = false },
bad_ol = {
message = 'Controllare il valore del parametro <code>|ol=</code> value',
anchor = 'bad_ol',
category = 'Errori del modulo citazione - errore del codice OL',
hidden = false },
bad_url = {
message = 'Controllare il valore del parametro Check <code>|url=</code> scheme',
anchor = 'bad_url',
category = 'Errori del modulo citazione - errori nell\'URL',
hidden = false },
bare_url_missing_title = {
message = '$1 manca di titolo',
anchor = 'bare_url_missing_title',
category = 'Errori del modulo citazione - citazioni con URL nudi',
hidden = false },
citation_missing_title = {
message = 'Parametro <code>|title=</code> vuoto o mancante',
anchor = 'citation_missing_title',
category = 'Errori del modulo citazione - citazioni senza titolo',
hidden = false },
cite_web_url = {
message = 'Parametro <code>|url=</code> vuoto o mancante',
anchor = 'cite_web_url',
category = 'Errori del modulo citazione - template Cita web senza URL',
hidden = true },
empty_citation = {
message = 'Empty citation',
anchor = 'empty_citation',
category = 'Errori del modulo citazione - citazioni vuote',
hidden = false },
extra_pages = {
message = 'Parametro <code>|pagine=</code> o <code>|at=</code>', --TODO manteniamo parametro at?
anchor = 'extra_pages',
category = 'Errori del modulo citazione - pagine con citazioni con indicazioni di pagina contranti',
hidden = false },
format_missing_url = {
message = '<code>|formato=</code> richiede <code>|url=</code>',
anchor = 'format_missing_url',
category = 'Errori del modulo citazione - citazioni con formato ma senza url',
hidden = true },
implict_etal_author = {
message = '<code>|displayauthors=</code> suggested',
anchor = 'displayauthors',
category = 'Errori del modulo citazione - Pages using citations with old-style implicit et al.', --TODO rimuovere non penso riguardi it.wiki
hidden = true },
implict_etal_editor = {
message = '<code>|displayeditors=</code> suggested',
anchor = 'displayeditors',
category = 'Errori del modulo citazione - Pages using citations with old-style implicit et al.', --TODO rimuovere non penso riguardi it.wiki
hidden = true },
parameter_ignored = {
message = 'Parametro sconosciuto <code>|$1=</code> ignorato',
anchor = 'parameter_ignored',
category = 'Errori del modulo citazione - citazioni che usano parametri non supportati',
hidden = false },
parameter_ignored_suggest = {
message = 'Parametro sconosciuto <code>|$1=</code> ignorato (<code>|$2=</code> suggerito)',
anchor = 'parameter_ignored_suggest',
category = 'Errori del modulo citazione - citazioni che usano parametri non supportati',
hidden = false },
redundant_parameters = {
message = 'Più di uno di $1 specificato',
anchor = 'redundant_parameters',
category = 'Errori del modulo citazione - citazioni con parametri ridondanti',
hidden = false },
text_ignored = {
message = 'Testo "$1" ignorato',
anchor = 'text_ignored',
category = 'Errori del modulo citazione - citationi che usano parametri posizionali',
hidden = false },
trans_missing_chapter = {
message = '<code>|trans-chapter=</code> richiede <code>|chapter=</code>',
anchor = 'trans_missing_chapter',
category = 'Errori del modulo citazione - citazioni che usano termini tradotti senza originale',
hidden = false },
trans_missing_title = {
message = '<code>|trans-title=</code> richiede titolo <code>|title=</code>',
anchor = 'trans_missing_title',
category = 'Errori del modulo citazione - citazioni che usano termini tradotti senza originale',
hidden = false },
wikilink_in_url = {
message = 'Wikilink compreso nell\'URL del titolo',
anchor = 'wikilink_in_url',
category = 'Errori del modulo citazione - citaioni che hanno wikilink compresi nell\'URL del titolo',
hidden = false },
}
citation_config.id_handlers = {
['ASIN'] = {
parameters = { 'asin', 'ASIN' },
link = 'Amazon Standard Identification Number',
label = 'ASIN',
mode = 'manual',
COinS = 'info:asin',
separator = ' ',
encode = false;
},
['DOI'] = {
parameters = { 'doi', 'DOI' },
link = 'Digital object identifier',
label = 'doi',
mode = 'manual',
prefix = 'http://dx.doi.org/',
COinS = 'info:doi',
separator = ':',
encode = true,
},
['OL'] = {
parameters = { 'ol', 'OL' },
link = 'Open Library',
label = 'OL',
mode = 'manual',
COinS = 'info:olnum',
separator = ' ',
endode = true,
},
['ARXIV'] = {
parameters = {'arxiv', 'ARXIV'},
link = 'arXiv',
label = 'arXiv',
mode = 'external',
prefix = 'http://arxiv.org/abs/',
encode = false,
COinS = 'info:arxiv',
separator = ':',
},
['BIBCODE'] = {
parameters = {'bibcode', 'BIBCODE'},
link = 'Bibcode',
label = 'Bibcode',
mode = 'external',
prefix = 'http://adsabs.harvard.edu/abs/',
encode = false,
COinS = 'info:bibcode',
separator = ':',
},
['ISBN'] = {
parameters = {'isbn', 'ISBN', 'isbn13', 'ISBN13'},
link = 'International Standard Book Number',
label = 'ISBN',
mode = 'manual',
prefix = 'Special:BookSources/',
COinS = 'rft.isbn',
separator = ' ',
},
['ISSN'] = {
parameters = {'issn', 'ISSN'},
link = 'International Standard Serial Number',
label = 'ISSN',
mode = 'external',
prefix = '//www.worldcat.org/issn/',
COinS = 'rft.issn',
encode = false,
separator = ' ',
},
['JFM'] = {
parameters = {'jfm', 'JFM'},
link = 'Jahrbuch über die Fortschritte der Mathematik',
label = 'JFM',
mode = 'external',
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
COinS = 'rft.jfm',
encode = true,
separator = ' ',
},
['JSTOR'] = {
parameters = {'jstor', 'JSTOR'},
link = 'JSTOR',
label = 'JSTOR',
mode = 'external',
prefix = 'http://www.jstor.org/stable/',
COinS = 'rft.jstor',
encode = true,
separator = ' ',
},
['LCCN'] = {
parameters = {'LCCN', 'lccn'},
link = 'Library of Congress Control Number',
label = 'LCCN',
mode = 'external',
prefix = 'http://lccn.loc.gov/',
COinS = 'rft.lccn',
encode = false,
separator = ' ',
},
['MR'] = {
parameters = {'MR', 'mr'},
link = 'Mathematical Reviews',
label = 'MR',
mode = 'external',
prefix = 'http://www.ams.org/mathscinet-getitem?mr=',
COinS = 'rft.mr',
encode = true,
separator = ' ',
},
['OCLC'] = {
parameters = {'OCLC', 'oclc'},
link = 'OCLC',
label = 'OCLC',
mode = 'external',
prefix = '//www.worldcat.org/oclc/',
COinS = 'info:oclcnum',
encode = true,
separator = ' ',
},
['OSTI'] = {
parameters = {'OSTI', 'osti'},
link = 'Office of Scientific and Technical Information',
label = 'OSTI',
mode = 'external',
prefix = 'http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=',
COinS = 'info:osti',
encode = true,
separator = ' ',
},
['PMC'] = {
parameters = {'PMC', 'pmc'},
link = 'PubMed Central',
label = 'PMC',
mode = 'external',
prefix = '//www.ncbi.nlm.nih.gov/pmc/articles/PMC',
suffix = " ",
COinS = 'info:pmc',
encode = true,
separator = ' ',
},
['PMID'] = {
parameters = {'PMID', 'pmid'},
link = 'PubMed Identifier',
label = 'PMID',
mode = 'external',
prefix = '//www.ncbi.nlm.nih.gov/pubmed/',
COinS = 'info:pmid',
encode = false,
separator = ' ',
},
['RFC'] = {
parameters = {'RFC', 'rfc'},
link = 'Request for Comments',
label = 'RFC',
mode = 'external',
prefix = '//tools.ietf.org/html/rfc',
COinS = 'info:rfc',
encode = false,
separator = ' ',
},
['SSRN'] = {
parameters = {'SSRN', 'ssrn'},
link = 'Social Science Research Network',
label = 'SSRN',
mode = 'external',
prefix = 'http://ssrn.com/abstract=',
COinS = 'info:ssrn',
encode = true,
separator = ' ',
},
['ZBL'] = {
parameters = {'ZBL', 'zbl'},
link = 'Zentralblatt MATH',
label = 'Zbl',
mode = 'external',
prefix = 'http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:',
COinS = 'info:zbl',
encode = true,
separator = ' ',
}
}
citation_config.language_code = {
ab = True,
af = True,
am = True,
an = True,
ang = True,
ar = True,
arn = True,
aae = True,
art = True,
ast = True,
ave = True,
avk = True,
ay = True,
az = True,
ba = True,
bar = True,
be = True,
ber = True,
bg = True,
bi = True,
bn = True,
bo = True,
br = True,
bs = True,
ca = True,
cat = True,
ce = True,
ch = True,
co = True,
crh = True,
cs = True,
cu = True,
cv = True,
cy = True,
cz = True,
da = True,
dba = True,
de = True,
diq = True,
dv = True,
dz = True,
ee = True,
eml = True,
el = True,
en = True,
eo = True,
es = True,
egy = True,
et = True,
ett = True,
eu = True,
fa = True,
fi = True,
fil = True,
fit = True,
fo = True,
fr = True,
fro = True,
fur = True,
fy = True,
ga = True,
gag = True,
gd = True,
gil = True,
gl = True,
gn = True,
gr = True,
grc = True,
gu = True,
gv = True,
ha = True,
hbs = True,
he = True,
hi = True,
hif = True,
hr = True,
hu = True,
hy = True,
ht = True,
ia = True,
ie = True,
id = True,
ig = True,
io = True,
is = True,
it = True,
iu = True,
ja = True,
jbo = True,
jp = True,
jv = True,
ka = True,
kab = True,
kk = True,
kl = True,
km = True,
kn = True,
ko = True,
ku = True,
kv = True,
kw = True,
ky = True,
la = True,
lad = True,
lb = True,
li = True,
lij = True,
lld = True,
lmo = True,
lo = True,
lt = True,
lv = True,
lzh = True,
mg = True,
mi = True,
mil = True,
mk = True,
ml = True,
mn = True,
mo = True,
mr = True,
ms = True,
mt = True,
multi = True,
my = True,
nap = True,
nb = True,
ne = True,
nl = True,
nn = True,
no = True,
non = True,
nv = True,
nr = True,
ny = True,
oc = True,
osp = True,
oil = True,
['or'] = True,
orq = True,
os = True,
ota = True,
pa = True,
pcd = True,
pi = True,
pl = True,
pms = True,
ps = True,
pt = True,
qu = True,
rm = True,
ro = True,
ru = True,
rup = True,
ry = True,
sa = True,
sc = True,
scn = True,
scx = True,
sdc = True,
sdn = True,
se = True,
sk = True,
si = True,
sl = True,
sm = True,
sms = True,
so = True,
sq = True,
sr = True,
src = True,
sro = True,
ss = True,
st = True,
su = True,
sv = True,
sw = True,
szl = True,
ta = True,
te = True,
tg = True,
th = True,
tk = True,
ti = True,
tl = True,
tlh = True,
tly = True,
tn = True,
to = True,
tpi = True,
tr = True,
ts = True,
tt = True,
ug = True,
uk = True,
ur = True,
uz = True,
ve = True,
vec = True,
vi = True,
vls = True,
vo = True,
wa = True,
war = True,
wo = True,
xh = True,
xno = True,
yi = True,
yo = True,
zea = True,
zh = True,
zu = True,
}
return citation_config;
-- Revision history
-- Importato il 13/6/2013 dalla revisione 556407394 di [[:en:Module:Citation/CS1/Configuration]]
-- 13/06/2013 rimossi alias che variano solo per maiuscolo/minuscolo
-- 13/06/2013 localizzazione dei messaggi di errore
-- 19/06/2013 primo giro di localizzazione parametri, aggiunti codici lingue