Jump to content

Module talk:Citation/CS1/Archive 2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dragons flight (talk | contribs) at 16:56, 22 March 2013 (create archive). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Placement of volume + issue + year

Cite journal comparison
Wikitext {{cite journal|accessdate=August 5, 2007|issue=11|journal=Hamilton Amateur Astronomers|title=Asian Astronomy 101|url=http://amateurastronomy.org/EH/Oct97.txt|volume=4|year=1997}}
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)
Cite encyclopedia comparison
Wikitext {{cite encyclopedia|accessdate=27 December 2007|archivedate=31 October 2009|archiveurl=http://www.webcitation.org/5kwbxqnne|deadurl=yes|last=Microsoft Encarta Online Encyclopaedia 2007|title=Europe|url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html}}
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
Cite web comparison
Wikitext {{cite web|accessdate=27 December 2007|archivedate=31 October 2009|archiveurl=http://www.webcitation.org/5kwbxqnne|deadurl=yes|last=Microsoft Encarta Online Encyclopaedia 2007|title=Europe|url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html}}
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)
Cite encyclopedia comparison
Wikitext {{cite encyclopedia|accessdate=27 December 2007|archivedate=31 October 2009|archiveurl=http://www.webcitation.org/5kwbxqnne|deadurl=yes|encyclopedia=Microsoft Encarta Online Encyclopaedia 2007|title=Europe|url=http://encarta.msn.com/encyclopaedia_761570768/Europe.html}}
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

Cite journal comparison
Wikitext {{cite journal|author1=Wang, X|author2=Andrews, L|author3=Riedel, S|author4=Kaupp, M|doi=10.1002/anie.200703710|first1=X|first2=L|first3=S|first4=M|issue=44|journal=Angewandte Chemie International Edition|last1=Wang|last2=Andrews|last3=Riedel|last4=Kaupp|page=8371|pages=8371–5|pmid=17899620|publisher=Wiley-VCH|title=Mercury Is a Transition Metal: The First Experimental Evidence for HgF4|volume=46|year=2007}}
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

Cite web comparison
Wikitext {{cite web|accessdate=July 5, 2010|date=November 21, 2008|first=Grzegorz|last=Czajkowski|publisher=Google, Inc.|title=Sorting 1PB with MapReduce|url=http://googleblog.blogspot.com/2008/11/sorting-1pb-with-mapreduce.html}}
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

Cite news comparison
Wikitext {{cite news|date=January 5, 2009|first=Sarah|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|work=Bloomberg L.P.}}
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)

Fixing brackets in titles

Cite web comparison
Wikitext {{cite web|accessdate=10 February 2009|author=Graham Charlton|date=10 February 2009|publisher=Econsultancy|title=Q&A: Ian Grant of Encyclopædia Britannica UK [interview]|url=http://econsultancy.com/blog/3268-q-a-ian-grant-of-encyclopaedia-britannica-uk}}
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)

format tag out of position

Cite book comparison
Wikitext {{cite book|accessdate=28 April 2011|author=Stern, N.|contribution=6.2 What existing models calculate and include|format=PDF|pages=147–148|publisher=HM Treasury website|series=Stern Review Report on the Economics of Climate Change (pre-publication edition)|title=6 Economic modelling of climate-change impacts|url=http://www.hm-treasury.gov.uk/d/Chapter_6_Economic_modelling_of_climate-change_impacts.pdf|year=2006}}
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

Cite web comparison
Wikitext {{cite web|accessdate=15 January 2011|publisher=UN|title=Table A.17|url=http://www.un.org/esa/population/publications/wpp2006/WPP2006_Highlights_rev.pdf|work=United Nations World Population Prospects, ''2006 revision''}}
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

Cite web comparison
Wikitext {{cite web|accessdate=21 May 2008|archivedate=28 September 2007|archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm|month=May|publisher=IUCN Species Survival Commission Hyaenidae Specialist Group|title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)|url=http://www.hyaena.ge/striped.htm}}
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)
Okay, I see what you mean. I'll leave this alone then. Dragons flight (talk) 17:28, 14 March 2013 (UTC)
Cite web comparison
Wikitext {{cite web|accessdate=21 May 2008|archivedate=28 September 2007|archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm|month=May|publisher=IUCN Species Survival Commission Hyaenidae Specialist Group|title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)|url=http://www.hyaena.ge/striped.htm|year=2013}}
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)
Cite web comparison
Wikitext {{cite web|accessdate=21 May 2008|archivedate=28 September 2007|archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm|day=2|publisher=IUCN Species Survival Commission Hyaenidae Specialist Group|title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)|url=http://www.hyaena.ge/striped.htm}}
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
Cite web comparison
Wikitext {{cite web|accessdate=21 May 2008|archivedate=28 September 2007|archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm|day=2|month=May|publisher=IUCN Species Survival Commission Hyaenidae Specialist Group|title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)|url=http://www.hyaena.ge/striped.htm}}
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
Cite web comparison
Wikitext {{cite web|accessdate=21 May 2008|archivedate=28 September 2007|archiveurl=http://web.archive.org/web/20070928225108/http://www.hyaena.ge/striped.htm|day=2|publisher=IUCN Species Survival Commission Hyaenidae Specialist Group|title=Striped Hyaena Hyaena (Hyaena) hyaena (Linnaeus, 1758)|url=http://www.hyaena.ge/striped.htm|year=2013}}
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)