Module talk:Citation/CS1/Archive 2
{{Automatic archive navigator}}{{Search box|root=Module talk:Citation/CS1}}
Placement of volume + issue + year
{{ cite compare|mode=journal | issue=11 | title=Asian Astronomy 101 | volume=4 | year=1997 | url=http://amateurastronomy.org/EH/Oct97.txt | journal=Hamilton Amateur Astronomers | accessdate=August 5, 2007
|comment=Year position }}
Placing the publication year in between the volume number and the issue number doesn't seem like an improvement. Dragons flight (talk) 13:27, 13 March 2013 (UTC)
:Lua version cannot be correct. Rjwilmsi 15:16, 13 March 2013 (UTC)
::I moved the Issue= tag next to the Volume= tag, which fixes this. However, I'm suspicious that there may be other cases (other format modes?) where this breaks things. All of the examples on this page right now seem okay, but we probably need to look carefully at this. Dragons flight (talk) 02:27, 14 March 2013 (UTC)
Weird link formatting for encyclopedia class
{{ cite compare|mode=encyclopedia | archivedate=31 October 2009 | last=Microsoft Encarta Online Encyclopaedia 2007 | title=Europe | deadurl=yes | archiveurl=http://www.webcitation.org/5kwbxqnne | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | accessdate=27 December 2007
| comment = Strange exposed url for cite encyclopedia }}
{{ cite compare|mode=web | archivedate=31 October 2009 | last=Microsoft Encarta Online Encyclopaedia 2007 | title=Europe | deadurl=yes | archiveurl=http://www.webcitation.org/5kwbxqnne | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | accessdate=27 December 2007
| comment = Not exposed for cite web }}
Cite encyclopedia is doing something strange with the link here. Dragons flight (talk) 14:11, 13 March 2013 (UTC)
:Probably because {{tl|Cite encyclopedia}} handles {{para|title}} strangely:
|Title={{{encyclopedia|{{{title|}}}}}}
|TransTitle={{{trans_chapter|}}}
|TransItalic={{{trans_title|}}}
|IncludedWorkTitle={{{title|{{{article|}}}}}}
:I never could get a good answer on why {{para|title}} is used in both Title and IncludedWorkTitle, and that is one section I never updated. --— Gadget850 (Ed) talk 15:20, 13 March 2013 (UTC)
:Looking again at the first example, I see that last is being used where it should be encyclopedia. If title is defined but not encyclopedia then title is used in quotes and again in italics. I meant to poke into this before but title should be the title of the included work and should always be in quotes. --— Gadget850 (Ed) talk 20:36, 13 March 2013 (UTC)
{{ cite compare|mode=encyclopedia | archivedate=31 October 2009 | encyclopedia=Microsoft Encarta Online Encyclopaedia 2007 | title=Europe | deadurl=yes | archiveurl=http://www.webcitation.org/5kwbxqnne | url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html | accessdate=27 December 2007 }}
:Fixed. Dragons flight (talk) 00:29, 17 March 2013 (UTC)
Both page and pages
{{ cite compare|mode=journal | doi=10.1002/anie.200703710 | last2=Andrews | first1=X | volume=46 | issue=44 | first4=M | author3=Riedel, S | pmid=17899620 | author4=Kaupp, M | last1=Wang | author1=Wang, X | pages=8371–5 | last4=Kaupp | page=8371 | first2=L | publisher=Wiley-VCH | year=2007 | last3=Riedel | journal=Angewandte Chemie International Edition | author2=Andrews, L | title=Mercury Is a Transition Metal: The First Experimental Evidence for HgF4 | first3=S }}
Lua behaves a little odd if both page= and pages= are specified at the same time. Arguably this should be considered a user error. Dragons flight (talk) 14:34, 13 March 2013 (UTC)
:For the moment stick as is: {{para|pages}} overrides {{para|page}}. Hopefully once Lua templates are established we can look to add validation/tracking categories for these kinds of errors. Rjwilmsi 15:19, 13 March 2013 (UTC)
::Made pages= override page= as suggested. Dragons flight (talk) 17:26, 13 March 2013 (UTC)
double dot with publisher
{{ cite compare|mode=web | last=Czajkowski | title=Sorting 1PB with MapReduce | publisher=Google, Inc. | date=November 21, 2008 | url=http://googleblog.blogspot.com/2008/11/sorting-1pb-with-mapreduce.html | first=Grzegorz | accessdate=July 5, 2010
| comment= The double "." }}
When the publisher name ends in a "." (e.g. "Google, Inc.", "MacMillan and Co."), this can lead to a double "." following the publisher. Dragons flight (talk) 14:47, 13 March 2013 (UTC)
- I'll inspect the code, but I am not sure how many more double-dot problems we are facing. I have already fixed ".." after authors/editors or between "agency=" and page number, as well as ".." after book/periodical title. See examples in wp:CS1/test_problems. -Wikid77 19:54, 14 March 2013 (UTC)
::Fixed. Dragons flight (talk) 22:03, 16 March 2013 (UTC)
Double dot at the end
{{ cite compare|mode=news | last=Rabil | title=New York Times Starts Selling Ad Space on Front Page | url=http://www.bloomberg.com/apps/news?pid=20601103&sid=amsJuEA115pI&refer=us | date=January 5, 2009 | first=Sarah | work=Bloomberg L.P.
|comment=Dots at end}}
Another way to get a double dot (i.e. ".."). Dragons flight (talk) 15:04, 13 March 2013 (UTC)
Fixing brackets in titles
{{ cite compare|mode=web | publisher=Econsultancy | title=Q&A: Ian Grant of Encyclopædia Britannica UK [interview] | date=10 February 2009 | url=http://econsultancy.com/blog/3268-q-a-ian-grant-of-encyclopaedia-britannica-uk | author=Graham Charlton | accessdate=10 February 2009
| comment = Can we fix the error in the old version? }}
It has always been the case that having brackets in your title, e.g. [], can mess up the placement of url links. The standard templates advise that any titles requiring brackets should be manually converted to escape codes; however, it seems like it should be well within Lua's ability to detect this issue and automatically do the encoding. Dragons flight (talk) 15:30, 13 March 2013 (UTC)
:I've made it so that embedded bracket are escaped automatically before generating the URL. Dragons flight (talk) 17:45, 13 March 2013 (UTC)
::There are also problems with a newline (usually because it was copy/pasted) which should be converted to a space and with pipes, which we really can't so anything with. --— Gadget850 (Ed) talk 20:24, 13 March 2013 (UTC)
:::I added newlines to the filter. Dragons flight (talk) 01:49, 14 March 2013 (UTC)
format tag out of position
{{ cite compare|mode=book | author=Stern, N. | contribution=6.2 What existing models calculate and include | format=PDF | url=http://www.hm-treasury.gov.uk/d/Chapter_6_Economic_modelling_of_climate-change_impacts.pdf | publisher=HM Treasury website | title=6 Economic modelling of climate-change impacts | year=2006 | series=Stern Review Report on the Economics of Climate Change (pre-publication edition) | pages=147–148 | accessdate=28 April 2011 }}
PDF label is out of position. Dragons flight (talk) 03:10, 14 March 2013 (UTC)
:Fixed. Dragons flight (talk) 03:40, 16 March 2013 (UTC)
bold madness
{{ cite compare| mode = web | publisher=UN | title=Table A.17 | work=United Nations World Population Prospects, 2006 revision | url=http://www.un.org/esa/population/publications/wpp2006/WPP2006_Highlights_rev.pdf | accessdate=15 January 2011 }}
Who ordered that? Dragons flight (talk) 03:35, 14 March 2013 (UTC)
:Fixed. Dragons flight (talk) 03:59, 14 March 2013 (UTC)
The month= option
{{ cite compare|mode=web | archivedate=28 September 2007 | publisher=IUCN Species Survival Commission Hyaenidae Specialist Group | title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758) | month=May | archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm | url=http://www.hyaena.ge/striped.htm | accessdate=21 May 2008
|comment=Who ordered a month option? }}
A new, rare option rears its head. Dragons flight (talk) 04:33, 14 March 2013 (UTC)
:Month is not rare, but it should be used with year. I consider this an improvement. --— Gadget850 (Ed) talk 06:00, 14 March 2013 (UTC)
::Do you mean that month= should be ignored if year= is not present? Dragons flight (talk) 15:21, 14 March 2013 (UTC)
:::Yes. Month and/or day without year makes no sense. As does day and year only. The Lua version suppresses this. --— Gadget850 (Ed) talk 15:39, 14 March 2013 (UTC)
::::Okay, I see what you mean. I'll leave this alone then. Dragons flight (talk) 17:28, 14 March 2013 (UTC)
{{ cite compare|mode=web | archivedate=28 September 2007 | publisher=IUCN Species Survival Commission Hyaenidae Specialist Group | title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758) | month=May |year=2013 | archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm | url=http://www.hyaena.ge/striped.htm | accessdate=21 May 2008}}
{{ cite compare|mode=web | archivedate=28 September 2007 | publisher=IUCN Species Survival Commission Hyaenidae Specialist Group | title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758) | day=2 |archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm | url=http://www.hyaena.ge/striped.htm | accessdate=21 May 2008
|comment=day alone}}
{{ cite compare|mode=web | archivedate=28 September 2007 | publisher=IUCN Species Survival Commission Hyaenidae Specialist Group | title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758) |month=May | day=2 |archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm | url=http://www.hyaena.ge/striped.htm | accessdate=21 May 2008
|comment=month and day without year}}
{{ cite compare|mode=web | archivedate=28 September 2007 | publisher=IUCN Species Survival Commission Hyaenidae Specialist Group | title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758) | day=2 |year=2013 |archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm | url=http://www.hyaena.ge/striped.htm | accessdate=21 May 2008
|comment=day with year }}
:Please note that as presently coded (i.e. without Lua), all the citation templates (whether CS1 or CS2) categorise pages into {{cl|Pages containing cite templates with deprecated parameters}} when {{para|day}} is used. I have found that when the {{para|day}} parameter does get used, it's almost always with {{tlx|cite journal}} The documentation for that states that the parameter is deprecated, and that {{para|date}} should be used to include the day, month and year. The Template:Cite journal#csdoc_date mentions {{para|year}} and {{para|month}} but not {{para|day}}. --Redrose64 (talk) 23:16, 16 March 2013 (UTC)
::Yes, day is deprecated, but it is still used in the date algorithm in all the CS1 templates. And it is displayed if you use it alone. Regardless, the Lua version handles this in a more sane manner by not showing invalid dates. --— Gadget850 (Ed) talk 23:41, 16 March 2013 (UTC)
Square brackets not quite in right places
{{cite web
|url=http://www.example.org/
|title=Honi soit qui mal y pense
|last=Joliet
|first=François
|date=30 April 2005
|accessdate=6 July 2005
|language=French
|trans_title=Shame on those who think evil
}}
:{{cite web
|url=http://www.example.org/
|title=Honi soit qui mal y pense
|last=Joliet
|first=François
|date=30 April 2005
|accessdate=6 July 2005
|language=French
|trans_title=Shamed be he who thinks evil of it
}}
:
|url=http://www.example.org/
|title=Honi soit qui mal y pense
|last=Joliet
|first=François
|date=30 April 2005
|accessdate=6 July 2005
|language=French
|trans_title=Shamed be he who thinks evil of it
}}
Anchors
{{tl|Citation}} creates an anchor by default, where {{cs1}} template create them only when {{para|ref}} is set. {{tl|Citation/lua}} does not create the anchor by default. None of the Lua templates create the {{para|ref|harv}} anchor properly: the year is missing. --— Gadget850 (Ed) talk 20:00, 20 February 2013 (UTC)
- Set {Citation/lua} as ref=harv and put year. For any {Citation/lua}, the span-tag id now uses ref=harv format. The Lua script had to be changed to check for missing/empty "year=" and then extract the year from the date parameter to insert inside the span-tag id. -Wikid77 05:12, 22 February 2013 (UTC)
Separators
The biggest visible difference between {{tl|citation}} and the CS1 templates is that citation uses a comma as a separator by default, while the CS1 ones use a period; this can be changed by the {{para|separator}} parameter. However, {{tl|citation/lua}} always uses a period, and ignores the separator parameter. This should be fixed to match the existing templates. Another closely related problem is that {{tl|citation/lua}} currently adds a spurious period after the issue number of a journal paper; e.g.
:
| last1 = Benjamin | first1 = Arthur T. | author1-link = Arthur T. Benjamin | last2 = Orrison | first2 = M. E.
| title = Two quick combinatorial proofs of
| journal = College Mathematics Journal
| year = 2002
| volume = 33
| issue = 5
| pages = 406–408
| url = http://www.math.hmc.edu/~orrison/research/papers/two_quick.pdf}}.
:
| last1 = Benjamin | first1 = Arthur T. | author1-link = Arthur T. Benjamin | last2 = Orrison | first2 = M. E.
| title = Two quick combinatorial proofs of
| journal = College Mathematics Journal
| year = 2002
| volume = 33
| issue = 5
| pages = 406–408
| url = http://www.math.hmc.edu/~orrison/research/papers/two_quick.pdf}}
renders as "College Mathematics Journal 33 (5).: 406–408". It should not have the period between the "(5)" and the following colon, and the periods after the publication year and the article title should both be commas. —David Eppstein (talk) 21:13, 20 February 2013 (UTC)
- Reworking to handle separator: It will take a few days to fix all dots, but I will change each dot "." to allow comma when {citation} or separator=c as Lua variable "sepc". The parameters for AuthorSep and AuthorNameSep are already used. -Wikid77 22:46, 20 February 2013 (UTC)
Some tests
Here's a test for various other empty params -- WOSlinker (talk) 23:05, 20 February 2013 (UTC)
- cite web: {{cite web
|title=title|coauthor= |others= |editormask= |editorformat= |editors= |year = |publicationdate= |origyear= |date= |laydate= |booktitle= |conference= |trans_title= |department= |titlelink= |chapter= |chapterlink= |trans_chapter= |type= |archiveurl= |url= |chapterurl= |args.conferenceurl= |journal= |series= |volume= |issue= |page= |pages= |pp= |at= |edition= |place= |publisher= |subscription= |via= |accessdate= |archivedate= |agency= |deadurl= |language= |format= |ref= |arxiv= |asin= |ASIN-TLD= |bibcode= |doi= |doi_inactivedate= |id= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |quote= |postscript= |laysummary= |laysource= |transcript= |transcripturl=
| no-tracking = true
}}
- cite web/lua:
{{cite web/lua
|title=title|coauthor= |others= |editormask= |editorformat= |editors= |year = |publicationdate= |origyear= |date= |laydate= |booktitle= |conference= |trans_title= |department= |titlelink= |chapter= |chapterlink= |trans_chapter= |type= |archiveurl= |url= |chapterurl= |args.conferenceurl= |journal= |series= |volume= |issue= |page= |pages= |pp= |at= |edition= |place= |publisher= |subscription= |via= |accessdate= |archivedate= |agency= |deadurl= |language= |format= |ref= |arxiv= |asin= |ASIN-TLD= |bibcode= |doi= |doi_inactivedate= |id= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |quote= |postscript= |laysummary= |laysource= |transcript= |transcripturl=
| no-tracking = true
}}
Here's a test for output checking. Doesn't need to be exactly the same but should be similar. -- WOSlinker (talk) 23:10, 20 February 2013 (UTC)
- cite web: {{cite web
|title=title |coauthor= 1 |others= 2 |editormask= 3 |editorformat= 4 |editors= 5 |year = 6 |publicationdate= 7 |origyear= 8 |date= 9 |laydate= 10 |booktitle= 11 |conference= 12 |trans_title= 13 |department= 14 |titlelink= 15 |chapter= 16 |chapterlink= 17 |trans_chapter= 18 |type= 19 |archiveurl= 20 |url= 21 |chapterurl= 22 |args.conferenceurl= 23 |journal= 24 |series= 25 |volume= 26 |issue= 27 |page= 28 |pages= 29 |pp= 30 |at= 31 |edition= 32 |place= 33 |publisher= 34 |subscription= 35 |via= 36 |accessdate= 37 |archivedate= 38 |agency= 39 |deadurl= 40 |language= 41 |format= 42 |ref= 43 |arxiv= 44 |asin= 45 |ASIN-TLD= 46 |bibcode= 47 |doi= 48 |doi_inactivedate= 2008 |id= 50 |isbn= 51 |issn= 52 |jfm= 53 |jstor= 54 |lccn= 55 |mr= 56 |oclc= 57 |ol= 58 |osti= 59 |pmc= 60 |pmid= 61 |rfc= 62 |ssrn= 63 |zbl= 64 |quote= 65 |postscript= 66 |laysummary= 67 |laysource= 68 |transcript= 69 |transcripturl= 70 |separator= _
| no-tracking = true
}}
- cite web/lua:
{{cite web/lua
|title=title |coauthor= 1 |others= 2 |editormask= 3 |editorformat= 4 |editors= 5 |year = 6 |publicationdate= 7 |origyear= 8 |date= 9 |laydate= 10 |booktitle= 11 |conference= 12 |trans_title= 13 |department= 14 |titlelink= 15 |chapter= 16 |chapterlink= 17 |trans_chapter= 18 |type= 19 |archiveurl= 20 |url= 21 |chapterurl= 22 |args.conferenceurl= 23 |journal= 24 |series= 25 |volume= 26 |issue= 27 |page= 28 |pages= 29 |pp= 30 |at= 31 |edition= 32 |place= 33 |publisher= 34 |subscription= 35 |via= 36 |accessdate= 37 |archivedate= 38 |agency= 39 |deadurl= 40 |language= 41 |format= 42 |ref= 43 |arxiv= 44 |asin= 45 |ASIN-TLD= 46 |bibcode= 47 |doi= 48 |doi_inactivedate= 2008 |id= 50 |isbn= 51 |issn= 52 |jfm= 53 |jstor= 54 |lccn= 55 |mr= 56 |oclc= 57 |ol= 58 |osti= 59 |pmc= 60 |pmid= 61 |rfc= 62 |ssrn= 63 |zbl= 64 |quote= 65 |postscript= 66 |laysummary= 67 |laysource= 68 |transcript= 69 |transcripturl= 70 |separator= _
| no-tracking = true
}}
- Working to omit blank parameters: I agree that blank parameters must be omitted because numerous articles contain several boilerplate templates where many optional parameters are blank in each cite. -Wikid77 00:48, 21 February 2013 (UTC)
Handling vast set of parameters
I see the migration to the Lua-based templates will affect a vast array of cite parameters, but I think we have over 100 parameters already close to the same format. If we keep going for another week, I think we can fix most issues, such as ref ids and Harvard referencing. However, many of the minor cite template forks, such as Template:Cite press release or Template:Cite_video, can remain in the markup version until we get time to handle all the format variations. Articles can have a mix of the Lua-based cites and original markup-based cites and still render. -Wikid77 05:20, 21 February 2013 (UTC)
:Sounds very reasonable to me. —David Eppstein (talk) 06:06, 21 February 2013 (UTC)
series/volume/publisher order
It's very quickly becoming difficult to find any difference in formatting between this and the old templates — thanks for all the hard work! But here's one more.
{{tl|citation}}, for a book that has a {{para|series}}, a {{para|volume}} in the series, and a publisher, orders them series, volume, publisher:
- {{citation
| last1 = Aharoni | first1 = Y.
| last2 = Halperin | first2 = D.
| last3 = Hanniel | first3 = I.
| last4 = Har-Peled | first4 = S.
| last5 = Linhart | first5 = C.
| contribution = On-line zone construction in arrangements of lines in the plane
| doi = 10.1007/3-540-48318-7_13
| pages = 139–153
| publisher = Springer-Verlag
| series = Lecture Notes in Computer Science
| title = Proc. 3rd Int. Worksh. Algorithm Engineering (WAE '99)
| volume = 1668
| year = 1999}}.
But {{tl|citation/lua}} orders them series, publisher volume:
{{citation/lua
| last1 = Aharoni | first1 = Y.
| last2 = Halperin | first2 = D.
| last3 = Hanniel | first3 = I.
| last4 = Har-Peled | first4 = S.
| last5 = Linhart | first5 = C.
| contribution = On-line zone construction in arrangements of lines in the plane
| doi = 10.1007/3-540-48318-7_13
| pages = 139–153
| publisher = Springer-Verlag
| series = Lecture Notes in Computer Science
| title = Proc. 3rd Int. Worksh. Algorithm Engineering (WAE '99)
| volume = 1668
| year = 1999}}.
Incidentally, I would be happy to see the boldfacing on the volume and the comma in front of it both go away, in this case, but maybe we should concentrate on matching what we already have before thinking about improvements. —David Eppstein (talk) 06:04, 21 February 2013 (UTC)
- Reset order, checking volume prefix: For years, the plan for the volume has been to automatically unbold, such as for prefix "Vol" or "vol" and then put a comma. To force unbold, then insert tag "</b>" prefix, as "volume = </b>1668". The time to improve for prior suggestions is now, while people are still checking to see if it works. -Wikid77
- I think http://xkcd.com/1144/ adequately expresses my opinion about using mismatched tags. —David Eppstein (talk) 08:27, 21 February 2013 (UTC)
Position of "location" versus "agency" fields
From Help talk:Citation Style 1#Position of "location" versus "agency" fields:
As of this writing, the Cite news template has the location
field follow the agency
field, rather than the newspaper
/work
field (see the "No author but sourced to a news agency" example in the documentation), which is confusing, since per the documentation the location field refers to the location of the newspaper ("[g]eographical place of publication"), not that of the news agency.
This has been discussed twice before (Archive 5: Agency, newspaper, and location and Archive 5: "Location" of newspaper vs. "Location" of byline), but no conclusion/consensus was reached. Would someone please be so kind as to fix this?—DocWatson42 (talk) 09:09, 15 February 2013 (UTC)
:I agree, this has needed fixing for a long time. The present situation is obviously illogical and wrong. (One of a number of such things often mentioned but never fixed.) -- Alarics (talk) 13:19, 15 February 2013 (UTC)
::Please provide examples of current format and how you think it should be. --— Gadget850 (Ed) talk 15:31, 15 February 2013 (UTC)
:::See Singapore, footnote 62, which says "AsiaOne. Agence France-Presse (Singapore)." when it obviously should be "AsiaOne (Singapore). Agence France-Presse." -- Alarics (talk) 17:52, 15 February 2013 (UTC)
:::: Another: The No author but sourced to a news agency example I referenced above, taken from the template's documentation:
::::* As it is: {{cite news
|title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express
|location=Kota Kinabalu, Malaysia
|date=29 March 2007
|agency=Bernama
}}
::::* As it should be: "[http://www.dailyexpress.com.my/news.cfm?NewsID=48660 Drugs: Chips trader gets 15 years, 10 strokes]". Daily Express (Kota Kinabalu, Malaysia). Bernama. 29 March 2007.
:::::—DocWatson42 (talk) 14:47, 17 February 2013 (UTC)
- Comparison with Lua version: The placement of the "location=" parameter could be shifted for only citation class "news" where other cites could have some alternate format:
::* Cite_news: {{cite news
|title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express |location=Kota Kinabalu, Malaysia
|date=29 March 2007 |agency=Bernama }}
::* Cite_news/lua:
|title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express |location=Kota Kinabalu, Malaysia
|date=29 March 2007 |agency=Bernama }}
: If there is confusion with a shift in parameters, then we could alter the format for the cite class "news" only. -Wikid77 15:12, 21 February 2013 (UTC)
:: If that fixes the problem, then I'm for it.—DocWatson42 (talk) 03:39, 10 March 2013 (UTC)
::: And it seems that the correction has been made (albeit without an announcement in this section), since the "problem" examples now match the "desired" examples. Thanks!—DocWatson42 (talk) 05:56, 24 March 2013 (UTC)
Transition Phase-3: Install Cite_encyclopedia/lua
{{editprotected|Template:Cite_encyclopedia|answered=yes}}
The wp:CS1 cite template {{cite_encyclopedia}} needs to redirect to use Template:Cite_encyclopedia/lua, as invoking the Lua script version in Module:Citation/CS1.
After weeks of testing, and hundreds of small format changes, we are ready for phase 3 of the markup-to-Lua transition, as installing {cite_encyclopedia/lua} as {cite_encyclopedia}. Some parameters have been shifted slightly, to allow better placement of the "trans_title=" translation text following the "title=" words. Example:
- Parameters:
{{...|
|last=Doe |first=J.B. |authorlink=John Doe|editor-first=Edie |editor-last=Tor
|editor-link=Editor |encyclopedia=AEIOU Encyclopaedia |title=Mein Artikel
|trans_title=My Article |url=http://austria-forum.org/af/AEIOU
|accessdate=7 March 2013 |language=German |edition=2012 |date=1 December 2012
|year= |month= |publisher=BMBWK, Austria |volume=IV |location=Vienna
|id= |isbn=1234567890 |oclc=Oclc 45 |doi=10.DOI_number
|pages=77 |quote=This is a direct quote |ref=harv}}
- Cite encyclopedia/old: {{cite encyclopedia/old
|last=Doe |first=J.B. |authorlink=John Doe|editor-first=Edie |editor-last=Tor
|editor-link=Editor |encyclopedia=AEIOU Encyclopaedia |title=Mein Artikel
|trans_title=My Article |url=http://austria-forum.org/af/AEIOU
|accessdate=7 March 2013 |language=German |edition=2012 |date=1 December 2012
|year= |month= |publisher=BMBWK, Austria |volume=IV |location=Vienna
|id= |isbn=1234567890 |oclc=Oclc 45 |doi=10.DOI_number
|pages=77 |quote=This is a direct quote |ref=harv}}
- Cite encyclopedia/lua:
{{cite encyclopedia/lua
|last=Doe |first=J.B. |authorlink=John Doe|editor-first=Edie |editor-last=Tor
|editor-link=Editor |encyclopedia=AEIOU Encyclopaedia |title=Mein Artikel
|trans_title=My Article |url=http://austria-forum.org/af/AEIOU
|accessdate=7 March 2013 |language=German |edition=2012 |date=1 December 2012
|year= |month= |publisher=BMBWK, Austria |volume=IV |location=Vienna
|id= |isbn=1234567890 |oclc=Oclc 45 |doi=10.DOI_number
|pages=77 |quote=This is a direct quote |ref=harv}}
The transition of {cite_encyclopedia} will be the first wp:CS1 cite template to use Lua script, as a limited test among only 61,000 articles, before expanding to {cite_news} used in nearly 1/2 million pages. Other Lua-based templates have been used safely in over 600,000 articles. -Wikid77 (talk) 16:24, 7 March 2013 (UTC)
:Question. old shows pp. 77. and lua shows p. 77. - Is this a deliberate difference? -- WOSlinker (talk) 16:38, 7 March 2013 (UTC)
::Yes; the examples use {{para|pages}} and the Lua version can autodetect singular v. multiple pages in the field.
::I am inclined to do this, but:
::Need the exact markup to update the current template
::Need to post notices at WP:VPT and Help:CS1 so if something goes bonk, our fellow editors will know what is going on.
::--— Gadget850 (Ed) talk 16:52, 7 March 2013 (UTC)
:::: See below: "#Auto-detecting singular page". -Wikid77 (talk) 23:15, 7 March 2013 (UTC)
:::There is one problem, using the "Download as PDF" option does not run LUA templates. See User talk:Dragons flight#LUA coord upgrade - missing from PDF output. for issue with LUA coord template. I've have just tested with LUA cite and get same issue. -- WOSlinker (talk) 19:26, 7 March 2013 (UTC)
{{tracked|45861}}
::::Well that's a bitch. Bugzilla-ho! Dragons flight (talk) 20:07, 7 March 2013 (UTC)
:::::I've disabled the request until we hear back from the developers about the pdf issue. Judging from bugzilla:45861, that might not be too long. Please activate it again when everything is ready. Also, Gadget850's suggestion of posting at WP:VPT and Help:CS1 before we make the update seems eminently sensible. Best — Mr. Stradivarius ♪ talk ♪ 02:44, 9 March 2013 (UTC)
In the discussion of bugzilla:45861 there is a request from the Foundation that we hold off on migrating citations for a week to give them the chance to address that bug. That seems reasonable to me, and they seem to be allocating real time and resources to making Lua compatible with PDF export, which is a good thing. So, I'd suggest we hold off to give them a chance to fix that before we make all the references disappear from the PDFs. Beyond that, I'm willing to help oversee making the protected edits to make the change over. Generally, what I would be looking for is a test page showing several before and after examples for each major template class being updated, as well as notes identifying any intentional changes. Wikipedia:CS1/test_basics and Wikipedia:CS1/test_problems seems like a start on that, but focuses mostly on cite web, and it would be nice to have a clearer list noting intentional changes (perhaps there is a general list somewhere else?). Assuming there is agreement on waiting for the PDF issue, I don't see any reason that we can't go ahead and prepare before and after examples now. Dragons flight (talk) 18:29, 11 March 2013 (UTC)
Book without title
{{cite compare|mode=book|first=Ben |last=Witherington III|pages=12–20
|comment = Different treatment of missing title. | no-tracking = true}}
I found this little gem in the wild, a book with no title. It appears as though the cite was being used in the reference list like an {{tl|sfn}}, so that a more complete citation appeared elsewhere in the references. I'm half-tempted to say that a book with no title should actually be considered an error (i.e. with an error message / error cat ). Dragons flight (talk) 18:44, 12 March 2013 (UTC)
:Fixed to match, though I would still think this ought to be an error. Dragons flight (talk) 00:13, 17 March 2013 (UTC)
publication-date missing
{{ cite compare|mode=book |last=White |first=T.H. |authorlink=T. H. White |title=The Book of Merlyn |date=1941 |publication-date=1977 |publisher= University of Texas Press |comment=publication-date missing}}
--— Gadget850 (Ed) talk 21:09, 13 March 2013 (UTC)
:Fixed. Dragons flight (talk) 01:50, 14 March 2013 (UTC)
If publication-date but not date, then publication-date should be used as date:
{{ cite compare|mode=book |last=White |first=T.H. |authorlink=T. H. White |title=The Book of Merlyn |publication-date=1977 |publisher= University of Texas Press |ref=harv}}
And it should be applied to the anchor as well. --— Gadget850 (Ed) talk 13:15, 14 March 2013 (UTC)
:I made this change. Dragons flight (talk) 15:29, 14 March 2013 (UTC)
::The date is not being applied to the anchor. And it should extract the year only if a full date is used. We in the process of making this fix to the regular templates.
:::{{code|
I think this should work now, though you might want to try some other examples to be sure. Dragons flight (talk) 17:20, 14 March 2013 (UTC)
Some years not being included in the anchor is now fixed
I see that the issue with some years not being included in the anchor is now fixed with the Lua versions. This occurred when a year only was included in {{para|date}}
{{ cite compare | mode=news | date=916 | title=Mahdia founded |last=El Fatimi |ref=harv}}
In the old version the anchor is CITEREFEl_Fatimi
and in the Lua it is properly CITEREFEl_Fatimi916
. --— Gadget850 (Ed) talk 13:02, 14 March 2013 (UTC)
Need to do more testing to see how the date parameter handles various forms. --— Gadget850 (Ed) talk 13:02, 14 March 2013 (UTC)
:And now it is broken. The anchor for both is now CITEREFEl_Fatimi
. FYI: I use a script to see these errors: User:Ucucha/HarvErrors.js. --— Gadget850 (Ed) talk 20:45, 18 March 2013 (UTC)
:Should be better now. Silly three-digit years. Dragons flight (talk) 22:28, 18 March 2013 (UTC)
::More better. --— Gadget850 (Ed) talk 22:31, 18 March 2013 (UTC)