Jump to content

Module talk:Citation/CS1/Archive 5

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Archive 1Archive 3Archive 4Archive 5Archive 6Archive 7Archive 10

Automated regression testing

I set up Module talk:Citation/CS1/testcases to automatically compare {{cite encyclopedia}} and {{cite news}} values generated from both the live module and its sandbox. As people make improvements to the sandbox, please check the testcases page to make sure nothing is breaking. We should extend this as we go. Dragons flight (talk) 23:30, 20 March 2013 (UTC)

Bibcode Colon, and the separators following various IDs

Omit the colon in "Bibcode:Bibcode" data: For option "bibcode=" there is a spurious colon added in the Lua version (during last year?). Other than that, I think the {cite_journal} users will be happy to have 6x faster cites in the medical/science articles. See: Pneumonia, Cancer, Cystic fibrosis:

  • Run: {{#invoke:CiteConversionTest|test|Cancer}}

Most journal cites look almost identical in format with the Lua version. Like an echo. Like an echo. Everything else seems good to go. I think many scientists will not even notice the Lua version is formatting the {cite_journal} data. -Wikid77 (talk) 07:46, 21 March 2013 (UTC)

I'm not actually sure it is accidental. If you look at the separators following the Lua identifiers, we see that:
arXiv, Bibcode, and doi use colon (":")
ASIN, ISBN, ISSN, JFM, JSTOR, LCCN, MR, OCLC, OSTI, PMC, PMID, RFC, SSRN, and Zbl use space (" ")
I could easily believe that someone wanted to use space after all of the uppercase ones and ":" after all the mixed case ones, but somehow missed Zbl.
The only difference between Lua and the older templates right now is that Bibcode was moved from using a space to using a colon.
So, we have several possible options.
  1. We could leave the configuration as is.
  2. We could revert Bibcode to use space, matching the current templates, but leaving doi and arXiv as the odd ducks.
  3. We could convert Zbl to use ":", so all mixed case IDs use colon and all uppercase IDs use space.
  4. We could convert all of them to use ":" as a separator.
  5. We could convert all of them to use space as a separator.
Personally, I think the choice of separators here is pretty unimportant, and none of these options would bother me, but if people have strong feelings one way or the other, it might be good to share. Dragons flight (talk) 19:04, 21 March 2013 (UTC)
I am also ambivalent. The stand-alone {{Bibcode}} uses a colon. --— Gadget850 (Ed) talk 23:15, 21 March 2013 (UTC)

Placement of editor in cite journal

For {{cite journal}} it appears the current convention is "author, editor, title, journal", i.e.:

Cite journal comparison
Wikitext {{cite journal|author=Ford, Bob|editor=Brown, Jane|title=My Article|work=The Journal of Stuff}}
Live Ford, Bob. Brown, Jane (ed.). "My Article". The Journal of Stuff.
Sandbox Ford, Bob. Brown, Jane (ed.). "My Article". The Journal of Stuff.

While for book chapters in {{cite book}} we use "author, chapter, editor, title", i.e.:

Cite book comparison
Wikitext {{cite book|author=Ford, Bob|chapter=My Article|editor=Brown, Jane|title=The Book of Stuff}}
Live Ford, Bob. "My Article". In Brown, Jane (ed.). The Book of Stuff.
Sandbox Ford, Bob. "My Article". In Brown, Jane (ed.). The Book of Stuff.

The latter feels much more natural to me since it places the editor name in closer association with the composite work. Is this something we should consider changing? As an aside, though academic journals routinely have editors, it seems a little weird to include their names in the citation at all. Editors are not generally included in referencing academic works, as far as I know, though I have seen some examples of people apparently doing this with their citations. Dragons flight (talk) 18:16, 21 March 2013 (UTC)

I prefer this the book style. You do seem to be making the resumption that journal is only for academic journals. Per the documentation: "for articles in magazines and journals and for academic papers." --— Gadget850 (Ed) talk 18:45, 21 March 2013 (UTC)
Could you be slightly clearer about which "this" you prefer? Dragons flight (talk) 18:48, 21 March 2013 (UTC)
P.S. Also, I meant specifically that it seemed weird to have editor's names on citations to academic papers, which is where I recall seeing it. For example, I saw a citation to Physical Review D with both author and editor fields and thought that very odd. Dragons flight (talk) 19:13, 21 March 2013 (UTC)
I would like to see a legitimate use case of having both an author and an editor on a journal paper before forming an opinion on what style is preferable. It certainly should not be listing someone just for being the editor of the journal in question. —David Eppstein (talk) 20:24, 21 March 2013 (UTC)

Journal with editor examples

Here are some in the actual use examples where both author and editor was given to cite journal. Some of these citations are admittedly a little weird. Dragons flight (talk) 21:32, 21 March 2013 (UTC)

Cite journal comparison
Wikitext {{cite journal|authorlink=Leonard Mandel|doi=10.1016/S0079-6638(08)70018-0|editor=E. Wolf|first=L.|isbn=978-0-444-10806-7|journal=[[Progress in Optics]]|last=Mandel|pages=27–69|publisher=[[North-Holland]]|series=Progress in Optics|title=The case for and against semiclassical radiation theory|volume=13|year=1976}}
Live Mandel, L. (1976). E. Wolf (ed.). "The case for and against semiclassical radiation theory". Progress in Optics. Progress in Optics. 13. North-Holland: 27–69. doi:10.1016/S0079-6638(08)70018-0. ISBN 978-0-444-10806-7.
Sandbox Mandel, L. (1976). E. Wolf (ed.). "The case for and against semiclassical radiation theory". Progress in Optics. Progress in Optics. 13. North-Holland: 27–69. doi:10.1016/S0079-6638(08)70018-0. ISBN 978-0-444-10806-7.
Cite journal comparison
Wikitext {{cite journal|author=Torfs R, Int Panis L, De Nocker L, Vermoote S|editors=Peter Bickel and Rainer Friedrich|journal=EUR 21951 EN - Extern E -|pages=229–237|publisher=European Commission Publications Office, Luxembourg|title=Externalities of Energy Methodology 2005 Update Other impacts: ecosystems and biodiversity|year=2004}}
Live Torfs R, Int Panis L, De Nocker L, Vermoote S (2004). "Externalities of Energy Methodology 2005 Update Other impacts: ecosystems and biodiversity". EUR 21951 EN - Extern E -. European Commission Publications Office, Luxembourg: 229–237. {{cite journal}}: Unknown parameter |editors= ignored (|editor= suggested) (help)CS1 maint: multiple names: authors list (link)
Sandbox Torfs R, Int Panis L, De Nocker L, Vermoote S (2004). "Externalities of Energy Methodology 2005 Update Other impacts: ecosystems and biodiversity". EUR 21951 EN - Extern E -. European Commission Publications Office, Luxembourg: 229–237. {{cite journal}}: Unknown parameter |editors= ignored (|editor= suggested) (help)CS1 maint: multiple names: authors list (link)
Cite journal comparison
Wikitext {{cite journal|accessdate=2012-08-11|editor=Anne Mackay|first=Ralph|journal=ASCS 32 Selected Proceedings|last=Covino|publisher=Australasian Society for Classical Studies|url=http://www.ascs.org.au/news/ascs32/Covino.pdf|year=2011}}
Live Covino, Ralph (2011). Anne Mackay (ed.). ASCS 32 Selected Proceedings. Australasian Society for Classical Studies http://www.ascs.org.au/news/ascs32/Covino.pdf. Retrieved 2012-08-11. {{cite journal}}: Missing or empty |title= (help)
Sandbox Covino, Ralph (2011). Anne Mackay (ed.). ASCS 32 Selected Proceedings. Australasian Society for Classical Studies http://www.ascs.org.au/news/ascs32/Covino.pdf. Retrieved 2012-08-11. {{cite journal}}: Missing or empty |title= (help)
Cite journal comparison
Wikitext {{cite journal|author=Humphrey, Jay D.|bibcode=2003RSPSA.459....3H|doi=10.1098/rspa.2002.1060|editor=The Royal Society|issue=2029|journal=Proceedings of the Royal Society of London A|pages=3–46|title=Continuum biomechanics of soft biological tissues|url=http://rspa.royalsocietypublishing.org/content/459/2029/3.full.pdf|volume=459|year=2003}}
Live Humphrey, Jay D. (2003). The Royal Society (ed.). "Continuum biomechanics of soft biological tissues" (PDF). Proceedings of the Royal Society of London A. 459 (2029): 3–46. Bibcode:2003RSPSA.459....3H. doi:10.1098/rspa.2002.1060.
Sandbox Humphrey, Jay D. (2003). The Royal Society (ed.). "Continuum biomechanics of soft biological tissues" (PDF). Proceedings of the Royal Society of London A. 459 (2029): 3–46. Bibcode:2003RSPSA.459....3H. doi:10.1098/rspa.2002.1060.
Cite journal comparison
Wikitext {{cite journal|author=Geoff A. Boxhall, Danielle Defaye|chapter=Global diversity of copepods (Crustacea: Copepoda) in freshwater|doi=10.1007/s10750-007-9014-4|editor=E. V. Balian, C. Lévêque, H. Segers & K. Martens|issue=1|journal=[[Hydrobiologia]]|pages=195–207|title=Freshwater Animal Diversity Assessment|volume=595|year=2008}}
Live Geoff A. Boxhall, Danielle Defaye (2008). E. V. Balian, C. Lévêque, H. Segers & K. Martens (ed.). "Freshwater Animal Diversity Assessment". Hydrobiologia. 595 (1): 195–207. doi:10.1007/s10750-007-9014-4. {{cite journal}}: |chapter= ignored (help)CS1 maint: multiple names: editors list (link)
Sandbox Geoff A. Boxhall, Danielle Defaye (2008). E. V. Balian, C. Lévêque, H. Segers & K. Martens (ed.). "Freshwater Animal Diversity Assessment". Hydrobiologia. 595 (1): 195–207. doi:10.1007/s10750-007-9014-4. {{cite journal}}: |chapter= ignored (help)CS1 maint: multiple names: editors list (link)
Cite journal comparison
Wikitext {{cite journal|author=Tin-Yam Chan|chapter=Annotated checklist of the world's marine lobsters (Crustacea: Decapoda: Astacidea, Glypheidea, Achelata, Polychelida)|editor=Martyn E. Y. Low and S. H. Tan|format=[[Portable Document Format|PDF]]|journal=[[Zootaxa]]|pages=153–181|title=Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world|url=http://rmbr.nus.edu.sg/rbz/biblio/s23/s23rbz153-181.pdf|volume=Suppl. 23|year=2010}}
Live Tin-Yam Chan (2010). Martyn E. Y. Low and S. H. Tan (ed.). "Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world" (PDF). Zootaxa. Suppl. 23: 153–181. {{cite journal}}: |chapter= ignored (help)
Sandbox Tin-Yam Chan (2010). Martyn E. Y. Low and S. H. Tan (ed.). "Annotated checklist of anomuran decapod crustaceans of the world (exclusive of the Kiwaoidea and families Chirostylidae and Galatheidae of the Galatheoidea) and marine lobsters of the world" (PDF). Zootaxa. Suppl. 23: 153–181. {{cite journal}}: |chapter= ignored (help)
Cite journal comparison
Wikitext {{cite journal|author=Zhi-Qiang Zhang|chapter=Phylum Arthropoda von Siebold, 1848|editor=Z.-Q. Zhang|format=[[Portable Document Format|PDF]]|journal=[[Zootaxa]]|pages=99–103|title=Animal biodiversity: an outline of higher-level classification and survey of taxonomic richness|url=http://www.mapress.com/zootaxa/2011/f/zt03148p103.pdf|volume=4138|year=2011}}
Live Zhi-Qiang Zhang (2011). Z.-Q. Zhang (ed.). "Animal biodiversity: an outline of higher-level classification and survey of taxonomic richness" (PDF). Zootaxa. 4138: 99–103. {{cite journal}}: |chapter= ignored (help)
Sandbox Zhi-Qiang Zhang (2011). Z.-Q. Zhang (ed.). "Animal biodiversity: an outline of higher-level classification and survey of taxonomic richness" (PDF). Zootaxa. 4138: 99–103. {{cite journal}}: |chapter= ignored (help)
There's a reason I qualified my request for use cases by asking for "legitimate" use cases. The first four do not look legitimate to me.
  • Mandel — the editor is just the regular journal editor and should not be listed (even though the publisher's bibtex data lists the editor).
  • Torfs — is a technical report, not a journal article.
  • Covina – Is a conference proceedings in a book series, not a journal article.
  • Humphrey – really is a journal paper, but "The Royal Society" is its publisher, not its editor.
  • Boxhall – probably legitimate. This is a paper in a special issue of the journal (with title and editors for the special issue). The parameter usage is a little funky (the paper title has been moved to "chapter" so that the special issue title can go in "title"), and as a result the formatting is not really right (the paper title is in italics rather than double quotes). There should be a better way than this to handle this case; maybe cite journal could allow a booktitle parameter?
  • Chan – probably also legitimate but I didn't track down the official journal page to be sure. The Lua cite differs in not boldfacing the long volume name "Suppl. 23"; I think this is an improvement.
  • Zhang – again an article in a titled special issue of a journal.
David Eppstein (talk) 21:56, 21 March 2013 (UTC)
Just because it is often a strange (or even incorrect) usage doesn't necessary mean it is good to allow inconsistent styling. If I could send all the users to citation formatting reeducation camps, then we could fix a lot of problems. However, those intractable users are damn hard to fix, so since people sometimes deploy {{cite journal}} when they really mean {{cite book}} (or do other weird things), I don't think there is any harm in moving the editor fields to make them similar across the various usages. I've done this in the version shown above. Dragons flight (talk) 16:39, 22 March 2013 (UTC)

Making all parameters case insensitive

There are currently about 25 examples where we check multiple case representations of arguments, i.e. doi= and DOI=, Author= and author=.

Would there be any downside to making all the parameters case insensitive? It can be done easily at the point we locally copy the argument table, and I expect the net effect is pretty performance neutral (a few calls to string.lower offset by removing various checks for alternate capitalization), so basically I'm asking is there any reason it would be bad if editors had the option of using whatever parameter capitalization they wanted? I seems like allowing title=, Title=, and TITLE=, etc. to function the same is probably okay (and might help newbies) even if that's not how templates generally work. It would certainly help clean up some of the code by allowing us remove the various capitalization checks. Dragons flight (talk) 02:57, 22 March 2013 (UTC)

This seems reasonable to me. BibTeX is not case sensitive in its corresponding parameter names, and that doesn't seem to cause any problems. Some external software might need to be updated (e.g. I have code I use to convert back and forth between Wikipedia citations and BibTeX that is currently case-sensitive on the Wikipedia side) but the update would be very easy. —David Eppstein (talk) 04:14, 22 March 2013 (UTC)
  • Avoid vast divergence from 23 {cite_*} forks and markup templates: We need to beware any changes which radically differ from the 23 older {cite_*} forks. For example, allowing capital-letter "Title=xx" in {cite_journal} would encourage use of a parameter spelling which would be insidiously ignored in the older fork templates, to cause confusion in new users unaware of the transition status of the various {cite_*} fork templates. Also, we would complicate the comparisons of parameters between the Lua versions and the old markup-based templates which would ignore many uppercase parameter names. Beyond those problems, there would be endless confusion with alternate citation templates, such as Template:Vcite or any other templates which currently expect lowercase "title=" and ignore the capital "Title=" form. Let's just try to focus on getting the other major cite templates, {cite_journal} and {cite_web} and {cite_book}, transitioned to use Lua, and discuss numerous tangent issues next month. Too much speculation about other features leads to the paralysis of analysis which causes a 9-day transition to Lua-based cites to drag into 6 weeks/months of numerous delays. -Wikid77 (talk) 05:29, 22 March 2013 (UTC)
Changing the capitalisation rules would widely affect bots. We'd diverge further from other cite templates and those related to them. As Wikid77 says mid-transition is not a good point. I think overall it would lead to more problems. Rjwilmsi 09:08, 22 March 2013 (UTC)
The documentation explicitly states to use lower case, and the upper case aliases and the one misspelling alias have never been documented. The defacto site standard for parameters is lower case. --— Gadget850 (Ed) talk 12:47, 22 March 2013 (UTC)
Okay, we can table this, if people think it will be too much of a problem. For the record, I did add a check for URL=, which seems to be the most frequent variant in actual use among cases we haven't been checking (probably because it is an acronym and we allow most other acronyms to be all uppercase). Dragons flight (talk) 15:12, 22 March 2013 (UTC)

Pages with DOIs inactive since

This page is in this category. Shouldnt it just be for main space? Christian75 (talk) 19:20, 22 March 2013 (UTC)

Right. {{Citation/identifier}} does a namespace check and uses the category only for articles. --— Gadget850 (Ed) talk 19:31, 22 March 2013 (UTC)
Okay, but why only main space? References can also appear occasionally on file descriptions, Wikipedia pages, and other places. It's not obvious why only using the category for main space is the right idea. If the only problem one is worried about is documentation pages and ones like this one where the error is being displayed intentionally, then those can be removed from the category by adding nocat=true to the citation that generates the error. Dragons flight (talk) 20:00, 22 March 2013 (UTC)
PS. I managed to block the track cats in enough places to disable that category for this page. Dragons flight (talk) 20:22, 22 March 2013 (UTC)
Point. {{Broken ref}} controls the cite error messages and categorizes only main (article), template, category, help and file pages. --— Gadget850 (Ed) talk 20:25, 22 March 2013 (UTC)

Cite journal test cases

I've prepared a set of {{cite journal}} testcases at Module talk:Citation/CS1/test/journal. If there are no complaints, or other issues, I'd propose to migrate this later today. Dragons flight (talk) 19:30, 22 March 2013 (UTC)

Looks good to me. --— Gadget850 (Ed) talk 20:04, 22 March 2013 (UTC)

{{cite journal}} is now installed as Lua. Dragons flight (talk) 01:17, 23 March 2013 (UTC)

Automated archiving

I've just set up automated archiving of this talk page, with a delay of seven days. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:09, 22 March 2013 (UTC)

Display parameters

Issues with lastauthoramp and author-separator:

Cite book comparison
Wikitext {{cite book|author-mask=3|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|title=title|year=year}}
Live ———; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox ———; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Cite book comparison
Wikitext {{cite book|author-name-separator=%|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |author-name-separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |author-name-separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Cite book comparison
Wikitext {{cite book|author-separator=%|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |author-separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |author-separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Cite book comparison
Wikitext {{cite book|display-authors=1|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|title=title|year=year}}
Live last, first; et al. (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; et al. (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Cite journal comparison
Wikitext {{cite journal|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|lastauthoramp=yes|location=location|publisher=publisher|sandbox=true|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). "title". location: publisher. {{cite journal}}: Check date values in: |year= (help); Cite journal requires |journal= (help); Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). "title". location: publisher. {{cite journal}}: Check date values in: |year= (help); Cite journal requires |journal= (help); Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
lastauthoramp is never used with "et al."
Cite journal comparison
Wikitext {{cite journal|first2=first2|first3=first3|first4=first4|first5=first5|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last=last|lastauthoramp=yes|location=location|publisher=publisher|sandbox=true|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5 (year). "title". location: publisher. {{cite journal}}: Check date values in: |year= (help); Cite journal requires |journal= (help); Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5 (year). "title". location: publisher. {{cite journal}}: Check date values in: |year= (help); Cite journal requires |journal= (help); Unknown parameter |lastauthoramp= ignored (|name-list-style= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
lastauthoramp is supported in sandbox
Cite book comparison
Wikitext {{cite book|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|postscript=%|publisher=publisher|sandbox=true|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher% {{cite book}}: Check date values in: |year= (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher% {{cite book}}: Check date values in: |year= (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Cite book comparison
Wikitext {{cite book|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|sandbox=true|separator=%|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |sandbox= ignored (help); Unknown parameter |separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |sandbox= ignored (help); Unknown parameter |separator= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
separator is applied to author-separator

--— Gadget850 (Ed) talk 18:22, 24 March 2013 (UTC)

I edited your examples, "lastauthoramp" has been added to the sandbox version of CS1. However, you should note that it is never used if "et al." is present. This the same behavior as the current templates. Dragons flight (talk) 18:54, 24 March 2013 (UTC)
I think the separator issue is also fixed. Dragons flight (talk) 19:03, 24 March 2013 (UTC)


Please check lastauthoramp in the cases where there are both authors and editors (e.g. a chapter in an edited book). If lastauthoramp=yes, "et al." appearing in the authors, for example, should not suppress the & in the editors, or vice versa. Peter coxhead (talk) 21:37, 24 March 2013 (UTC)


authormask alias not supported:

Cite book comparison
Wikitext {{cite book|authormask=3|first2=first2|first3=first3|first4=first4|first5=first5|first6=first6|first7=first7|first8=first8|first9=first9|first=first|last2=last2|last3=last3|last4=last4|last5=last5|last6=last6|last7=last7|last8=last8|last9=last9|last=last|location=location|publisher=publisher|sandbox=true|title=title|year=year}}
Live last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |authormask= ignored (|author-mask= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)
Sandbox last, first; last2, first2; last3, first3; last4, first4; last5, first5; last6, first6; last7, first7; last8, first8; last9, first9 (year). title. location: publisher. {{cite book}}: Check date values in: |year= (help); Unknown parameter |authormask= ignored (|author-mask= suggested) (help); Unknown parameter |sandbox= ignored (help)CS1 maint: numeric names: authors list (link) CS1 maint: year (link)

--— Gadget850 (Ed) talk 12:52, 25 March 2013 (UTC)

Fixed in sandbox. Dragons flight (talk) 15:00, 25 March 2013 (UTC)

 Fixed --  Gadget850 (Ed) talk 13:24, 2 April 2013 (UTC)

accessdate with no url

Cite book comparison
Wikitext {{cite book|accessdate=26 February 2013|first=Rosamund|last=Watson|location=New York, New York|pages=24–25|publisher=John Lane Company|sandbox=true|title=The poems of Rosamund Marriott Watson|year=1912}}
Live Watson, Rosamund (1912). The poems of Rosamund Marriott Watson. New York, New York: John Lane Company. pp. 24–25. {{cite book}}: |access-date= requires |url= (help); Unknown parameter |sandbox= ignored (help)
Sandbox Watson, Rosamund (1912). The poems of Rosamund Marriott Watson. New York, New York: John Lane Company. pp. 24–25. {{cite book}}: |access-date= requires |url= (help); Unknown parameter |sandbox= ignored (help)
The accessdate parameter used to be ignored when a book didn't have a url.
Cite news comparison
Wikitext {{cite news|accessdate=26 February 2013|date=14 June 1998|first=Rosamund|last=Watson|pages=24–25|sandbox=true|title=The poems of Rosamund Marriott Watson|work=The New York Times}}
Live Watson, Rosamund (14 June 1998). "The poems of Rosamund Marriott Watson". The New York Times. pp. 24–25. {{cite news}}: |access-date= requires |url= (help); Unknown parameter |sandbox= ignored (help)
Sandbox Watson, Rosamund (14 June 1998). "The poems of Rosamund Marriott Watson". The New York Times. pp. 24–25. {{cite news}}: |access-date= requires |url= (help); Unknown parameter |sandbox= ignored (help)
The accessdate parameter used to be ignored when a book didn't have a url.

Apparently, it has been the case with the old templates that accessdate is stripped if no URL is specified. Specifically, the documentation says that accessdate is the date that the URL was accessed, and with that understanding it makes sense not to use the field if no URL is given. I can update this to match, but before I do, I wanted to ask whether it might be worth preserving. I could see that accessdate might occasionally help resolve ambiguities regarding version / edition / printing of various printed works even though they tend to update far less often than internet. On the other hand, if a full citation is given (including information such as edition) then there is really no utility to saying when a book was accessed. Do people think this is worthwhile to preserve or not? If not, then I would probably add error tracking for accessdates with no URL specified. Dragons flight (talk) 15:20, 25 March 2013 (UTC)

We have parameters version, origyear and edition. accessdate is only for web pages with content that changes. Thus, maintain the original suppression. --— Gadget850 (Ed) talk 15:37, 25 March 2013 (UTC)
Okay, this has been removed in the sandbox and the tracking category Category:Pages using citations with accessdate and no URL has been added. Dragons flight (talk) 17:21, 25 March 2013 (UTC)

 Fixed --  Gadget850 (Ed) talk 13:26, 2 April 2013 (UTC)

Format but no URL

Cite journal comparison
Wikitext {{cite journal|author=Author|format=Format|journal=Journal|sandbox=true|title=Article|type=Type}}
Live Author. "Article". Journal (Type). {{cite journal}}: |author= has generic name (help); |format= requires |url= (help); Unknown parameter |sandbox= ignored (help)
Sandbox Author. "Article". Journal (Type). {{cite journal}}: |author= has generic name (help); |format= requires |url= (help); Unknown parameter |sandbox= ignored (help)
Format specified but no URL
Cite journal comparison
Wikitext {{cite journal|author=Author|format=Format|journal=Journal|sandbox=true|title=Article|type=Type|url=http://example.org}}
Live Author. "Article" (Format). Journal (Type). {{cite journal}}: |author= has generic name (help); Unknown parameter |sandbox= ignored (help)
Sandbox Author. "Article" (Format). Journal (Type). {{cite journal}}: |author= has generic name (help); Unknown parameter |sandbox= ignored (help)
Format specified with URL

Per spec (e.g. WP:CS1), format= is supposed to indicate the file "[f]ormat of the document at its URL (e.g., PDF, xls, etc.)" and not be used for other purposes "such as 'fee required' or 'reprint'". With that understanding, including format= with no URL doesn't make much sense. That said, the historical templates seem to all display format= next to the article title whether or not a URL is specified. Hence, as used, format= might include other kinds of information (including roles generally assigned to type=), even though this is not its documented purpose. The Lua version currently gives malformed output if format= is specified without a URL.

So, if no URL is specified, should we:

  1. Remove the format= value, based on the spec?
  2. Preserve the historical template behavior, on the understanding that format= has probably been abused in the wild?

Dragons flight (talk) 15:44, 25 March 2013 (UTC)

I will pick #2. --— Gadget850 (Ed) talk 16:09, 25 March 2013 (UTC)
That's my preference too. Dragons flight (talk) 16:26, 25 March 2013 (UTC)
Preserve historical template behavior but emit an error message: format= used without URL=. The de facto specification should be adhered to until it is changed through consensus.
Trappist the monk (talk) 15:06, 27 March 2013 (UTC)
I've added a tracking cat, Category:Pages using citations with format and no URL, to help identify this issue. In general, I'm very reluctant to add a visible error message without having more information and a larger discussion. If there are many users using format for purposes other than that envisioned by the specification, then it may be more appropriate to change the specification rather than trying to force editors to conform. Dragons flight (talk) 17:21, 27 March 2013 (UTC)
I agree with DF here. Will expand below. --— Gadget850 (Ed) talk 17:58, 27 March 2013 (UTC)

Okay, in the sandbox I've made it so that format= attaches to the primary work if no URL is given, which is synonymous with how type= is used. If there is a URL then format= follows the URL link. Dragons flight (talk) 00:41, 26 March 2013 (UTC)

but see, when |series= is defined:

Markup Renders as
{{cite book|author=Author|title=Book|format=Format|type=Type|series=Series}}

Author. Book (Type). Series. {{cite book}}: |author= has generic name (help); |format= requires |url= (help)

also:

Markup Renders as
{{cite book|author=Author|work=Book|format=Format|type=Type|series=Series}}

Author. (Type). Series. {{cite book}}: |author= has generic name (help); |format= requires |url= (help); |work= ignored (help); Missing or empty |title= (help)

70.19.122.39 (talk) 14:28, 27 March 2013 (UTC)

 Fixed --  Gadget850 (Ed) talk 13:27, 2 April 2013 (UTC)

Anchor not encoded

Cite journal comparison
Wikitext {{cite journal|author="Fowler's Ghost"|date=May 1962|editor-first=B.W.C|editor-last=Cooke|issue=733|magazine=[[The Railway Magazine]]|publisher=Tothill Press|ref=harv|sandbox=true|title=Railway connections at King's Cross (part one)|volume=108}}
Live "Fowler's Ghost" (May 1962). Cooke, B.W.C (ed.). "Railway connections at King's Cross (part one)". The Railway Magazine. 108 (733). Tothill Press. {{cite journal}}: Invalid |ref=harv (help); Unknown parameter |sandbox= ignored (help)
Sandbox "Fowler's Ghost" (May 1962). Cooke, B.W.C (ed.). "Railway connections at King's Cross (part one)". The Railway Magazine. 108 (733). Tothill Press. {{cite journal}}: Invalid |ref=harv (help); Unknown parameter |sandbox= ignored (help)

The old v. Lua anchors are:

  • "CITEREF.22Fowler.27s_Ghost.221962"
  • "CITEREF"Fowler's Ghost"1962"

Granted, this particular example is odd in the use of quotes, but it shows that the anchor is not encoded. {{Citation/core}} uses anchorencode:.

Here we have a similar problem with a rational use:

Cite book comparison
Wikitext {{cite book|first=Cioma|last=Schönhaus|publisher=Grant Books|ref=harv|sandbox=true|title=The Forger|year=2004}}
Live Schönhaus, Cioma (2004). The Forger. Grant Books. {{cite book}}: Invalid |ref=harv (help); Unknown parameter |sandbox= ignored (help)
Sandbox Schönhaus, Cioma (2004). The Forger. Grant Books. {{cite book}}: Invalid |ref=harv (help); Unknown parameter |sandbox= ignored (help)

The old v. Lua anchors are:

  • "CITEREFSch.C3.B6nhaus2004"
  • "CITEREFSchönhaus2004"

Templates such as {{harvnb}} would create a link CITEREFSch.C3.B6nhaus2004, so the linking no longer works. --— Gadget850 (Ed) talk 02:44, 27 March 2013 (UTC)

Does that look correct? Dragons flight (talk) 04:49, 27 March 2013 (UTC)
More better. Thanks. --— Gadget850 (Ed) talk 12:42, 27 March 2013 (UTC)
  • Seems fixed so try encoded harv link on various browsers: The generated HTML looks correct, now, and here is a Lua-only {cite_book/lua} with ref=harv but internal year=1994b:    {{cite_book/lua|last=Schönhausauch |first=Andere |last2=Nürnberger |first2=Fritz |title=The Forger Forged |publisher=Enwiki |date=1 June 1994 |year=1994b |ref=harv }}
    After clicking a related {harvnb} author/year link, then any browser should scroll back to the Lua citation directly above. Now, the following is a related wikilink of those 2 authors and year "1994b" as {{harvnb|Schönhausauch|Nürnberger|1994b}}, to that citation, to click here: Schönhausauch & Nürnberger 1994b. Any browser should scroll back to the Schönhausauch/Nürnberger citation above. The umlaut letters 'ö' and 'ü' are encoded so that the anchor id matches to the wikilink. In various checks of numerous live articles, I have not found any other broken author/year links, so the problem has been rare. -Wikid77 (talk) 13:03, 27 March 2013 (UTC)
I use a script that shows harv anchors when there is no corresponding link, so this is pretty obvious. The anchors are now properly encoded. --— Gadget850 (Ed) talk 20:26, 27 March 2013 (UTC)

 Fixed --  Gadget850 (Ed) talk 13:45, 2 April 2013 (UTC)