Jump to content

Module talk:Citation/CS1/Archive 1

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 04:59, 14 March 2013 (archive more). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Archive 1Archive 2Archive 3Archive 5

Minor bug in position of period

Note the position of the "." after "(PDF)" in {{cite web}} but before it in {{cite web/lua}}:

  • "The History of New York's Chinatown" (PDF). Mediabridge Infosystems, Inc. 2013. Retrieved 2011-03-05.
  • "The History of New York's Chinatown" (PDF). Mediabridge Infosystems, Inc. 2013. Retrieved 2011-03-05.

(Also note that the publisher is being duplicated as of this diff I think) —[AlanM1(talk)]— 19:19, 19 February 2013 (UTC)

  • Fixed dot & duplicate publisher: Thank you for testing the {cite_web/lua} format, which uses a completely different method of joining parameters, compared to {cite_web}. -Wikid77 (talk) 21:01, 19 February 2013 (UTC)

Discrepancy in position of page number

Page parameter has moved:

—[AlanM1(talk)]— 19:29, 19 February 2013 (UTC)

Missing period after work parameter

This demonstrates a missing period after the work parameter:

  • "Statue of Liberty". World Heritage. © UNESCO World Heritage Centre 1992–2011. Retrieved 2011-10-23.
  • "Statue of Liberty". World Heritage. © UNESCO World Heritage Centre 1992–2011. Retrieved 2011-10-23.

