Module talk:Citation/CS1/Archive 2
This is an archive of past discussions about Module:Citation. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 | Archive 3 | Archive 4 | Archive 5 |
Placement of volume + issue + year
Wikitext | {{cite journal
|
---|---|
Live | "Asian Astronomy 101". Hamilton Amateur Astronomers. 4 (11). 1997. Retrieved August 5, 2007. |
Sandbox | "Asian Astronomy 101". Hamilton Amateur Astronomers. 4 (11). 1997. Retrieved August 5, 2007. |
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
Wikitext | {{cite encyclopedia
|
---|---|
Live | Microsoft Encarta Online Encyclopaedia 2007. Europe. Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite encyclopedia}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)CS1 maint: numeric names: authors list (link)
|
Sandbox | Microsoft Encarta Online Encyclopaedia 2007. Europe. Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite encyclopedia}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)CS1 maint: numeric names: authors list (link)
|
Strange exposed url for cite encyclopedia |
Wikitext | {{cite web
|
---|---|
Live | Microsoft Encarta Online Encyclopaedia 2007. "Europe". Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite web}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)CS1 maint: numeric names: authors list (link)
|
Sandbox | Microsoft Encarta Online Encyclopaedia 2007. "Europe". Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite web}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)CS1 maint: numeric names: authors list (link)
|
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 {{Cite encyclopedia}} handles
|title=
strangely:
|Title={{{encyclopedia|{{{title|}}}}}} |TransTitle={{{trans_chapter|}}} |TransItalic={{{trans_title|}}} |IncludedWorkTitle={{{title|{{{article|}}}}}}
- I never could get a good answer on why
|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)
Wikitext | {{cite encyclopedia
|
---|---|
Live | "Europe". Microsoft Encarta Online Encyclopaedia 2007. Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite encyclopedia}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
|
Sandbox | "Europe". Microsoft Encarta Online Encyclopaedia 2007. Archived from the original on 31 October 2009. Retrieved 27 December 2007. {{cite encyclopedia}} : Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
|
- Fixed. Dragons flight (talk) 00:29, 17 March 2013 (UTC)
Both page and pages
Wikitext | {{cite journal
|
---|---|
Live | Wang, X; Andrews, L; Riedel, S; Kaupp, M (2007). "Mercury Is a Transition Metal: The First Experimental Evidence for HgF4". Angewandte Chemie International Edition. 46 (44). Wiley-VCH: 8371. doi:10.1002/anie.200703710. PMID 17899620. {{cite journal}} : More than one of |author1= and |last1= specified (help); More than one of |author2= and |last2= specified (help); More than one of |author3= and |last3= specified (help); More than one of |author4= and |last4= specified (help); More than one of |pages= and |page= specified (help)
|
Sandbox | Wang, X; Andrews, L; Riedel, S; Kaupp, M (2007). "Mercury Is a Transition Metal: The First Experimental Evidence for HgF4". Angewandte Chemie International Edition. 46 (44). Wiley-VCH: 8371. doi:10.1002/anie.200703710. PMID 17899620. {{cite journal}} : More than one of |author1= and |last1= specified (help); More than one of |author2= and |last2= specified (help); More than one of |author3= and |last3= specified (help); More than one of |author4= and |last4= specified (help); More than one of |pages= and |page= specified (help)
|
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:
|pages=
overrides|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
Wikitext | {{cite web
|
---|---|
Live | Czajkowski, Grzegorz (November 21, 2008). "Sorting 1PB with MapReduce". Google, Inc. Retrieved July 5, 2010. |
Sandbox | Czajkowski, Grzegorz (November 21, 2008). "Sorting 1PB with MapReduce". Google, Inc. Retrieved July 5, 2010. |
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
Wikitext | {{cite news
|
---|---|
Live | Rabil, Sarah (January 5, 2009). "New York Times Starts Selling Ad Space on Front Page". Bloomberg L.P. |
Sandbox | Rabil, Sarah (January 5, 2009). "New York Times Starts Selling Ad Space on Front Page". Bloomberg L.P. |
Dots at end |
Another way to get a double dot (i.e. ".."). Dragons flight (talk) 15:04, 13 March 2013 (UTC)
- Fixed by quick check for "
.''.
" at end of string named 'text'. -Wikid77 (talk) 19:00, 14 March 2013 (UTC)
Fixing brackets in titles
Wikitext | {{cite web
|
---|---|
Live | Graham Charlton (10 February 2009). "Q&A: Ian Grant of Encyclopædia Britannica UK [interview]". Econsultancy. Retrieved 10 February 2009. |
Sandbox | Graham Charlton (10 February 2009). "Q&A: Ian Grant of Encyclopædia Britannica UK [interview]". Econsultancy. Retrieved 10 February 2009. |
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)
- 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)
format tag out of position
Wikitext | {{cite book
|
---|---|
Live | Stern, N. (2006). "6.2 What existing models calculate and include". 6 Economic modelling of climate-change impacts (PDF). Stern Review Report on the Economics of Climate Change (pre-publication edition). HM Treasury website. pp. 147–148. Retrieved 28 April 2011. |
Sandbox | Stern, N. (2006). "6.2 What existing models calculate and include". 6 Economic modelling of climate-change impacts (PDF). Stern Review Report on the Economics of Climate Change (pre-publication edition). HM Treasury website. pp. 147–148. Retrieved 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
Wikitext | {{cite web
|
---|---|
Live | "Table A.17" (PDF). United Nations World Population Prospects, 2006 revision. UN. Retrieved 15 January 2011. {{cite web}} : Italic or bold markup not allowed in: |work= (help)
|
Sandbox | "Table A.17" (PDF). United Nations World Population Prospects, 2006 revision. UN. Retrieved 15 January 2011. {{cite web}} : Italic or bold markup not allowed in: |work= (help)
|
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
Wikitext | {{cite web
|
---|---|
Live | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |month= ignored (help)
|
Sandbox | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |month= ignored (help)
|
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)
- Do you mean that month= should be ignored if year= is not present? Dragons flight (talk) 15:21, 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)
Wikitext | {{cite web
|
---|---|
Live | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. 2013. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |month= ignored (help)
|
Sandbox | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. 2013. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |month= ignored (help)
|
Wikitext | {{cite web
|
---|---|
Live | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help)
|
Sandbox | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help)
|
day alone |
Wikitext | {{cite web
|
---|---|
Live | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help); Unknown parameter |month= ignored (help)
|
Sandbox | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help); Unknown parameter |month= ignored (help)
|
month and day without year |
Wikitext | {{cite web
|
---|---|
Live | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. 2013. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help)
|
Sandbox | "Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)". IUCN Species Survival Commission Hyaenidae Specialist Group. 2013. Archived from the original on 28 September 2007. Retrieved 21 May 2008. {{cite web}} : Unknown parameter |day= ignored (help)
|
day with year |
- Please note that as presently coded (i.e. without Lua), all the citation templates (whether CS1 or CS2) categorise pages into Category:Pages containing cite templates with deprecated parameters when
|day=
is used. I have found that when the|day=
parameter does get used, it's almost always with{{cite journal}}
The documentation for that states that the parameter is deprecated, and that|date=
should be used to include the day, month and year. The documentation for|date=
mentions|year=
and|month=
but not|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 }}
- Joliet, François (30 April 2005). "Honi soit qui mal y pense" (in French). Retrieved 6 July 2005.
{{cite web}}
: Unknown parameter|trans_title=
ignored (|trans-title=
suggested) (help) - {{cite web/lua |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 }}
-- WOSlinker (talk) 22:34, 19 February 2013 (UTC)
Anchors
{{Citation}} creates an anchor by default, where Citation Style 1 template create them only when |ref=
is set. {{Citation/lua}} does not create the anchor by default. None of the Lua templates create the |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 {{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 |separator=
parameter. However, {{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 {{citation/lua}} currently adds a spurious period after the issue number of a journal paper; e.g.
- {{citation/lua | last1 = Benjamin | first1 = Arthur T. | author1-link = Arthur T. Benjamin | last2 = Orrison | first2 = M. E. | title = Two quick combinatorial proofs of <math>\scriptstyle \sum k^3 = {n+1\choose 2}^2</math> | 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}}.
- {{citation/lua | last1 = Benjamin | first1 = Arthur T. | author1-link = Arthur T. Benjamin | last2 = Orrison | first2 = M. E. | title = Two quick combinatorial proofs of <math>\scriptstyle \sum k^3 = {n+1\choose 2}^2</math> | 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: "title".
{{cite web}}
: Cite has empty unknown parameters:|booktitle=
,|args.conferenceurl=
,|chapterlink=
,|deadurl=
,|laydate=
,|subscription=
,|titlelink=
,|trans_title=
,|ASIN-TLD=
,|transcript=
,|editorformat=
,|laysource=
,|laysummary=
,|publicationdate=
,|coauthor=
,|conference=
,|editors=
,|transcripturl=
,|editormask=
,|doi_inactivedate=
,|trans_chapter=
, and|chapterurl=
(help); Missing or empty|url=
(help) - 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: [20 "title"]. 14. 24 (19). 25 (in 41). 2 (32 ed.). 33: 34 (published 7). 39. 9 [8]. p. 28. arXiv:44. ASIN 45. Bibcode:47. doi:48. ISBN 51. ISSN 52. JFM 53. JSTOR 54. LCCN 55. MR 0000056. OCLC 57. OL 58. OSTI 59. PMC 60. PMID 61. RFC 62. SSRN 63. Zbl 64. 50. Archived from [21 the original] (42) on 38. Retrieved 37 – via 36.
65
{{cite web}}
:|chapter=
ignored (help); Check|archiveurl=
value (help); Check|arxiv=
value (help); Check|asin=
value (help); Check|bibcode=
length (help); Check|doi=
value (help); Check|isbn=
value: length (help); Check|issn=
value (help); Check|jfm=
value (help); Check|lccn=
value (help); Check|ol=
value (help); Check|osti=
value (help); Check|ssrn=
value (help); Check|url=
value (help); Check|zbl=
value (help); Check date values in:|year=
,|accessdate=
,|date=
,|publicationdate=
,|archivedate=
, and|year=
/|date=
mismatch (help); More than one of|pp=
and|pages=
specified (help); More than one of|pp=
,|pages=
,|at=
, and|page=
specified (help); Unknown parameter|ASIN-TLD=
ignored (|asin-tld=
suggested) (help); Unknown parameter|args.conferenceurl=
ignored (help); Unknown parameter|booktitle=
ignored (help); Unknown parameter|chapterlink=
ignored (help); Unknown parameter|deadurl=
ignored (|url-status=
suggested) (help); Unknown parameter|laydate=
ignored (help); Unknown parameter|subscription=
ignored (|url-access=
suggested) (help); Unknown parameter|titlelink=
ignored (|title-link=
suggested) (help); Unknown parameter|trans_title=
ignored (|trans-title=
suggested) (help)CS1 maint: location (link) CS1 maint: others (link) CS1 maint: unrecognized language (link) CS1 maint: year (link) - 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.
{{citation}}, for a book that has a |series=
, a |volume=
in the series, and a publisher, orders them series, volume, publisher:
- Aharoni, Y.; Halperin, D.; Hanniel, I.; Har-Peled, S.; Linhart, C. (1999), "On-line zone construction in arrangements of lines in the plane", Proc. 3rd Int. Worksh. Algorithm Engineering (WAE '99), Lecture Notes in Computer Science, vol. 1668, Springer-Verlag, pp. 139–153, doi:10.1007/3-540-48318-7_13.
But {{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: "Drugs: Chips trader gets 15 years, 10 strokes". Daily Express. Kota Kinabalu, Malaysia. Bernama. 29 March 2007.
- As it should be: "Drugs: Chips trader gets 15 years, 10 strokes". Daily Express (Kota Kinabalu, Malaysia). Bernama. 29 March 2007.
- Another: The No author but sourced to a news agency example I referenced above, taken from the template's documentation:
- 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)
- Please provide examples of current format and how you think it should be. --— Gadget850 (Ed) talk 15:31, 15 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: "Drugs: Chips trader gets 15 years, 10 strokes". Daily Express. Kota Kinabalu, Malaysia. Bernama. 29 March 2007.
- Cite_news/lua: {{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)
- If that fixes the problem, then I'm for it.—DocWatson42 (talk) 03:39, 10 March 2013 (UTC)
Transition Phase-3: Install Cite_encyclopedia/lua
This edit request to Template:Cite_encyclopedia has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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: Doe, J.B. (1 December 2012). "Mein Artikel". In Tor, Edie (in German). AEIOU Encyclopaedia [My Article]. IV (2012 ed.). Vienna: BMBWK, Austria. pp. 77. doi:10.DOI_number. ISBN 1234567890 Parameter error in {{ISBN}}: checksum. OCLC 45 Oclc 45. http://austria-forum.org/af/AEIOU. Retrieved 7 March 2013. "This is a direct quote"
- 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
|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)
- Yes; the examples use
- 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)
- Well that's a bitch. Bugzilla-ho! Dragons flight (talk) 20:07, 7 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
Wikitext | {{cite book
|
---|---|
Live | Witherington III, Ben. pp. 12–20. {{cite book}} : Missing or empty |title= (help)
|
Sandbox | Witherington III, Ben. pp. 12–20. {{cite book}} : Missing or empty |title= (help)
|
Different treatment of missing title. |
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 {{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
Wikitext | {{cite book
|
---|---|
Live | White, T.H. (1941). The Book of Merlyn. University of Texas Press (published 1977). |
Sandbox | White, T.H. (1941). The Book of Merlyn. University of Texas Press (published 1977). |
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:
Wikitext | {{cite book
|
---|---|
Live | White, T.H. (1977). The Book of Merlyn. University of Texas Press. {{cite book}} : Invalid |ref=harv (help)
|
Sandbox | White, T.H. (1977). The Book of Merlyn. University of Texas Press. {{cite book}} : Invalid |ref=harv (help)
|
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.
{{cite book/lua |last=White |first=T.H. |authorlink=T. H. White |title=The Book of Merlyn |publication-date=1 May 1977 |publisher= University of Texas Press |comment=publication-date missing |ref=harv}}
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 |date=
Wikitext | {{cite news
|
---|---|
Live | El Fatimi (916). "Mahdia founded". {{cite news}} : Invalid |ref=harv (help)
|
Sandbox | El Fatimi (916). "Mahdia founded". {{cite news}} : Invalid |ref=harv (help)
|
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)