Cithakan:Cita libro: Béda antara owahan

Konten dihapus Konten ditambahkan
Veracious (parembugan | pasumbang)
Kaca anyar: <noinclude><!--cita_libro -=========================================== - Cita_libro: For Spanish/Italian cite book -=========================================== --...
(Ora ana béda)

Révisi kala 30 Mèi 2019 16.26

El Título. {{cite book}}: Cite has empty unknown parameters: |urltrad=, |deadurl=, |subscription=, |chapterurl=, and |coauthors= (pitulung)

Dhokumèntasi cithakan

Cithakan:Cs1 wrapper

The Template:Cita_libro handles Spanish-language (or Italian) parameters for {{cite_book}}, as in the Italian Wikipedia template it:Template:Cita_libro, with Italian "titolo=" for title. Until March 2017, {cita_libro} would issue a red-error message for each unrecognized Spanish parameter as "Unknown parameter |xx ignored..." and so {cita_libro} here simply switches any Spanish/Italian parameter into the English equivalent, and translates any date/month names into English, until those cites can be hand-translated into English where needed.

Due to translation of dates/months, the runtime speed of the template is about 100-125 per second, and usage should be limited to about 400 {cita_libro} per page, depending on performance needs.

The template can be wp:subst'ed in the form {{subst:cita_libro|...}} to generate the equivalent markup as "{{cite book|...}}" but not inside wp:reftags <ref>...</ref> which must be removed before subst'ing and then restored during another edit to a page.

List of parameter names

The major parameter keywords are listed below.

Cithakan:Ns List of parameters
Italian Spanish English
titolo título title
autore
autore2
autore3
autor
autor2
autor3
author
author2
author3
wkautore
wkautore2
wkautore3
enlaceautor
enlaceautor2
enlaceautor3
authorlink
authorlink2
authorlink3
cognome
cognome1
cognome2
cognome3
apellidos / apellido
apellidos1 / apellido1
apellidos2 / apellido2
apellidos3 / apellido3
last
last1
last2
last3
nome nombre / primero first
nome1
nome2
nome3
nombre1 / primero1
nombre2 / primero2
nombre3 / primero3
first1
first2
first3
coautori coautores coauthors
opera obra work
giornale publicación journal
pubblicazione periodico magazine
editore --- agency
curatore editorial publisher
città ubicación location
editori --- editors
data fecha date
accesso / dataaccesso fechaacceso accessdate
anno año year
mese mes month
annooriginale añooriginal origyear
formato formato format
tipo --- type
volume / vol volume volume
serie seria series
edizione / ed --- edition
numero numero issue
lingua idioma language
id id id
cid --- ref
pagina / p página page
pagine / pp páginas pages
richiestasottoscrizione suscripción subscription Cithakan:Ns
url url url
urlarchivio urlarchivo archiveurl
dataarchivio fechaarchivo archivedate
urlmorto enlaceroto deadurl
doi doi doi
--- etiquetadoi /
doilabel
---
citazione cita quote

The various Italian parameters are listed on the Italian Wikipedia in Lua script it:Modulo:Citazione/Configurazione from June 2013.

Examples

Below are some examples using {cita_libro}.

  • {{cita libro |título= Título |autor=Juan Doe |fecha= 1 de octubre de 2017}}
    —> Juan Doe (Masalah Lua: bad argument #2 to 'formatDate': invalid timestamp 'Januari'.). Título. {{cite book}}: Check date values in: |date= (pitulung); Cite has empty unknown parameters: |urltrad=, |deadurl=, |subscription=, |chapterurl=, and |coauthors= (pitulung)
  • {{cita libro |autore=Gianni Doe |titolo=Notizia italiano |url=http://x.com |data=7 maggio 2012 |lingua=italiano}}
    Gianni Doe (Masalah Lua: bad argument #2 to 'formatDate': invalid timestamp 'Januari'.). Notizia italiano (ing basa Italia). {{cite book}}: Check date values in: |date= (pitulung); Cite has empty unknown parameters: |urltrad=, |deadurl=, |subscription=, |chapterurl=, and |coauthors= (pitulung)
  • {{cita libro |url=http://www.radiomusik.it/16613/resistance-is-futile-in-anteprima-audio-il-nuovo-singolo-dei-laibach/ |editore=radiomusik.it |data=9 gennaio 2014 |accesso= 28 ottobre 2016}}
    [missing title]. radiomusik.it. Masalah Lua: bad argument #2 to 'formatDate': invalid timestamp 'Januari'.. Dibukak ing Masalah Lua: bad argument #2 to 'formatDate': invalid timestamp 'Januari'.. {{cite book}}: Check date values in: |accessdate= and |date= (pitulung); Cite has empty unknown parameters: |urltrad=, |deadurl=, |subscription=, |chapterurl=, and |coauthors= (pitulung) (example from "Laibach (band)")
  • {{cita libro |cognome= Ugas |nome= Giovanni |titolo= L'alba dei nuraghi |anno= 2005 |editore= Fabula Editore |città= Cagliari |ISBN= 978-88-89661-00-0 |cid= Ugas}}
    Ugas, Giovanni (2005). L'alba dei nuraghi. Cagliari: Fabula Editore. ISBN 978-88-89661-00-0. {{cite book}}: Cite has empty unknown parameters: |urltrad=, |deadurl=, |subscription=, |chapterurl=, and |coauthors= (pitulung) (example from "Corsi")

List of month names

Below is a table of month names. Note how Spanish dates use the form "7 de <month> de 2014" with words "de" (of) around the month name.

List of month names
Italian Spanish English
gennaio enero January
febbraio febrero February
marzo marzo March
aprile abril April
maggio mayo May
giugno junio June
luglio julio July
agosto agosto August
settembre   septiembre   September
ottobre octubre October
novembre noviembre November
dicembre diciembre December

Performance considerations

The Template:Cita_libro runs 100-125 per second, but users should translate to {{cite book}}, as time permits. The translations of {cita_libro} would typically require expertise in Italian (or Spanish), plus knowledge of the Italian Wikipedia it:Template:Cita_libro or the Spanish Wikipedia plantilla, plus knowledge of parameters of the enwiki Template:Cite_book. The parameter list, above, can be used to assist translation of parameter names.

Care should be taken to correctly hand-translate cite data into English; otherwise, the auto-translation of parameters is likely to be more accurate, as well as instantaneous (and without causing wp:edit_conflicts while other users are expanding the article).

See also

Cithakan:Non-English citation templates