(publisher is wrapped in parens and dup'd, too, but this may be a temporary thing) —[AlanM1(talk)]— 19:37, 19 February 2013 (UTC)

  • Parentheses are for journal format: The {cite_web/lua} adds parentheses around "(publisher)" when it thinks the cite is for a journal (as variable "Periodical"), so that has caused the confusion. -Wikid77 (talk) 21:01, 19 February 2013 (UTC)

Extra . before publisher

  • {{cite web |url=http://www.example.org/ |title=My Favorite Things, Part II |publisher=Example publisher |accessdate=6 July 2005 }}
"My Favorite Things, Part II". Example publisher. Retrieved 6 July 2005.
"My Favorite Things, Part II". Example publisher. Retrieved 6 July 2005.

-- WOSlinker (talk) 22:34, 19 February 2013 (UTC)


  • {{Cite web |url=http://www.wunderground.com/global/stations/03772.html |title=London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport) |publisher=The Weather Underground, Inc. |ref=harv | archiveurl=http://www.webcitation.org/5yo0HaAk7 |archivedate=19 May 2011| deadurl=no }}
"London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport)". The Weather Underground, Inc. Archived from the original on 19 May 2011. {{cite web}}: Invalid |ref=harv (help); Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
"London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport)". The Weather Underground, Inc. Archived from the original on 19 May 2011. {{cite web}}: Invalid |ref=harv (help); Unknown parameter |deadurl= ignored (|url-status= suggested) (help)

-- WOSlinker (talk) 22:34, 19 February 2013 (UTC)

reference-accessdate class

The access date should be wrapped in <span class="reference-accessdate">...</span> allowing readers to hide the access date as desired.


Markup Renders as
{{cite web|title=Ministry of Home Affairs (Department of Border Management)|url=http://mha.nic.in/docs/BM_Intro(E).doc|format=DOC|accessdate=1 September 2008}}

"Ministry of Home Affairs (Department of Border Management)" (DOC). Retrieved 1 September 2008.

'"`UNIQ--templatestyles-00000011-QINU`"'<cite class="citation web cs1">[http://mha.nic.in/docs/BM_Intro(E).doc "Ministry of Home Affairs (Department of Border Management)"] <span class="cs1-format">(DOC)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">1 September</span> 2008</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Ministry+of+Home+Affairs+%28Department+of+Border+Management%29&rft_id=http%3A%2F%2Fmha.nic.in%2Fdocs%2FBM_Intro%28E%29.doc&rfr_id=info%3Asid%2Fen.wikipedia.org%3AModule+talk%3ACitation%2FCS1%2FArchive+1" class="Z3988"></span>

{{cite web/lua|title=Ministry of Home Affairs (Department of Border Management)|url=http://mha.nic.in/docs/BM_Intro(E).doc|format=DOC|accessdate=1 September 2008}}

"Ministry of Home Affairs (Department of Border Management)" (DOC). Retrieved 1 September 2008.

'"`UNIQ--templatestyles-00000015-QINU`"'<cite class="citation web cs1">[http://mha.nic.in/docs/BM_Intro(E).doc "Ministry of Home Affairs (Department of Border Management)"] <span class="cs1-format">(DOC)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">1 September</span> 2008</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Ministry+of+Home+Affairs+%28Department+of+Border+Management%29&rft_id=http%3A%2F%2Fmha.nic.in%2Fdocs%2FBM_Intro%28E%29.doc&rfr_id=info%3Asid%2Fen.wikipedia.org%3AModule+talk%3ACitation%2FCS1%2FArchive+1" class="Z3988"></span>

--— Gadget850 (Ed) talk 20:26, 20 February 2013 (UTC)

OCLC

The OCLC identifier link needs be updated from Online Computer Library Center to OCLC to reflect their name change. --— Gadget850 (Ed) talk 21:21, 20 February 2013 (UTC)

COinS formatting

It appears that the COinS data being presently generated is invalid due to overencoding.

{{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}}
Doe, J.B. (1 December 2012). "Mein Artikel". In Tor, Edie (ed.). AEIOU Encyclopaedia (in German). Vol. IV (2012 ed.). Vienna: BMBWK, Austria. p. 77. doi:10.DOI_number. ISBN 1234567890. OCLC Oclc 45. Retrieved 7 March 2013. This is a direct quote {{cite encyclopedia}}: Check |doi= value (help); Check |isbn= value: checksum (help); Check |oclc= value (help); Cite has empty unknown parameter: |month= (help); Invalid |ref=harv (help); Unknown parameter |trans_title= ignored (|trans-title= suggested) (help)

The hidden COinS data in the final span renders to HTML as (with some breaks add for line spacing):

<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_id=info%3Adoi%2F%31%30.DOI_number&rft_id=info%3Aoclcnum%2FOclc+%34%35&rft.aulast=Doe&rft.isbn= %31%32%33%34%35%36%37%38%39%30&rft.place=Vienna&rft.volume=IV&rft_id=http%3A%2F%2Faustria-forum.org%2Faf%2FAEIOU&rft.atitle=&rft.genre=bookitem&rft.edition= %32%30%31%32&rft.au=Doe%2C+J.B.&rft.aufirst= J.B.&rft.pub=BMBWK%2C+Austria&rft.date=%31+December+%32%30%31%32&rft.pages= %37%37&rft.jtitle=AEIOU+Encyclopaedia&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.btitle=Mein+Artikel&rfr_id= info:sid/en.wikipedia.org:Special:ExpandTemplates" style="display: none;"> </span>

This is a change from the format generated by the {{COinS}} template, which looks like:

<span class="Z3988" title="ctx_ver=Z39.88-2004&rft_id=info%3Adoi%2F%31%30.DOI_number&rft_id=info%3Aoclcnum%2FOclc+%34%35&rft.aulast=Doe&rft.isbn= %31%32%33%34%35%36%37%38%39%30&rft.place=Vienna&rft.volume=IV&rft_id=http%3A%2F%2Faustria-forum.org%2Faf%2FAEIOU&rft.atitle=&rft.genre=bookitem&rft.edition= %32%30%31%32&rft.au=Doe%2C+J.B.&rft.aufirst= J.B.&rft.pub=BMBWK%2C+Austria&rft.date=%31+December+%32%30%31%32&rft.pages= %37%37&rft.jtitle=AEIOU+Encyclopaedia&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.btitle=Mein+Artikel&rfr_id= info:sid/en.wikipedia.org:Special:ExpandTemplates"><span style="display: none;"> </span></span>

 

Even I'm inclined to believe this looks like a trivial change, but it is enough to break the Chrome based COinS to OpenURL interpreter that I used as a testing agent. It doesn't work correctly if the COinS span is styled as "display: none". I don't know if other COinS clients are more tolerant, but it seems like using the same styling as the {{COinS}} template probably makes sense. Dragons flight (talk) 23:21, 11 March 2013 (UTC)

I went ahead and changed this to use the same kind of extra empty span as the {{COinS}} template. Dragons flight (talk) 00:05, 12 March 2013 (UTC)
The empty span is required to keep HTML Tidy from stripping out the COinS data.[1] --— Gadget850 (Ed) talk 00:58, 12 March 2013 (UTC)

Location in cite web

Cite web comparison
Wikitext {{cite web|accessdate=12 February 2011|date=9 December 2010|first=Andrea|last=Magrath|location=UK|title=Better get to the wig store! Emma Watson and Harry Potter co-stars to re-shoot crucial final Deathly Hallows scenes|url=http://www.dailymail.co.uk/tvshowbiz/article-1336829/Emma-Watson-Daniel-Radcliffe-shoot-Harry-Potter-Deathly-Hallows-final-scenes.html|work=Daily Mail}}
Live Magrath, Andrea (9 December 2010). "Better get to the wig store! Emma Watson and Harry Potter co-stars to re-shoot crucial final Deathly Hallows scenes". Daily Mail. UK. Retrieved 12 February 2011.
Sandbox Magrath, Andrea (9 December 2010). "Better get to the wig store! Emma Watson and Harry Potter co-stars to re-shoot crucial final Deathly Hallows scenes". Daily Mail. UK. Retrieved 12 February 2011.
Location tag ignore in Lua

It appears that the Lua version of cite web ignore the location field. Incidentally, if the user chose cite_news (a more logical choice) rather than cite_web, the location field would have been handled correctly, but we can't really count on users being logical. Example taken from a reference actually in use. Dragons flight (talk) 15:35, 12 March 2013 (UTC)

Possible improvement: remove extra quotes from the quote field

Cite web comparison
Wikitext {{cite web|accessdate=22 June 2012|publisher=Columbia Electronic Encyclopedia|quote="During the 1920s and early 30s pacifism enjoyed an upsurge"|title=Pacifism in the Twentieth Century|url=http://www.infoplease.com/ce6/society/A0860192.html|work="pacifism"}}
Live "Pacifism in the Twentieth Century". "pacifism". Columbia Electronic Encyclopedia. Retrieved 22 June 2012. During the 1920s and early 30s pacifism enjoyed an upsurge
Sandbox "Pacifism in the Twentieth Century". "pacifism". Columbia Electronic Encyclopedia. Retrieved 22 June 2012. During the 1920s and early 30s pacifism enjoyed an upsurge
It might be nice to detect and remove the extra set of quotation marks

Sometimes users wrap the quote= field in an unnecessary set of quotation marks. It might be nice to automatically detect and correct for this situation. Dragons flight (talk) 16:03, 12 March 2013 (UTC)

I went ahead and implemented this improvement. Dragons flight (talk) 03:47, 13 March 2013 (UTC)
I agree that seems an intuitive option, and I cannot imagine any significant confusion, compared to new users typically setting quote="xx yy" as a logical format. -Wikid77 10:13, 13 March 2013 (UTC)

Lost location tag in cite encyclopedia / editor label

Cite encyclopedia comparison
Wikitext {{cite encyclopedia|editor=James Hastings|encyclopedia=Encyclopaedia of Religion and Ethics|first=A. A.|last=Bevan|location=London|title=Manichaeism|volume=8|year=1930}}
Live Bevan, A. A. (1930). "Manichaeism". In James Hastings (ed.). Encyclopaedia of Religion and Ethics. Vol. 8. London.{{cite encyclopedia}}: CS1 maint: location missing publisher (link)
Sandbox Bevan, A. A. (1930). "Manichaeism". In James Hastings (ed.). Encyclopaedia of Religion and Ethics. Vol. 8. London.{{cite encyclopedia}}: CS1 maint: location missing publisher (link)
Lost location tag in Lua, both version do a poor job with "editor"

The Lua version drops the location information. In addition, both the old and the new citation give a somewhat strange treatment to the "editor" label. I assume the goal is to say that it is in the encyclopedia that James Hastings edited, but the placement of the label "In" before his name looks weird. Dragons flight (talk) 17:49, 12 March 2013 (UTC)

The "In" is deliberate and mostly in line with APA; see Purdue OWL under "Article or Chapter in an Edited Book". --— Gadget850 (Ed) talk 12:33, 13 March 2013 (UTC)

Blank parameters creates extra periods

Cite book comparison
Wikitext {{cite book|author=Magnus A.|authorlink=Albertus Magnus|chapter=Book II, Chapter 6; p 87 and Book VI, Chapter 7; p 345|title=De vegetabilibus|year=1256}}
Live Magnus A. (1256). "Book II, Chapter 6; p 87 and Book VI, Chapter 7; p 345". De vegetabilibus.
Sandbox Magnus A. (1256). "Book II, Chapter 6; p 87 and Book VI, Chapter 7; p 345". De vegetabilibus.
Extra period in Lua

Here the location and publisher fields are included but blank. This results in an extra period in Lua. Dragons flight (talk) 12:34, 13 March 2013 (UTC)

Fixed. Dragons flight (talk) 01:58, 14 March 2013 (UTC)