Module talk:Citation/CS1

This is an old revision of this page, as edited by Gadget850 (talk | contribs) at 20:26, 20 February 2013 (reference-accessdate class: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 12 years ago by Gadget850 in topic reference-accessdate class

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)Reply

Discrepancy in position of page number

Page parameter has moved:

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

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)Reply

  • 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)Reply

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)Reply

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)
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)

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

Format and language transposed

  • {{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 }}
"List of psychotropic substances under international control" (PDF) (in Greek). 30 April 2005. Retrieved 6 July 2005.
"List of psychotropic substances under international control" (PDF) (in Greek). 30 April 2005. Retrieved 6 July 2005.

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

  • {{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)Reply

No warning if archiveurl specified and archivedate is not

  • {{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 }}
"London, United Kingdom Forecast : Weather Underground (weather and elevation at Heathrow Airport)". The Weather Underground, Inc. {{cite web}}: |archive-url= requires |archive-date= (help); 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. {{cite web}}: |archive-url= requires |archive-date= (help); Invalid |ref=harv (help); Unknown parameter |deadurl= ignored (|url-status= suggested) (help)

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

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)Reply

No printonly URL

First difference I've spotted is {{Cite web}} has a <span class="printonly"> tag for urls but this is not included in {{Cite web/lua}}. (Copied from Template talk:Citation/core)

Compare

no normal visible difference but the html sources are considerable different

<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>.

<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&rft_id=http%3A%2F%2Fmha.nic.in%2Fdocs%2FBM_Intro%28E%29.doc&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A&rft.genre=book&rft.btitle=Ministry+of+Home+Affairs+%28Department+of+Border+Management%29&rfr_id=info:sid/en.wikipedia.org:User:Salix alba/sandbox" style="display: none;"> </span>. The latter has the CoiNS but no printonly.--Salix (talk): 20:07, 20 February 2013 (UTC)Reply

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? -- WOSlinker (talk) 20:19, 20 February 2013 (UTC)Reply

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-0000001F-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" 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-00000023-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" class="Z3988"></span>

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