Jump to content

Template talk:Harvard citation text: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Jbzdarkid (talk | contribs)
Line 42: Line 42:
:::::::Yes, I would very much support the addition of a parenthesis position option to these templates over the creation of a fork. — [[User:Scott Martin|'''<span style="color:#000">Scott</span>''']] <span style="color:#900">•</span> [[User talk:Scott Martin|''<span style="color:#000">talk</span>'']] 17:16, 6 November 2013 (UTC)
:::::::Yes, I would very much support the addition of a parenthesis position option to these templates over the creation of a fork. — [[User:Scott Martin|'''<span style="color:#000">Scott</span>''']] <span style="color:#900">•</span> [[User talk:Scott Martin|''<span style="color:#000">talk</span>'']] 17:16, 6 November 2013 (UTC)
There's a bit of confusion in the above, because it was on [[Template talk:Harvcoltxt]], but now that it's in the right place I agree that we need a way to produce "[[Example|Smith (2005)]], p. 25" and "[[Example|Smith (2005)]]", so that articles using {{tlx|sfnp}} can format other references consistently. That would be by using {{para|BracketYearRight}} instead of {{para|BracketRight}}. We probably need to also keep the existing behaviour for "[[Example|Smith (2005]], p. 25)", but there seems to be no need for "[[Example|Smith (2005]])". [[User talk:Kanguole|Kanguole]] 12:25, 17 January 2014 (UTC)
There's a bit of confusion in the above, because it was on [[Template talk:Harvcoltxt]], but now that it's in the right place I agree that we need a way to produce "[[Example|Smith (2005)]], p. 25" and "[[Example|Smith (2005)]]", so that articles using {{tlx|sfnp}} can format other references consistently. That would be by using {{para|BracketYearRight}} instead of {{para|BracketRight}}. We probably need to also keep the existing behaviour for "[[Example|Smith (2005]], p. 25)", but there seems to be no need for "[[Example|Smith (2005]])". [[User talk:Kanguole|Kanguole]] 12:25, 17 January 2014 (UTC)
:This still seems to be an issue, if nobody is working on resolving it I will start sandboxing. [[User:Jbzdarkid|Jbzdarkid]] ([[User talk:Jbzdarkid|talk]]) 15:00, 15 September 2014 (UTC)


== Template name ==
== Template name ==

Revision as of 15:00, 15 September 2014

Core update

Given the commonality in markup for the author-date templates, I have developed a meta-template at {{Harvard citation/core}}. See Template talk:Sfn#Core update. ---— Gadget850 (Ed) talk 01:40, 9 April 2012 (UTC)[reply]

 Done ---— Gadget850 (Ed) talk 16:46, 28 April 2012 (UTC)[reply]

Shouldn't a nobreak be wrapped around these citations?

Just as NBSP's are needed before spaced dashes to prevent a false bullet from being created, style guides suggest that NBSP's be placed before years in citations. Likewise, shouldn't there be a {{nobreak}} buried within this template? —TedPavlic (talk/contrib/@) 17:32, 4 May 2012 (UTC)[reply]

Unbalanced parentheses

