Template talk:Cita news

Page contents not supported in other languages.
From Simple English Wikipedia, the free encyclopedia

Created as full template[change source]

On 14 April 2014, User:Wikid77 created Template:Cita_news on English WP 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, en:wp:Redirects_for_discussion/Log/2010 July 18#Template:Cita_web (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) 02:48, 17 January 2019 (UTC)[reply]

Subst'ing into {cite_news} parameters[change source]

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 ("<ref>...</ref>"), then each reftag open tag must be deactivated such as rename to "<xxref>" to save the page, then re-edit the page to change all "<xxref>" back into "<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 "<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) 02:48, 17 January 2019 (UTC)[reply]

Translation of partial dates[change source]

Because a "date=" parameter can omit the day, to use just month & year, then the auto-translation of Spanish or Italian dates in Template:Cita_news was changed to 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) 02:48, 17 January 2019 (UTC)[reply]