Module talk:Citation/CS1: Difference between revisions

Content deleted Content added
Gadget850 (talk | contribs)
OCLC: new section
 
Line 1:
#Redirect [[Help talk:Citation Style 1]]
== Minor bug in position of period ==
 
{{Rcat shell|
Note the position of the "." after "(PDF)" in {{tl|cite web}} but before it in {{tl|cite web/lua}}:
{{R from remote talk page}}
* {{cite web|url=http://www.ny.com/articles/chinatown.html|title=The History of New York's Chinatown|format=PDF|publisher=Mediabridge Infosystems, Inc.|accessdate=2011-03-05|year=2013}}
{{R from subpage}}
* {{cite web/lua|url=http://www.ny.com/articles/chinatown.html|title=The History of New York's Chinatown|format=PDF|publisher=Mediabridge Infosystems, Inc.|accessdate=2011-03-05|year=2013}}
 
(Also note that the ''publisher'' is being duplicated as of [https://en.wikipedia.org/w/index.php?title=Module%3ACitation%2FCS1&diff=539076715&oldid=539048261 this diff] I think)
<font color="red">—&#91;</font>[[User:AlanM1|<span style="font-variant:small-caps;"><font color="green">Alan</font><font color="blue">M</font><font color="purple">1</font></span>]]([[User talk:AlanM1|talk]])<font color="red">&#93;—</font> 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}. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 21:01, 19 February 2013 (UTC)
 
== Discrepancy in position of page number ==
 
Page parameter has moved:
 
* {{cite web|url=http://index.xinhua08.com/dqszs/bgxz/201107/P020110708322385591732.pdf|title=Xinhua-Dow Jones International Financial Centers Development Index (2011) |page=11 |publisher=CFC Holding Company, Ltd., Index Center and CME Group Index services LLC (Dow Jones Indexes)|date=July 8, 2011|accessdate=2013-02-04}}
* {{cite web/lua|url=http://index.xinhua08.com/dqszs/bgxz/201107/P020110708322385591732.pdf|title=Xinhua-Dow Jones International Financial Centers Development Index (2011) |page=11 |publisher=CFC Holding Company, Ltd., Index Center and CME Group Index services LLC (Dow Jones Indexes)|date=July 8, 2011|accessdate=2013-02-04}}
<font color="red">—&#91;</font>[[User:AlanM1|<span style="font-variant:small-caps;"><font color="green">Alan</font><font color="blue">M</font><font color="purple">1</font></span>]]([[User talk:AlanM1|talk]])<font color="red">&#93;—</font> 19:29, 19 February 2013 (UTC)
* '''Shifted page after date:''' Thanks again for testing the {cite_web/lua} format. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 21:01, 19 February 2013 (UTC)
 
== Missing period after work parameter ==
 
This demonstrates a missing period after the ''work'' parameter:
* {{cite web| title = Statue of Liberty| work=World Heritage| publisher=© UNESCO World Heritage Centre 1992–2011| url = http://whc.unesco.org/en/list/307| accessdate =2011-10-23}}
* {{cite web/lua| title = Statue of Liberty| work=World Heritage| publisher=© UNESCO World Heritage Centre 1992–2011| url = http://whc.unesco.org/en/list/307| accessdate =2011-10-23}}
 
(''publisher'' is wrapped in parens and dup'd, too, but this may be a temporary thing)
<font color="red">—&#91;</font>[[User:AlanM1|<span style="font-variant:small-caps;"><font color="green">Alan</font><font color="blue">M</font><font color="purple">1</font></span>]]([[User talk:AlanM1|talk]])<font color="red">&#93;—</font> 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. -[[User:Wikid77|Wikid77]] ([[User talk:Wikid77|talk]]) 21:01, 19 February 2013 (UTC)
 
==Extra . before publisher==
*<code><nowiki>{{cite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
|publisher=Example publisher
|accessdate=6 July 2005
}}</nowiki></code>
:{{cite web
|url=http://www.example.org/
|title=My Favorite Things, Part II
|publisher=Example publisher
|accessdate=6 July 2005
}}
:{{cite web/lua
|url=http://www.example.org/
|title=My Favorite Things, Part II
|publisher=Example publisher
|accessdate=6 July 2005
}}
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:34, 19 February 2013 (UTC)
 
==Square brackets not quite in right places==
*<code><nowiki>{{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
}}</nowiki></code>
:{{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
}}
:{{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
}}
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:34, 19 February 2013 (UTC)
 
==Format and language transposed==
*<code><nowiki>{{cite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
|date=30 April 2005
|format=PDF
|accessdate=6 July 2005
|language=Greek
}}</nowiki></code>
:{{cite web
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
|date=30 April 2005
|format=PDF
|accessdate=6 July 2005
|language=Greek
}}
:{{cite web/lua
|url=http://www.incb.org/pdf/e/list/green.pdf
|title=List of psychotropic substances under international control
|date=30 April 2005
|format=PDF
|accessdate=6 July 2005
|language=Greek
}}
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:34, 19 February 2013 (UTC)
 
==Wrong link when archiveurl specified and deadurl=no==
*<code><nowiki>{{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
}}</nowiki></code>
:{{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
}}
:{{Cite web/lua
|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
}}
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:34, 19 February 2013 (UTC)
 
==No warning if archiveurl specified and archivedate is not==
*<code><nowiki>{{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 |deadurl=no
}}</nowiki></code>
:{{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 |deadurl=no
}}
:{{Cite web/lua
|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 | deadurl=no
}}
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:34, 19 February 2013 (UTC)
 
== 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. --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 20:00, 20 February 2013 (UTC)
 
== No printonly URL ==
 
First difference I've spotted is {{t1|Cite web}} has a <nowiki><span class="printonly"></nowiki> tag for urls but this is not included in {{t1|Cite web/lua}}. (Copied from [[Template talk:Citation/core]])
 
Compare
*<nowiki>{{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}}</nowiki>
*Result: {{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}}
*<nowiki>{{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}}</nowiki>
*Result: {{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}}
 
no normal visible difference but the html sources are considerable different
 
<nowiki><span class="citation web"><a rel="nofollow" class="external text" href="http://mha.nic.in/docs/BM_Intro(E).doc">"Ministry of Home Affairs (Department of Border Management)"</a> (DOC)<span class="printonly">. <a rel="nofollow" class="external free" href="http://mha.nic.in/docs/BM_Intro(E).doc">http://mha.nic.in/docs/BM_Intro(E).doc</a></span><span class="reference-accessdate">. Retrieved 1 September 2008</span>.</span>.</nowiki>
 
<nowiki><span class="citation web"><a rel="nofollow" class="external text" href="http://mha.nic.in/docs/BM_Intro(E).doc">"Ministry of Home Affairs (Department of Border Management)"</a> (DOC). Retrieved 1 September 2008.</span><span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_id=http%3A%2F%2Fmha.nic.in%2Fdocs%2FBM_Intro%28E%29.doc&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A&amp;rft.genre=book&amp;rft.btitle=Ministry+of+Home+Affairs+%28Department+of+Border+Management%29&amp;rfr_id=info:sid/en.wikipedia.org:User:Salix alba/sandbox" style="display: none;">&#160;</span>.</nowiki>
The latter has the CoiNS but no printonly.--[[User:Salix alba|Salix]] ([[User talk:Salix alba|talk]]): 20:07, 20 February 2013 (UTC)
 
:Is that really needed? When I try a print preview in both Firefox & IE, the current cite web version shows the URL twice. With the lua version, it only shows the URL once. Does it need to be shown twice for the printed version? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:19, 20 February 2013 (UTC)
 
== reference-accessdate class ==
 
The access date should be wrapped in {{tag|span|params=class="reference-accessdate"}} allowing readers to hide the access date as desired.
 
 
{{markup
|<nowiki>{{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}}</nowiki>
 
|{{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}}
 
{{code|{{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}}}}
 
 
|<nowiki>{{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}}</nowiki>
 
|{{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}}
 
{{code|{{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}}}}
}}
 
--'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 20:26, 20 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.
:<nowiki>{{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}}.</nowiki>
:{{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. —[[User:David Eppstein|David Eppstein]] ([[User talk:David Eppstein|talk]]) 21:13, 20 February 2013 (UTC)
 
== OCLC ==
 
The OCLC identifier link needs be updated from [[Online Computer Library Center]] to [[OCLC]] to reflect their name change. --'''''—&nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup> 21:21, 20 February 2013 (UTC)