Template talk:Harvard citations
From Wikipedia, the free encyclopedia
Contents |
[edit] question
A feature which I would like to have is the following:
- text: This phenomenon was shown in the seminal oeuvre of Paul Example
- with seminal oeuvre linking to the reference: {{citation | first=Paul | last=Example | title=...}}
i.e. no parentheses around the name, no year, and wikilinking any word I'd like to point to the given reference (in the latter case something which internally looks like {{harvardxyz|Paul Example|seminal oeuvre}}.
If several references with this author are given, then a year specification could be shown, but otherwise I personally prefer not to see it.
Is this feasible right now? Thanks! Jakob.scholbach 20:59, 23 September 2007 (UTC)
- It would be rather a mess to fit this into the harvs template, but it is easy to do it directly without templates: just use [[#CITEREFExample1999|seminal oeuvre]].R.e.b. 21:13, 24 September 2007 (UTC)
[edit] bug
[edit] bug
(the first three nodes are copied from the other talk page)
There is a slight bug, namely sometimes the template produces an erroneous space between the author and the year. For example
- {{harvard citations|txt=yes|first=W.V.O.|last=Quine|author1-link=Willard Van Orman Quine|year=1960|year2=1967}}
yields
- W.V.O. Quine (1960, 1967)
note the two spaces (one too much) between Quine and the year. Can somebody with admin rights (or whatever is needed) fix this, please? It looks pretty odd. Thanks. Actually, also between 1960 and 1967 there is too much space. Jakob.scholbach (talk) 17:15, 9 February 2008 (UTC)
- Sure it's not your browser? Looks fine to me (single space between author and (year), and single space between (year1, year2). Aside from that, this template is {{harvard citation}}, and you're using {{harvard citations}} (plural). Might be quicker and better to take the comment over there, if it's still a problem. Carre (talk) 13:48, 10 February 2008 (UTC)
-
- OK, I will go there. Jakob.scholbach (talk) 09:06, 11 February 2008 (UTC)
The problem persists. Actually, I'm now using a Firefox browser, and here the layout is also bad: between Quine and the first parenthesis there is no space. This is not a problem of the browser's rendering spaces etc. - the source code of the page does not have a space at the indicated spot. (Source code reads
<a href="/wiki/Willard_Van_Orman_Quine" title="Willard Van Orman Quine">W.V.O. Quine</a> (<a href="#CITEREFQuine1960" title="">1960</a>, <a href="#CITEREFQuine1967" title="">1967</a>)</cite>
I always thought (and still think) that the output of the PHP files should be browser-independent? What do others see? Jakob.scholbach (talk) 09:14, 11 February 2008 (UTC)
- This is a screen shot of what I see: Image:Citations.PNG - like I say, no real problem there. Odd. Carre (talk) 18:48, 11 February 2008 (UTC)
-
- OK, let's forget about it. Jakob.scholbach (talk) 12:41, 13 February 2008 (UTC)
I also see this bug, using Firefox 2. For example, in Triangulated category, I placed the citation:
- {{Harvard citations|last1 = Dold|last2 = Puppe|year = 1961|txt = yes}}
which rendered as:
- Dold and Puppe (1961)
and produced the actual code
- <cite class="inline">Dold & Puppe (<a href="#CITEREFDoldPuppe1961" title="">1961</a>)</cite>.
To my eyes, the rendering contains an extra-large space between "Dold & Puppe" and (1961), rather like:
- Dold & Puppe (1961).
Going by the code, it looks like the only thing that could have done this is the <cite class="inline"> tag. I have no idea how this thing works; does it, perhaps, recognize the parentheses (as the class might indicate) and put a space there? If so, it ought to be changed; it's ugly. Ryan Reich (talk) 22:50, 12 April 2008 (UTC)
- It would have been nice if this were to have gotten a response from the author. As it turns out, I took a look at Template:Harvard citations/core and found that this long space is because the template is coded with a   (an en space), which is of course an extra-long space. If no one comes forward to defend this within a week or so, I will change it. Ryan Reich (talk) 21:30, 3 May 2008 (UTC)
- Fixed it. Ryan Reich (talk) 17:20, 17 May 2008 (UTC)
[edit] A very bad bug in this template; should the template be deleted?
In Beauville–Laszlo theorem, it says
- It was proved by Arnaud Beauville & Yves Laszlo (1995).
So I was going to change the ampersand to the word "and". But this template causes the ampersand to appear, not just in the list of references, but in the sentence in the article. Probably I will replace this template in the article with something else. Michael Hardy (talk) 22:13, 12 April 2008 (UTC)
- ... and now I've put a "cleanup" tag on Beauville–Laszlo theorem and explained at talk:Beauville–Laszlo theorem that it's because the article uses this template that it needs to be cleaned up. Can anyone suggest an alternative that doesn't have the horrible bug? Michael Hardy (talk) 22:18, 12 April 2008 (UTC)
This bug is indeed extremely ugly. Since this template looks like the only Harvard citation template (other than the totally inadequate {{Harvard citation}}), it is important that it work properly. Could someone with expertise in hacking templates please arrange this one so that it formats a list of authors in the usual style, i.e.:
- {{Harvard citations|last1=Beilinson|last2=Bernstein|last3=Deligne|year=1982|txt=yes}}
should read:
- Beilinson, Bernstein, and Deligne (1982).
No quarter will be given concerning the presence of a second comma in this list :). Note also the spacing issue raised in the previous heading. Ryan Reich (talk) 22:54, 12 April 2008 (UTC)
- I agree with the commas. Michael Hardy (talk) 04:58, 13 April 2008 (UTC)
[edit] More ugly formatting
In addition to the ugly formatting above, we have some defective forms even without txt=yes. Consider the following citation:
- {{Harvard citations|last=Griess|year=1983|loc=p. 91}}
which produces
- (Griess 1983, p. 91)
or
- (Griess 1983 p. 91).
Note the lack of any kind of punctuation. I also see a double space, like
- (Griess 1983 p. 91)
though it is clearly some kind of formatting illusion, since it cuts-and-pastes as a single space (and then that single space displays as a double space after being pasted! Mysterious). My complaint concerns the punctuation. Compare this with the way Template:Harvard citation works: see their "recommended style" section; the upshot is that
- {{Harvard citation|Griess|1983|loc=p. 91}}
would format like
- (Griess 1983, p. 91),
looks like
- (Griess 1983, p. 91).
Again, Template:Harvard citation is not a substitute for this one, because it only handles very simple citations. Please, someone who knows this template should fix it. Ryan Reich (talk) 05:18, 18 April 2008 (UTC)