Template talk:Cita news

This is the discussion/talk page for: Template:Cita_news.

Created as full template
On 14 April 2014, I created Template:Cita_news as a cite-gateway wp:wrapper template to handle Spanish/Italian parameters using wp:CS1 style Template:cite_news (see es:Plantilla:Cita_news or Italian it:Template:Cita_news) and translate dates to English. Most usage of {cita_news} has been with Italian-language parameters, rather than Spanish parameter names, but this template can handle either. In July 2010, wp:Redirects_for_discussion/Log/2010_July_18 (RfD), the result had been to "Keep" the related template name "{cita_web}", but some users recommended to change that redirect to act as an "exact copy" of Spanish {cita_web}, which has been implemented, now in {Cita_news}, by allowing Spanish/Italian or English parameter names (as done for years in templates with German-language parameters). The issue overlooked in the 2010 RfD is the need to support Italian cite titles by parameter name "titolo=" as otherwise, the cite might show no title. Likewise, {citar_web} has been expanded to handle Portuguese/Catalan or English parameters and dates. When users have time, they should translate or wp:subst the usage of {cita_news} into cite_news, cite_journal, or cite_web (etc.) as needed, renaming the internal parameter names according to the parameter list in Template:Cita_news. The June-2014 version was the first revision to act as an "exact copy" of the Italian Wikipedia template {cita_news}. -Wikid77 (talk) 00:42, 22 January 2016 (UTC)

Subst'ing into {cite_news} parameters
In June 2014, Template:Cita_news was changed for wp:subst'ing to generate the equivalent wp:wikitext as {cite_news} markup, by using the bar template "!" to generate a vertical bar "|" for each English parameter name, as if the user had hand-coded the equivalent {cite_news} markup inside the page. As of January 2016, because the wp:subst operation cannot be done inside wp:reftag elements (" "), then each reftag open tag must be deactivated such as rename to "&lt;xxref>" to save the page, then re-edit the page to change all "&lt;xxref>" back into "&lt;ref>". Any cites put outside of reftags, such as in '*' bullet lists of "Further reading" can be subst'ed in one SAVE operation, with no need to re-edit the page. Only cites in wp:reftags must be edited twice to use "&lt;xxref>" or similar in the first edit-save. Beware how any invalid, or misspelled, parameters will be dropped during the subst'ing, and hence each cite should be proofread for valid parameters before subst'ing it to lose invalid data. -Wikid77 (talk) 00:42, 22 January 2016 (UTC)

Translation of partial dates
Because a "date=" parameter can omit the day, to use just month & year, then the auto-translation in Template:Cita_news must remove one or two "de" words (meaning "of") and translate the simple month name, to handle dates with only one "de" word (or none). -Wikid77 (talk) 00:42, 22 January 2016 (UTC)

Empty unknown parameters
Currently the basic parameters urltrad, subscription, and coauthors trigger an error message. These need a way to translate and substitute. subscription can be replaced with subscription. I'm not sure about how to handle coauthors. urltrad is a puzzle since it doesn't appear on the parameter list, either here or on the Italian Wikipedia, despite appearing in the first version. -- Auric   talk  11:24, 1 February 2021 (UTC)