The expansion of {{Harvtxt|Einstein|1915}} makes the open paren part of the hyperlink, but the close paren not part of the hyperlink :(

I guess this is intentional when there's a page number, but when there's not a page number, it's just weird.

Jruderman (talk) 08:56, 14 July 2012 (UTC)[reply]

This is basically the same problem as was described at Template talk:Harvcoltxt#Mismatched brackets. --Redrose64 (talk) 15:56, 14 July 2012 (UTC)[reply]

Even when there is a page number, this would look much better to have the link either include the page number (and the closing paren) or exclude the year (and the opening paren). Thus, either "Smith (2005, p. 25)" or "Smith (2005, p. 25)". —Toby Bartels (talk) 10:05, 13 October 2013 (UTC)[reply]

information Note: The following discussion was moved from Template talk:Harvcoltxt#Mismatched brackets. — Scott talk 11:09, 8 November 2013 (UTC)[reply]

Yes, I was hoping to produce some output that exactly matches {{sfnp}}, as in "Smith (2005), p.25" or just "Smith (2005)", but at present that doesn't seem to be possible. Could we get this added as an option somehow? — Scott talk 09:38, 10 May 2013 (UTC)[reply]

What do you want to do with the colon and the page number? Keep in mind that some editors put a link in the page number. --  Gadget850 talk 23:26, 10 May 2013 (UTC)[reply]
Well, a call to sfnp:
{{sfnp|Best|Strange|1992|p=123}}
is equivalent to:
&lt;ref&gt;[[#CITEREFBestStrange1992|Best & Strange (1992)]], p.123.&lt;/ref&gt;
Yes? I'd like to be able to produce the same thing, but not as a <ref>...</ref> - author and year linked, but not page number. For example of where I'd use it, have a look at The Hardy Boys#Notes, where the citations mentioned by name ("See Keeline 1983") in the footnotes don't match the style of the citations section below.
Perhaps what I need is not a modification to this template, but another addition to the family of citation templates based around core? Or do you know of an existing one that already does this? Thanks for your help, by the way. — Scott talk 13:35, 11 May 2013 (UTC)[reply]
Anybody? — Scott talk 23:25, 5 November 2013 (UTC)[reply]
Please see my response below. --Redrose64 (talk) 11:03, 6 November 2013 (UTC)[reply]
Sorry, but that seems to be a different conversation. I was asking about a method to produce the following:
Best & Strange (1992), p.123.
I'm not interested in discussing GA review standards or whether it's a good thing to have half-linked parenthesis pairs. Maybe the easiest thing for me to do is just to make a new citation template based on core. — Scott talk 12:28, 6 November 2013 (UTC)[reply]
This is the talk page for {{harvcoltxt}}, which has the page number preceded by a colon. You appear to be thinking of {{harvtxt}}, where the page number is preceded by "p. " - but I understand why you are here: you probably read my comment at Template talk:harvtxt#Unbalanced parentheses.
However, if I am reading your request correctly, the principle is the same as the discussion below: you both wish the closing parenthesis moved from its current position after the page number to a position before the page number and after the year, and so bring it inside the author/year link. There is no need to have yet another {{harv}} fork, since if there is agreement, we can either provide {{harvtxt}} and {{harvcoltxt}} with parameters which dictate the position of the closing parenthesis, or we could alter the templates outright. --Redrose64 (talk) 15:00, 6 November 2013 (UTC)[reply]
Oh! I'm sorry; yes, I understand what you're saying. To be honest with you, I don't recall exactly how I got to this talk page; as you can see my original question was posted six months ago. It could well be that I meant to ask this at the talk page for {{harvtxt}} but got mixed up as to what I was looking at.
Yes, I would very much support the addition of a parenthesis position option to these templates over the creation of a fork. — Scott talk 17:16, 6 November 2013 (UTC)[reply]

There's a bit of confusion in the above, because it was on Template talk:Harvcoltxt, but now that it's in the right place I agree that we need a way to produce "Smith (2005), p. 25" and "Smith (2005)", so that articles using {{sfnp}} can format other references consistently. That would be by using |BracketYearRight= instead of |BracketRight=. We probably need to also keep the existing behaviour for "Smith (2005, p. 25)", but there seems to be no need for "Smith (2005)". Kanguole 12:25, 17 January 2014 (UTC)[reply]

This still seems to be an issue, if nobody is working on resolving it I will start sandboxing. Jbzdarkid (talk) 15:00, 15 September 2014 (UTC)[reply]

Template name

{{Harvtxt}} is a redirect to {{Harvard citation text}}, but the other citation templates ({{Harvcol}}, {{Harvcoltxt}}, etc.) have the short form as actual template name. I reckon we should reverse the redirect direction here for consistency. — Scott talk 11:12, 8 November 2013 (UTC)[reply]

{{Harvtxt}} is not the only exception.
but
So if anything, the majority suggests that a move in the other direction might be more appropriate. --Redrose64 (talk) 20:01, 8 November 2013 (UTC)[reply]