Template talk:Citation/core

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Keeping Citation/core for years[edit]

Even though some cite templates are being rewritten to use Lua script, rather than use Template:Citation/core, the rewrites have been tedious, and only a few of more than 20 cite templates have been tested with Lua yet. Meanwhile, {Citation/core} is needed by some other cite templates, as well as by projects which do not have Lua installed, and so {Citation/core} must be maintained much longer, and upgraded further to blend with Lua. Consider:

  • The markup to handle COinS metadata should be restored in {Citation/core}.
  • Quick new features should be added to match Lua-based operation.
  • Slow features could be added to {Citation/core}, because the average usage will become less than Lua-based templates.

For example, additional logic to auto-correct for some double-dot text ("..") in parameters could be added into {Citation/core}, once it is used less-often, compared with Lua-based templates. Also, the positional display of some parameters might be improved, as if {Citation/core} were still the main cite-format engine for English Wikipedia. Author names could be increased from 8 to 15, because that has little affect on overall speed. The use of {Citation/core} might continue for years, into 2014 and 2015, as a part of WP's citation templates. -Wikid77 13:53, 23 February 2013 (UTC)

Could fix double-dot after editor names[edit]

In some cases, an editor name which ends with dot "." can cause a double-dot to appear. Because use of editor names is rare, the extra markup needed to auto-correct for double-dot text ".." could be added without slowing the overall speed of wp:CS1 citations, even without the reduced workload expected with Lua-based cite templates. For example:

  • Options: {{cite_journal/old |author=Doe, Mary J.|editor=Public, John Q.|contribution="Article" |work=Major Work |date=1 May 2012 | page=234}}
  • Result: Doe, Mary J. (1 May 2012). "Article". In Public, John Q.. . Major Work: 234.

Meanwhile, the string-comparison templates to handle ".." have been switched to use faster Lua-based operation, so the extra time needed to scan to avoid ".." is not much of an issue for editor names, whether using markup or Lua strings. The Template:Str_endswith could be used inside a new subtemplate which checks the passed parameter and omits a final "." when the separator is also a dot. -Wikid77 13:53, 23 February 2013 (UTC)

I actually did a fix for that at User:Gadget850/Remove trailing period, but it was too expensive. It appears that the string templates have been updated to Lua, and the 500 character limit has been resolved. User:Gadget850/Remove trailing period/testcases is working well, as is User:Gadget850/Remove trailing period/testcases2. I am sure this could be optimized more better in Lua. --— Gadget850 (Ed) talk 14:28, 23 February 2013 (UTC)

Consistent date location & absence of central discussion[edit]

Please see Help talk:Citation Style 1#RFC: Consistent date location where I ask if the location of the date in the most popular citation templates should always be consistent. At present, the date is immediately after the authors if authors are given in the citation, but near the end if not.

This is related to a problem with the Lua conversion. As far as I can tell, each template is being to converted to Lua individually. When this is complete, there will be no central location to discuss the templates as a group, so that when different kinds of sources are cited in the same article, there will be consistent appearance of the citations. So is Help talk:Citation Style 1 the most appropriate place to discuss the templates as a group or is there a better place? Jc3s5h (talk) 11:59, 13 June 2013 (UTC)

Probably Help talk:Citation Style 1, as you say; but the replacement for Template:Citation/core is Module:citation/CS1, so Module talk:citation/CS1 is also in use for discussions affecting all these templates. --Redrose64 (talk) 13:16, 13 June 2013 (UTC)

Parameter listing[edit]

I'm not sure if this is because of the new script, or where the problem was there before, but the documentation shows the parameters with a capital first letter.  This does not work.  I am not sure if it worked before, or not. :- ) Don 22:47, 7 September 2013 (UTC)

{{citation/core}} is not intended for direct use in pages but to be used a subtemplate of other templates, such as {{citation}} and {{cite book}}. To make them distinct, the parameter names of {{citation/core}} intentionally have the first letter capitalised. Those templates which are intended to be used in articles (there are more than 20 of these, including {{citation}} and the Citation Style 1 templates such as {{cite book}}) use parameter names which are consistently lowercase. --Redrose64 (talk) 23:25, 7 September 2013 (UTC)

COinS[edit]

Support for COinS was removed in 2012 due to performance issues. The majority of CS1 templates have been migrated to Lua, but a few of the lesser used CS1 templates still use core, as well as a number of specific-source templates. Given that the use per page is going to be fairly low, I think we can restore COinS support. --  Gadget850 talk 13:43, 10 March 2014 (UTC)

  • Support re-adding COinS: I agree it would be better to restore the COinS metadata, removed to reduce wp:post-expand include size by ~20% (in pages which had used hundreds of CS1 cites). Some Bots need the COinS data to validate the cites & weblinks. -Wikid77 14:40, 10 March 2014 (UTC)
  • Agree as a Zotero user. Shyamal (talk) 08:58, 12 March 2014 (UTC)
  • Support AIUI, removal was only every supposed to be temporary. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:16, 12 March 2014 (UTC)