Template talk:Cite journal/Archive 3
From Wikipedia, the free encyclopedia
Apparent problem with authorlink= parameter
Specifying authorlink= apparenly cayses problems with handling of author=, first= and last=.
The problem currently shows up in reference #3 on Dog
I tried working around this by using |author= insted of |first= and |last=, but that does not work as expected either. It produces differing unexpected results with | author = Robert K. Wayne and with | author = Wayne, Robert K. -- Boracay Bill 02:23, 9 December 2006 (UTC)
- There's no problem with this template. On ref #3 on dog an URL is given for authorlink, which is not allowed. As the documentation says, authorlink is for internal links only. So you can only provide the name of an article, without any markup (no [..] or [[..]]). --Ligulem 16:33, 9 December 2006 (UTC)
On the 3rd line having opened the square brackets, given the autholink there then needs be inserted a pipe for the displayed text as given by first/last/author. However surely direct use of a pipe character is interpeted instead as marking the end of the #if:{{{authorlink|}}} exists section. Hence I would have thought the pipe needs be translucated via the template {{!}} rather than directly appear?
Hence:
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}} |{{#if:{{{authorlink|}}} |[[{{{authorlink}}}|{{#if:
becomes:
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}} |{{#if:{{{authorlink|}}} |[[{{{authorlink}}}{{!}}{{#if:
That said, can not the coding be simplified to a single block of last/first/author with an test before & after to add the surrounding code for authorlinkage.
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}} |{{#if:{{{authorlink|}}} |[[{{{authorlink}}}|{{#if: {{{last|}}} |{{{last}}}{{#if: {{{first|}}} |, {{{first}}} }} |{{{author}}} }}]] |{{#if:{{{last|}}} |{{{last}}}{{#if: {{{first|}}} |, {{{first}}} }} |{{{author}}} }} }} }}
could be done (I think) as :
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}} |{{#if:{{{authorlink|}}} |[[{{{authorlink}}}{{!}}}}{{#if: {{{last|}}} |{{{last}}}{{#if: {{{first|}}} |, {{{first}}} }} |{{{author}}} }}|{{#if:{{{authorlink|}}}|]]}} }}
Unfortunately time for my bed so I have NOT tested this out yet... so comments appreciated before I come back to this tomorrow :-) David Ruben Talk 03:22, 9 December 2006 (UTC)
- I would propose not to change anything on the template, as the problem reported was simply a use error (see my response above). So I haven't looked into your template code snippets. --Ligulem 16:33, 9 December 2006 (UTC)
- OK fine - PS when I eventually had time to check, the above final code did not work - those 2 opening square brackets cause all sorts of funny things to occur (with bits of code not interpreted but directly displayed) So ignore it :-) David Ruben Talk 01:05, 10 December 2006 (UTC)
Using a semi-colon to streamline last, first format with multiple authors
At the moment, the first author is seperated from the coauthors with a comma. This creates problems since something like this would appear: Last1, First1, Last2, First2, Last3, First3 or Last1, First1, First2 Last2, etc. and the like. In brief, the only way to have both author and coauthors use the same format is to use the author parameter instead (which seems to be creating trouble?) and have the first name before the last name.
Anyway, my proposal is to use a semi-colon between author and coauthors. Like this, we can use the following format: Last1, First1; Last2, First2; Last 3, First3.
└ VodkaJazz / talk ┐ 15:46, 9 December 2006 (UTC)
- Hmm. Could you take a look at Template_talk:Cite_book#Edit_request:_Comma_instead_of_semicolon_before_coauthors? We changed that on {{cite book}} from semicolon to colon explicitly [1]. Could we leave it on cite journal the same way as it is on cite book? --Ligulem 16:46, 9 December 2006 (UTC)
- I read the talk section, but I did not understand why exactly the change was made to a comma, so I cannot quite comment on it. I did notice, though, that after the edit a couple of people brought up the same point as above. Maybe you can clarify the reason for that edit? Thanks. └ VodkaJazz / talk ┐ 18:06, 12 December 2006 (UTC)
- The whole thing was rooted at Template_talk:Cite_book#Coauthors_without_authors, a concern brought up by Nikola, resolved with the proposal by Daduzi to change the semicolon to a colon. I agree with you that there are now a couple of negative voices over at cite book (Karl Dickman, Cain Mosni, not sure about the opinions of flamurai and Circeus). I tend to agree with changing cite book and cite journal (back) to the semi-colon. At least I would say it makes sense to have it on both templates the same. Sometimes it's a bit difficult to know what the actual consensus is. --Ligulem 00:01, 13 December 2006 (UTC)
- I read the talk section, but I did not understand why exactly the change was made to a comma, so I cannot quite comment on it. I did notice, though, that after the edit a couple of people brought up the same point as above. Maybe you can clarify the reason for that edit? Thanks. └ VodkaJazz / talk ┐ 18:06, 12 December 2006 (UTC)
-
-
- I've left a note at Template_talk:Cite_book#Back_to_semi-colon_before_coauthors?. --Ligulem 00:12, 13 December 2006 (UTC)
- (Editprotected template removed): gain some more consensus before re-adding {{editprotected}} again. Once you have gained some consensus, re-add the template, and an administrator will come around and update the template. If you have any questions, please contact me at my talk page. Ian Manka 02:39, 14 December 2006 (UTC)
- Thanks. I *am* an admin :-). As a regular here, I will enact it (I mean the consensus). I don't think this discussion is yet finished. --Ligulem 08:50, 14 December 2006 (UTC)
- (Editprotected template removed): gain some more consensus before re-adding {{editprotected}} again. Once you have gained some consensus, re-add the template, and an administrator will come around and update the template. If you have any questions, please contact me at my talk page. Ian Manka 02:39, 14 December 2006 (UTC)
- I've left a note at Template_talk:Cite_book#Back_to_semi-colon_before_coauthors?. --Ligulem 00:12, 13 December 2006 (UTC)
-
- Done. --Ligulem 15:57, 17 December 2006 (UTC)
issue field
can somebody please alias issue field to also be available as number, similar to the bibtex @article? this would make a bibtex article entry import even more brainless than it is today :) --BACbKA 00:49, 16 December 2006 (UTC)
- I would really appreciate if we could refrain from adding aliases for parameters. Because: (1) it makes maintenance of calls harder. For example if we ever should migrate again the calls to another template (as we did from template:journal reference to this here), we would have to look for two names for the same parameter. (2) it increases the complexity of the template code, which makes it harder to maintain or extend. --Ligulem 01:04, 16 December 2006 (UTC)
- Sounds reasonable. Maybe all one needs is a tool (maybe a browser-side one?) that would accept a bibtex entry and emit a corresponding Template:Cite ... code? --BACbKA 01:15, 16 December 2006 (UTC)
Language
Could someone please add a language parameter? Most citation templates have one, this doesn't. - Jmabel | Talk 07:37, 24 December 2006 (UTC)
- Actually, most of the time, a language icon is used instead. Circeus 15:59, 24 December 2006 (UTC)
- Could you specify which citation template uses a language icon - I searched through several and failled to find such coding. David Ruben Talk 16:11, 24 December 2006 (UTC)
- No template specifically call it. The users do. It is certainly visually far more efficient in pointing out a different language in the source. Circeus 17:38, 24 December 2006 (UTC)
- Could you specify which citation template uses a language icon - I searched through several and failled to find such coding. David Ruben Talk 16:11, 24 December 2006 (UTC)
- I've added a new parameter "language" ([2]). We already have such a language parameter in {{cite book}} and {{cite web}}. We can sort out the details how to display it later. --Ligulem 16:30, 24 December 2006 (UTC)
Can we have some consistency in handling the language. There are two styles:
- {{cite journal}} has (in German).
- {{cite web}} has (German). This gives the same appearance as the {{De icon}} language icon.
- {{cite book}} has (in German).
- {{cite news}} has (in German).
- {{cite press release}} has (in German).
I quite like the language icon format, which is used elsewhere to indicate the language of external links. SandyGeorgia also expressed a preference at Wikipedia:Peer review/Timeline of tuberous sclerosis/archive1. Cheers, Colin°Talk 09:17, 4 May 2007 (UTC)
bibtex compatibility
I'm quite impressed: I just downloaded a citation to an article in bibtex format, and all I had to do was to change the format, and it "just worked": All the normal parameter names are the same as Bibtex's. --Slashme 08:58, 17 January 2007 (UTC)
COinS openURL tags and explicit id fields
I made some changes to {{cite book}} and I would like to make equivalent changes to cite journal:
- Added explicit
isbn=
andoclc=
fields, so you typeisbn=1-111-22222-9
instead ofid=ISBN 1-111-22222-9
, for instance. - Added a COinS OpenURL tag at the end of the citation, to allow automatic importing into referencing tools, linking to library information, etc.
- This actually makes much more sense for journals than books, since you can go directly to an online copy of an article through your library with an openURL resolver (browser extension). For books you generally can just see if your library has a physical copy. The links are more powerful for journals.
Is there any opposition to these changes? Other comments? They've been in cite book since the 9th, and I haven't seen any complaints (or praise) about them anywhere. — Omegatron 04:59, 1 February 2007 (UTC)
- I see this has now been added to the coding, but can you offer an explanation as to how it should be used in practice, and also if any pitfalls in using wrongly ? David Ruben Talk 12:04, 11 February 2007 (UTC)
- I updated the doc page. Just use
issn = 1111-2220
instead ofid = {{ISSN|1111-2220}}
andpmid = 15128012
instead ofid = PMID 15128012
. I don't know how you could do this "wrongly".
- I updated the doc page. Just use
-
- The COinS tag is automatically generated from the fields; it's nothing that users need to worry about, and contains the same information as the reference, but in a machine-readable format. Your browser can then use this information to do nice things. For instance, if you get and configure OpenURL referrer, it will put a link after each reference to take you directly to your library's copy of that document (as most journal articles can only be accessed through a university library). If you get Zotero you can use this to automatically add references to your personal library and keep notes on them, etc.
-
- It's currently sub-optimal, because extra wikitext from linked journals and so on gets included in the tag, but a lot of them are still useful even with the extra crud, and we should have an extension for stripping that markup pretty soon anyway. Definitely don't limit what you do with the references for the sake of the COinS tag by removing links or anything like that. — Omegatron 19:49, 11 February 2007 (UTC)
Accessdate
I'd like to edit the template to allow someone to enter a the access date in a format other than the ISO. The cite web template has the parameters accessmonthday and accessyear to allow this. I'd also propose here (as I did there) adding the parameter accessdaymonth to allow the date format 01 January 2006. - Trevor MacInnis (Contribs) 17:22, 5 February 2007 (UTC)
DOI functionality not working great
Hi,
The DOI functionality is not the best in this template, since (sadly) DOIs may contain < and > symbols in their reference, which results in a link that displays correctly, but does not link correctly. This issue has been considered in the {{doi}} template, which is why there are two usages. To fix this problem, I propose to add another optional field, say doilabel
, right below the doi
field, which will behave just like {{doi}}. I'm not familiar enough to suggest how to implement this. In the mean-time, to fix this, for example, given:
10.1130/0091-7613(1990)018<1153:TAFSIA>2.3.CO;2
(or this) modify this in the template to:
10.1130/0091-7613(1990)018%3C1153:TAFSIA%3E2.3.CO;2
(or this ), which works, but displays an incorrect DOI. Once a doilabel
field is available, then the proper DOI text label can be added to the citation. +mwtoews 07:47, 17 February 2007 (UTC)
- I URLencoded it. Does it work now? — Omegatron 02:15, 18 February 2007 (UTC)
- Nope, didn't work (and it might have broken some DOIs with '
%
' characters). The URLencode turned<
into<
, instead of%3C
. It seems like the system is picky. I suggest you rv the change until we can figure it out first...+mwtoews 03:17, 18 February 2007 (UTC)
- Nope, didn't work (and it might have broken some DOIs with '
- The problem appears to be double encoding. For example, we are encoding '
<
' into '<
', but then WikiMedia re-encodes the '&
' into '%26
' and ';
' into '%3B
', so that the original '<
' becomes '%26lt%3B
'! I'm lost on a simple solution, and it appears there is a bug in WikiMedia with 'urlencode:
'. +mwtoews 03:34, 18 February 2007 (UTC)- Yes, my tests confirm that '
urlencode:
' is a bit buggy at the moment, for example using '{{urlencode:<}}
' results in '%3C'
. +mwtoews 03:53, 18 February 2007 (UTC)- I've submitted the bug report.+mwtoews 16:43, 20 February 2007 (UTC)
- In any case, it's still possible to include such DOIs under {{{id}}}.Circeus 19:44, 20 February 2007 (UTC)
- I've submitted the bug report.+mwtoews 16:43, 20 February 2007 (UTC)
- Yes, my tests confirm that '
- Okay, I think I understand your fix now (it didn't sink in until now). Don't use the
doi
parameter, but, pass the {{doi}} template to theid
parameter (aka, a template within a template):
id={{doi|id=10.1130/0091-7613(1990)018%3C1153:TAFSIA%3E2.3.CO;2|label=10.1130/0091-7613(1990)018<1153:TAFSIA>2.3.CO;2}}
- Good! That will do! +mwtoews 03:41, 10 March 2007 (UTC)
Actually... it's
|doi=10.1130/0091-7613(1990)018%3C1153:TAFSIA%3E2.3.CO;2 |doilabel=10.1130/0091-7613(1990)018<1153:TAFSIA>2.3.CO;2
Why don't we just fix the bug? — Omegatron 18:48, 10 March 2007 (UTC)
- I'll agree with that thought — the patch that introduces additional parameters probably isn't a wise move, since this bug (with the URLencode) might be fixed at some point in the future, and adding a
doilabel
parameter won't be a compatible solution for that fix. For example, it would be best to have a singledoi
field with the actual DOI, not a manually encoded DOI like you have above—this could present a maintainability problem for future citations. (Yes I realize that I had initially proposed the inclusion of adoilabel
field before, and now I've reversed my stance). DOIs that need to be manually encoded in the mean time can be passed through theid
parameter, which is a compatible move, regardless if the URLencode bug is fixed or not. I realize thatdoilabel
was just added, but could we hold on adding this parameters until the URLencode bug is fixed? +mwtoews 22:56, 10 March 2007 (UTC)
Add an excerpt (quote) parameter?
Would it be inappropriate for any reason to add an excerpt or quote parameter to this template, as in Template:Cite web, which could include an excerpt from the cited journal? Kellen T 08:51, 25 February 2007 (UTC)
- I would like to see this as well so that it mirrors {{cite_book}}, {{cite_encyclopedia}}, etc. --Flex (talk|contribs) 13:24, 16 March 2007 (UTC)
- This is especially important for journals since a lot of people can't access them. — Omegatron 14:10, 16 March 2007 (UTC)
Requesting addition of "quote" code (above) to this template. Kellen T 08:34, 21 March 2007 (UTC)
- Done →AzaToth 00:07, 22 March 2007 (UTC)
- The parameter though displays smart quotes “ and ”, but I always understood that simple double-quotes was style policy, i.e. " ? David Ruben Talk 01:25, 22 March 2007 (UTC)
- No. Smart quotes are preferred. — Omegatron 01:40, 22 March 2007 (UTC)
- According to WP:MOS#Look_of_quotation_marks_and_apostrophes, there is no consensus on the matter and both are acceptable. --Flex (talk|contribs) 13:31, 22 March 2007 (UTC)
- No. Smart quotes are preferred. — Omegatron 01:40, 22 March 2007 (UTC)
- Woot! Thanks! Kellen T 08:04, 22 March 2007 (UTC)
- Yes, thanks! One problem though: the quote should not be italicized per WP:MOS#Quotations_in_italics. (Compare {{cite_book}}, {{cite_encyclopedia}}, etc.) I'll request that it be changed. --Flex (talk|contribs) 13:44, 22 March 2007 (UTC)
- The parameter though displays smart quotes “ and ”, but I always understood that simple double-quotes was style policy, i.e. " ? David Ruben Talk 01:25, 22 March 2007 (UTC)
Concerns about "lay" fields
I have concerns about the recent additions of laysummary
, laysource
, and laydate
. These field are intended to link a reference about the journal citation in "layman's terms". I do support the inclusion of such references in any science related articles, however I do have concerns about embedding partial citations within another. I have two concerns (which I have also voiced out here) regarding this inclusion:
- Providing a "Lay summary" link is only a partial citation. It gives almost no credit to the author/publisher. I would expect any encyclopedia to give full credit and reference for any sourced material — not just a URL (and source, if
laysource
is provided). Furthermore, the "References" section of many articles is fairly substantial (> 100 in some). A single citation may contain several links, such as to the author, publisher, article PDF, and DOI. Presenting the link to the layman's news article as a separate citation (e.g., {{cite news}}) is the simplest answer, since it gives full credit and is easier to find in the reference list. - A citation should be text-readable, so it can be printed. This is important for general printing (i.e., if someone want to print out an article, and look up the newspaper article in the library from that print-out), and if the print edition of WP:1.0 ever gets made. Simply providing the text "Lay summary– Some Newspaper" does not provide these users sufficient information to find what they need.
I'm used to citation software like BibTeX and EndNote, and reading peer reviewed article which all use one citation per reference. This inclusion is somewhat extending that rule by including 1½ citations per reference, which is awkward. I don't mean to fuel any fire for any template fork (see {{cite science}}), I'm just concerned for how articles should be referenced.+mwtoews 05:01, 11 March 2007 (UTC)
- The way you have shown that you would use this does not convince me. You had the {{cite web}} embedded in a separate set of <ref> brackets. That's very much not the point. The point is that the lay summary belongs with the original and is provided as supplementary material, not because it provides original material in its own right. And talking about Wikipedia 1.0 is hardly a strong point when we don't even have stable versions yet. I'm not sure what your example is supposed to illustrate, and I'm not convinced that you have ever actually printed a Wikipedia article and experienced the marvel of the URL magically appearing on the physical page. Samsara (talk • contribs) 04:41, 13 March 2007 (UTC)
- A printed URL is still of limited use to someone trying to find the news article in a library (i.e., not with a computer) from a printed WP article. Finding the physical article might be required if the online source requires a subscription (e.g., New York Times). See related discussion here. I see nothing wrong with using
<ref>{{cite news}}</ref>
as a second reference.+mwtoews 17:04, 13 March 2007 (UTC)
- A printed URL is still of limited use to someone trying to find the news article in a library (i.e., not with a computer) from a printed WP article. Finding the physical article might be required if the online source requires a subscription (e.g., New York Times). See related discussion here. I see nothing wrong with using
My opinion is that there should not be fields that mix up two sources, and I better like multiple templates within one <ref> as I have given an example on in the article Voxel-based morphometry with a citation to Maguire [3]. -— fnielsen 20:49, 14 March 2007 (UTC)
- That looks quite good! Plus it bypasses the assumption that there is at most one related news release. I was working on a similar idea (found here and used here), but your idea is slightly simpler and more flexible (I've also agreed that a single
<ref>
is better than two for cases as these). Certainly citation templates will be used how users want to use them, but maybe we should encourage an acceptable style-guide in the documentation? +mwtoews 21:03, 14 March 2007 (UTC)- I've added a suggested format into this template documentation. I realize that the format doesn't directly impact this template, per se, but it could encourage good referencing habits from users who use this template (by good, I mean what I've discussed above, such as including full citiation, etc., from the related source — however, certainly template users will use these as they feel they should use them). Edit what I've added as you may feel necessary.+mwtoews 03:12, 21 March 2007 (UTC)
Automatic reference formatter
Having spent much of the last month referencing articles, I've been yearning for a quicker way to enter the citation data, and eventaully knocked something together here that will automatically generate a preformatted entry from the results of a Google search.
I imagine that this will be useful to many other users of this template and thought it may be appropriate for a link to the utility to be put on the template description page. | Verisimilus T 11:25, 21 April 2007 (UTC)
- It's an excellent idea, and something I had craved for for a long time. However, it does not work (for me). First, the "Get BibTeX" in Google results don't work for me. Secondly, and more critically, clicking "Transform" takes me to authentication page (by "Raven"), for which I have no login. There also is a typo; "Use the Google Scholar search box, at the bottom og the page, to find your article". Extra information: I'm using Safari on a Mac, but could also test with Firefox. --Stephan Schulz 11:40, 21 April 2007 (UTC)
- It seems to be compatability problems - it works now fine with Firefox ( I hope ) but I'm having really weird problems getting it to work with IE. How is Safari dealing with the Get BibTeX link now? | Verisimilus T 13:01, 21 April 2007 (UTC)
- It breaks in different ways with FireFox and Safari. For Safari, clicking "Get BibTeX" gets me a new empy page, for Firefox, it gets me an empty box on the same page... --Stephan Schulz 13:11, 21 April 2007 (UTC)
- Ah-ha! I've got to the bottom of it - it turns out that you need to set your Scholar preferences. Check the page for instructions on this point. I'll see if I can code around this... | Verisimilus T 13:16, 21 April 2007 (UTC)
- It breaks in different ways with FireFox and Safari. For Safari, clicking "Get BibTeX" gets me a new empy page, for Firefox, it gets me an empty box on the same page... --Stephan Schulz 13:11, 21 April 2007 (UTC)
- It seems to be compatability problems - it works now fine with Firefox ( I hope ) but I'm having really weird problems getting it to work with IE. How is Safari dealing with the Get BibTeX link now? | Verisimilus T 13:01, 21 April 2007 (UTC)
Fixed
I've now fixed and greatly improved the tool, and it seems to work on IE and Firefox. Would anyone mind testing it before I request its inclusion on the template page?
Thanks! | Verisimilus T 12:45, 22 April 2007 (UTC)
- You can import your research documents into Zotero and then paste them into Wikipedia as citation templates with Ctrl-Alt-C. — Omegatron 16:52, 22 April 2007 (UTC)
Cite Conferences
-
- Hi Verisimilus! It's a huge improvement, but there are a couple of problems. First, the Google interface works. But: It fails to include the actual journal, and it also cites conference proceedings as "cite journal". Finally, when I try to use the textbox interface, all I get is an error message. This is the text I pasted:
@Article{DKS97, author = {J. Denzinger and M. Kronenburg and S. Schulz}, title = Template:DISCOUNT: A Distributed and Learning Equational Prover, journal = {Journal of Automated Reasoning}, year = {1997}, number = {2}, volume = {18}, pages = {189--198}, note = {Special Issue on the CADE 13 ATP System Competition}, annote = {StS}, }
-
- HTH, --Stephan Schulz 17:00, 22 April 2007 (UTC)
-
-
- Conference proceedings will now use the 'cite conference' template (which I didn't know existed!), but as BibTeX only discriminates between books and journals, I've had to use the possibly satisfactory method of searching for the word 'conference' in the journal title. If you can find anything that doesn't get caught in that fashion do let me know. However as the transcribed results are the same, regardless of the template, I don't think it's a problem. Comments as ever are welcome. | Verisimilus T 09:18, 23 April 2007 (UTC)
- Much better! One more suggestion: Google seems to ignore this, but BibTeX does have a separate entry type for a conference article, namely "InProceedings". You could make those into a 'cite conference' always. Example:
- Conference proceedings will now use the 'cite conference' template (which I didn't know existed!), but as BibTeX only discriminates between books and journals, I've had to use the possibly satisfactory method of searching for the word 'conference' in the journal title. If you can find anything that doesn't get caught in that fashion do let me know. However as the transcribed results are the same, regardless of the template, I don't think it's a problem. Comments as ever are welcome. | Verisimilus T 09:18, 23 April 2007 (UTC)
-
@InProceedings{Schulz:KI-2001, author = {S. Schulz}, title = {{Learning Search Control Knowledge for Equational Theorem Proving}}, booktitle = {Proc.\ of the Joint German/Austrian Conference on Artificial Intelligence (KI-2001)}, pages = {320--334}, year = {2001}, editor = {F. Baader and G. Brewka and T. Eiter}, volume = {2174}, series = {LNAI}, publisher = {Springer}, annote = {StS}, }
-
-
-
- This one currently seems to break the system in other ways, as well (it fails to extract the correct title). Bye, --Stephan Schulz 23:04, 23 April 2007 (UTC)
- Great, that'll be simple to do once I'm at the right computer. Having only used the citations from Google - never BibTeX itself - I've not been able to investigate too thoroughly! | Verisimilus T 09:19, 24 April 2007 (UTC) Done | Verisimilus T 18:22, 24 April 2007 (UTC)
- This one currently seems to break the system in other ways, as well (it fails to extract the correct title). Bye, --Stephan Schulz 23:04, 23 April 2007 (UTC)
-
-
Cite Book
I need to work out how to include details on the editors and 'series' for this template, too, to cover articles in books. Does BibTeX have fields for this? | Verisimilus T 09:37, 24 April 2007 (UTC)
- Books in BibTeX usually means monographies. Examples:
@Book{Gr95, author = {P. Graf}, title = {{Term Indexing}}, publisher = {Springer}, year = {1995}, volume = {1053}, series = {LNAI}, } @Book{Ll84, author = {J.W. Lloyd}, title = {Logic Programming}, publisher = {Springer}, year = {1984}, key = {Ll84}, series = {Symbolic Computation}, }
- For collections, BibTeX has @InCollection:
@InCollection{BG:Superpos-98, author = {L. Bachmair and H. Ganzinger}, title = {{Equational Reasoning in Saturation-Based Theorem Proving}}, booktitle = {Automated Deduction --- A Basis for Applications}, publisher = {Kluwer Academic Publishers}, year = 1998, editor = {W. Bibel and P.H. Schmitt}, volume = {9 (1)}, series = {Applied Logic Series}, chapter = {11}, pages = {353--397} }
- Bye, --Stephan Schulz 09:55, 24 April 2007 (UTC)
Done - Everything now seems to be working. (Except the year, which should be enclosed in {}s to be valid BibTeX syntax, I think?)
I've created a user subpage where you would be more than welcome to make further comments! | Verisimilus T 18:07, 25 April 2007 (UTC)
- I think (but only think) that {} and "" in items are both only delimiters and not needed for items without whitespace. This certainly works with real BibTeX. I strongly suspect that your parser will like this change ;-). Asking the Oracle from Mountain View has yielded this, which confirms my thoughts and may be useful. --Stephan Schulz 18:35, 25 April 2007 (UTC)
Trailing space
Is there any particular reason why the template ends with ? If someone wants to add a comment or an alternate url after the citation, then there will be 2 spaces between the citation and the comment, unless they know somehow to not leave a space between }} and their text. –Pomte 08:03, 29 April 2007 (UTC)
- It "contains" a machine-readable tag for downloading the citation information. span tags are stripped by mediawiki if they don't contain anything, so it has a space inside it. The content inside the span tag is replaced by OpenURL tools, so we can't really wrap it around any part of the text itself. :-/ — Omegatron 18:42, 29 April 2007 (UTC)
Date by season
The template as it stands doesn't allow for publications dated by season (e.g. "Autumn 1975"). Andy Mabbett 15:38, 5 May 2007 (UTC)
- Can just set the "year" parameter and then use the "month" parameter for such details, just as one can if the month is split (eg "June/July"). David Ruben Talk 00:06, 20 May 2007 (UTC)
Using the ParserFunctions
Note that some ISPs that offer MediaWiki installation (e.g. Dreamhost) do not install the ParserFunctions needed for this template to work. If, after installing the template, you get errors and badly formed citations, check that the ParserFunctions are installed. Jeff Ubois.
Organic Syntheses
In Wikipedia:WikiProject Chemistry, there is a new Wikipedia:WikiProject Chemistry/Gold Book workgroup, and they have created {{GoldBookRef}} to help ease citing Compendium of Chemical Terminology. I'm proposing a similar template for citations to Organic Syntheses, because of their ubiquity.
Compared with Gold Book, there are more parameters such as author, year, title, etc. Thus I was hoping to piggy back on {{cite journal}}. In the same way as we have the doi parameter, and the pmid parameter, perhaps we can have a parameter to include this data? Organic Syntheses is divided into Collected Volumes, and each paper can be identified by a page number. The website is similarly logical: this website will display collected volumes 1, page 016. Can someone advise/help? --Rifleman 82 02:15, 31 May 2007 (UTC)
- Good idea. In principle, it should be possible to have a template which actually calls {{cite journal}} so that the formatting would remain consistant even if this template were ever to change. Or it might be simpler just to copy the code. Physchim62 (talk) 09:07, 31 May 2007 (UTC)
- By using the latter approach, I have created {{OrgSynth}}. Enjoy! Physchim62 (talk) 10:09, 31 May 2007 (UTC)
- I was originally thinking of adding yet another parameter to the cite journal, but this seems a cleaner solution! Thanks! --Rifleman 82 14:57, 31 May 2007 (UTC)
- By using the latter approach, I have created {{OrgSynth}}. Enjoy! Physchim62 (talk) 10:09, 31 May 2007 (UTC)
DOILABEL support
The doilabel parameter is not supplied in the correct syntax - so it doesn't work. This should be a trivial fix... I'd make it myself if I could. Verisimilus T 10:17, 8 June 2007 (UTC)
- Just fix the URLencode bug. — Omegatron 01:44, 9 June 2007 (UTC)
Archive links
Someone please add the archive URL/date parameters, they're needed if the main URL is dead. Reinistalk 09:28, 17 August 2007 (UTC)
- I'm pushing for this above at #template expansion needed, but I'm meeting resistance. I ask interested parties to join the discussion above. ~ Jeff Q (talk) 03:24, 12 September 2007 (UTC)
Request for Publisher, Location parameters
Since not all journals have an article where a reader can see who publishes a journal, it would be helpful for one to personally assess the credibility of a source if the publisher and/or location could be added to {{cite journal}}.
If, to give a fictitious example, in an article about about Drug XYZ, a reference is cited to the journal National Drug Review (about which there is no article), it would be helpful if one were alerted to the fact that such a journal was published by ABC Drug Corporation, manufacturers of said drug.
Also, to give another fictitious example, if a Spanish-language journal were cited about Cuban affairs, it could be viewed differently if it were published in Havana versus being published in Miami.
If added as purely optional parameters, I don't feel that they would detract from the reference listing. Thanks. — Bellhalla 13:32, 18 August 2007 (UTC)
- There is no need to link a journal to begin with. Such parameters are entirely unnecessary since no system uses them, adding them would be entirely improper. It is up to the editors to properly assess the credibility of the source before using it, not the reader. Circeus 14:56, 18 August 2007 (UTC)
- An address/location field is not found in any "Journal" bibliographic reference styles that I have come across. You might want to use {{cite book}}, or suggest adding the field to {{cite paper}}, since this is more generic. Or, you could add a note after this template. But ultimately (as Circeus pointed out), you should avoid citing biased "science" references anyways (unless you are trying to make a point Journal "X" clearly made a biased article). +mt 19:08, 18 August 2007 (UTC)
- The above discussion misses the point that editors can and do used biased sources, and that, in wikis, all readers are effectively verifiers. We cannot assume that cited sources are inherently reliable or unbiased, so links to articles about the journals from which information is taken are obvious aids for reader/editors to help us consider possible bias. ~ Jeff Q (talk) 03:31, 12 September 2007 (UTC)
- Why not add the wikilink for the journal then? I've seen somewhere that journals are inherently notable (hence won't be deleted because of {{notability}}). Hence, more information can be found there. --Rifleman 82 04:11, 12 September 2007 (UTC)
- No general form of publication is inherently notable. If I web-publish The Journal of Left-Handed Redheads, complete with quarterly issues and yearly volumes, someone might be able to cite it using {{cite journal}} but it would likely not warrant a Wikipedia article. ~ Jeff Q (talk) 00:45, 13 September 2007 (UTC)
- If your journal were a peer-reviewed scholarly journal, representing a legitimate field of research, it probably should be notable. And that was the basis for my statement - a peer-reviewed scholarly journal. --Rifleman 82 02:34, 13 September 2007 (UTC)
- No general form of publication is inherently notable. If I web-publish The Journal of Left-Handed Redheads, complete with quarterly issues and yearly volumes, someone might be able to cite it using {{cite journal}} but it would likely not warrant a Wikipedia article. ~ Jeff Q (talk) 00:45, 13 September 2007 (UTC)
- Why not add the wikilink for the journal then? I've seen somewhere that journals are inherently notable (hence won't be deleted because of {{notability}}). Hence, more information can be found there. --Rifleman 82 04:11, 12 September 2007 (UTC)
- The above discussion misses the point that editors can and do used biased sources, and that, in wikis, all readers are effectively verifiers. We cannot assume that cited sources are inherently reliable or unbiased, so links to articles about the journals from which information is taken are obvious aids for reader/editors to help us consider possible bias. ~ Jeff Q (talk) 03:31, 12 September 2007 (UTC)
The above discussion seems to have gone off on a bit of a tangent dissecting one particular motivation for including these fields. Notwithstanding, there have been a few other unfulfilled requests for this functionality earlier on this talk page, and at WP:CITET. I've now added both publisher and location fields to the template. --cjllw ʘ TALK 09:24, 3 October 2007 (UTC)
Hanging indent proposal
For a proposal to add an optional formatting parameter to this and related citation templates, which would allow display as a hanging indent, see this discussion. --cjllw ʘ TALK 04:52, 25 September 2007 (UTC)
Wiley DOIs
Currently many DOIs provided for Wiley journal articles don't resolve correctly at dx.doi.org. Perhaps another parameter could be added that links directly to Wiley's DOI system:
{{#if: {{{wileydoi|}}} |. [[Wiley digital object identifier|WDOI]]:[http://doi.wiley.com/{{{wileydoi|{{{wileydoilabel|}}}}}} {{{wileydoi}}}] }} ... -->{{#if: {{{wileydoi|}}} | &rft_id=info:wileydoi/{{urlencode:{{{wileydoi}}}}} }}<!-- WDOI
As an example, the following DOI is mentioned on a Wiley article page:
10.1002/(SICI)1096-8628(19961218)66:3<356::AID-AJMG21>3.0.CO;2-K
It resolves at doi.wiley.com but not dx.doi.org. Ciotog 01:44, 24 October 2007 (UTC)
- Ok, I just discovered that the URI encoded version works at dx.doi.org, but I don't think it's reasonable for the average wikipedia editor to know to encode DOIs when necessary. Ciotog 01:54, 24 October 2007 (UTC)
- That needs to be URL-encoded. It doesn't even work for Wiley unencoded: <356::AID-AJMG21>3.0.CO;2-K Wiley URL because MediaWiki is breaking the URL at the <. If that's a legitimate DOI value, then perhaps this template (and others like it) should URL-encode the DOI via {{urlencode}}. RossPatterson 02:37, 24 October 2007 (UTC)
- That's correct, I thought I had tested it well enough but obviously not enough. Lots of DOIs have angle brackets so it definitely needs to be urlencoded. Ciotog 03:10, 25 October 2007 (UTC)
- I played around with urlencode but it's no good - it turns < into < and > into > instead of %3C and %3E as it should. Ultimately I fixed the issue by hand urlencoding the angle brackets. Ciotog 03:59, 25 October 2007 (UTC)
- Rats. It's a MediaWiki bug, as noted at Template_talk:Doi#URL encoding. There's a bug report at bugzilla:9031, but there's no obvious plan to fix it. RossPatterson 23:03, 25 October 2007 (UTC)
- I played around with urlencode but it's no good - it turns < into < and > into > instead of %3C and %3E as it should. Ultimately I fixed the issue by hand urlencoding the angle brackets. Ciotog 03:59, 25 October 2007 (UTC)
- That's correct, I thought I had tested it well enough but obviously not enough. Lots of DOIs have angle brackets so it definitely needs to be urlencoded. Ciotog 03:10, 25 October 2007 (UTC)
- That needs to be URL-encoded. It doesn't even work for Wiley unencoded: <356::AID-AJMG21>3.0.CO;2-K Wiley URL because MediaWiki is breaking the URL at the <. If that's a legitimate DOI value, then perhaps this template (and others like it) should URL-encode the DOI via {{urlencode}}. RossPatterson 02:37, 24 October 2007 (UTC)
Protected edit request: add bibcode field
{{editprotected}}
I would like to request that a field for the bibcode identifier, used by astronomers and astrophysicists, be added to this template. This can be done by changing the wikitext currently at {{cite journal}} to the wikitext provided here. Spacepotato 21:32, 5 November 2007 (UTC)
- No objections. Done. --- RockMFR 22:48, 9 November 2007 (UTC)
- Thanks. Spacepotato 22:53, 9 November 2007 (UTC)
Archiving April 2008
Large amount of material that long should have been archived Mar-Dec 2007 that overlaps the Dec06-Nov07 already included above. David Ruben Talk 12:42, 6 April 2008 (UTC)
Fields needed
There is no provision for naming a translator (using "editor" or "author" doesn't work).
Also, in mathematics we often cite Springer-Verlag's notorious series of "yellow books", the Graduate Texts in Mathematics. To do this (and other such) properly, we need a series and number capability.
An example of an attempt to do both of these is
- Remmert, Reinhold (1991), Theory of Complex Functions, vol. 122 of Graduate Texts in Mathematics (Readings in Mathematics), Graduate Texts in Mathematics, New York: Springer-Verlag, ISBN 978-0-387-97195-7, translated by Robert B. Burckel from Remmert, Reinhold (1989), Funktionentheorie I (2nd ed.), Springer-Verlag, ISBN 978-3-540-51238-7
The idea of a universal citation template is appealing, but in terms of results the only major advantage today over the competition is link compatibility with Harvard style. --KSmrqT 14:51, 23 March 2007 (UTC)
- I had thought of including a translator function, but I wasn't sure the best way to cite the translator. Your example seems a bit redundant, because the author is repeated twice. I'm not sure how valuable it is to incorporate full bibliographical information on the source of the translation into the template. If the full info about the original book is important, it would probably be better to just use two templates, as in your example. In normal cases, I think the important information would likely be the translator's name (e.g., new parameters called translator-last, translator-first, etc.), the original language (original-language), the date of the original work (probably re-use year and date) and the date of publication in translated form (probably re-use publication-date).
- As to the other issue, I think series and volume would be the best parameter names to use for this. Adding a new series parameter along the lines of your example would be easy. COGDEN 20:26, 23 March 2007 (UTC)
-
- Thanks for the prompt response.
- Yes, normally a full citation of the original work is excessive. I did it here for two reasons: (1) I did not know how to include the name of the translator in the main citation, and (1) many international Wikipedia readers may find it more convenient to consult the German-language original.
- I wonder if you have tracked developments of {{cite book}} and friends; those support two dates, one of which is the original. Also, it would be nice if we could have universal agreement on (or parameters for) the formatting.
- The syntax for templates is baroque; how do you recommend experimenting without breaking thousands of pages? Or would you prefer to do all the edits yourself? --KSmrqT 22:11, 23 March 2007 (UTC)
-
-
- I agree about the template syntax being baroque. It might have been okay a couple of years ago when templates were small, but it scales very poorly. As far as I'm aware, the {{citation}} set of templates are the most complicated on Wikipedia. I've tried to make it as easy as possible for other editors to change and experiment, however. For each of the templates, there is a "/testing" subpage for testing, and that's how I've been testing things. I then have a subpage on my userpage that references the testing templates.
-
-
-
- I haven't been following {{cite book}} for a while. I was involved in the basic design a long time ago, but it has been vastly changed. I've tried to make things as compatible as possible with the other templates, but the {{cite book}}, {{cite journal}}, {{cite chapter}} and all the other myriad templates aren't always consistent with each other. I've been fairly conservative about adding parameters, because once a parameter is added, we're pretty much stuck with it, because removing it from the template would cause problems with lots of pages. COGDEN 22:50, 27 March 2007 (UTC)
-
Upper case or lower case of parameters
I don't know if there is any consensus, but I personally prefer to have the parameter names in lowercase →AzaToth 17:15, 5 December 2005 (UTC)
- Wikipedia naming standards prefer lowercase except where necessary. Readers do not see parameter names so grammatical rules do not need to be followed. Using only lowercase also eliminates trying to memorize whether a parameter is publishyear, Publishyear, PublishYear, or publishYear. (SEWilco 17:51, 5 December 2005 (UTC))
- I hope I do not disturb here (as this is still experimental), but I would prefer lowercase too. It's just simpler and faster to write. Less likely to get written wrong. BTW: Good idea to make the year parameter required! – Adrian | Talk 22:29, 7 December 2005 (UTC)
Another way to do it
Just an idea, just using a wrapper template for all different types of references
- (table demonstrates User:AzaToth/X7&oldid=30245175)
→AzaToth 19:00, 5 December 2005 (UTC)
- This would be incompatible to {{Citation}}. And if meant to replace existing templates: no, wouldn't do that. More difficult to count usages by type. More load for servers. But the technical idea is interesting. – Adrian | Talk 10:37, 8 December 2005 (UTC)
- It should not be necessary to maintain numerous differences between different kinds of citations merely because the sources are in different types of media. Books, journals, and newspapers can be handled in the same way. We don't have to precisely follow existing standards of when to use quotation marks or italicize a title or name. The fact that web sites are used to convey information which is also in other form (such as a web version of a newspaper story) means that any kind of citation has to also support a URL. By using the title as the text for a URL link, for a citation to material which is only on a web site we can simply omit the unused fields such as page number. (SEWilco 16:41, 14 December 2005 (UTC))
Logic templates on WP:AUM
See the discussion on Wikipedia_talk:Avoid_using_meta-templates#Logic_templates. – Adrian | Talk 15:58, 9 December 2005 (UTC)
qif instead of if?
Would you agree if I convert this to template:qif (instead of template:if)? – Adrian | Talk 14:16, 14 December 2005 (UTC)
- That's a good idea. You may want to check recent changes to WP:CITET templates. (SEWilco 16:32, 14 December 2005 (UTC))
- Just converted to qif. Nothing more. Hope I made no botches. Kept formatting as it was. (diff). – Adrian | Talk 19:10, 14 December 2005 (UTC)
Why not a media parameter?
Shouldn't there be an easy way to distinguish whether the reference is a book, paper, journal or news article etc? Eg. with a media field? ··gracefool |☺ 23:53, 3 February 2006 (UTC)
- I mean like #Another way to do it above, but have the "type" field not actually do anything. Or perhaps just a note in brackets about what the reference is (a book, journal article, newspaper article, etc). ··gracefool |☺ 22:19, 20 February 2006 (UTC)
Why is Title optional?
In all the other reference/citation templates, Title is compulsary. How can cite a book without a title? ··gracefool |☺ 08:56, 8 February 2006 (UTC)
Let's move this
This gets transcluded occasionally by mistake for {{Citation needed}}. This is not a good thing. Can we move this to {{citation-test}} or some such until finished? Septentrionalis 21:45, 3 August 2006 (UTC)
- Note: just don't forget to delete the remaining redirect, which will be an alias for the new template name (which defeats your intention, if not deleted). Otherwise, I don't care. --Ligulem 11:48, 4 August 2006 (UTC)
conflict
Hi, I've created a template for adding to the tops of pages where rumor may regularly be posted without any citation. My Template is designed to politely caution editors to provide citations, and offers links to Wikipedia:Citing sources and Wikipedia:Verifiability.I'd like help finding a regular page to place it on, since Template: Citation is taken. my work can be seen here: User talk:ThuranX/CitationTemplate. I believe there is a need for a simple reminder on certain types of pages, such as Future Films (one of which inspired the template). Thank you for your help in finding a location. ThuranX 18:16, 7 August 2006 (UTC)
- Nevermind. the other person working with me on this idea suggested Template:Cite your edits and it was available. all the same ,suggestions are welcome. However, I reiterate my intent with the page, which was a simple one line template offering helpful links in a passive, polite manner.ThuranX 18:19, 7 August 2006 (UTC)
What relationship with other template?
- "These examples of citation within the text are based on related citation template Template:Harvard citation, which automatically creates a one-directional link to the first matching Harvard reference on the same page:"
Are you certain that it's perfectly obvious that one jumps to an anchor and the other creates the anchor, or should a little more description be provided? (SEWilco 04:59, 12 February 2007 (UTC))
- I tried to clarify this on the /doc page. COGDEN 08:23, 20 February 2007 (UTC)
Question I have
after quickly reading the article.
1. Can you still use harvnb when using citation?
2. Is this suitable for citing a documentary? If so, I would love a full example of citing a film or documentary.
Thanks. StudyAndBeWise 05:59, 16 February 2007 (UTC)
I just verified that you can. Now the next question:
Also, should this be called reference? Isn't the citation the [1], and the reference the book? Thanks. StudyAndBeWise 06:11, 16 February 2007 (UTC)
- Citation is the description of the source material, while references are the way the sources are referred to. If citing an entire book (with no specific page numbers) there often is a single citation in the article, while there may be many references to that source. (SEWilco 06:38, 16 February 2007 (UTC))
-
- Thanks for the clarification, I have been doing this backwards. StudyAndBeWise 03:55, 17 February 2007 (UTC)
Tool to convert harvard references to "citations"
Is there a tool to automate this process?
THanks. StudyAndBeWise 06:17, 16 February 2007 (UTC)
- I doubt there are tools yet for this new template. Mine are still a week away from using it. But the documentation hints that this citation can be used with Harvard references. (SEWilco 06:42, 16 February 2007 (UTC))
-
- A tool would be useful to convert harvard references to citations if the harvard reference is really depreciated. StudyAndBeWise 03:56, 17 February 2007 (UTC)
-
-
- A tool would be great. Personally, I have done manual find-and-replace. It would be nice to have a tool, for example, for use with AWB browser. There are about 800 or so articles using the Harvard reference template, and the process could be automated. Until all usages of the Harvard reference template are converted, however, the old template should continue to function. It's all a matter of renaming parameter values. COGDEN 08:06, 20 February 2007 (UTC)
-
Page numbers are omitted when citing a contribution
You can see this in the "Joseph Knight" example in the main template page. The page number is given as "35", but this does not appear anywhere in the output. Is this deliberate or a mistake? Thanks. Grover cleveland 17:25, 10 March 2007 (UTC)
- Problem fixed.
page
has been added as a synonym forpages
, which I think is reasonable, but I'm changing the example to readpages
. COGDEN 06:59, 12 March 2007 (UTC)- Thanks. However I'm still seeing the same problem when citing a contribution to a book (rather than a journal). The two "Bernard Lewis" examples on the main page both give the pages as "719-720", but this doesn't appear in the output. Thanks again for your help! Grover cleveland 16:35, 28 March 2007 (UTC)
- If I understand the template code correctly, {{Citation/core}} displays parameter Pages only for periodicals; otherwise if there is an editor, it displays IncludedWorkPages (provided it is not equal to Pages). But {{Citation}} never sets IncludedWorkPages. Worse yet, for a non-periodical without an editor there is no try at displaying page numbers. In other words page numbers are omitted except when citing a periodical. --teb728 21:54, 28 March 2007 (UTC)
- You're right. That's an error, and I fixed it by getting rid of the unused IncludeWorkPages parameter and just using the Pages parameter. COGDEN 02:08, 30 March 2007 (UTC)
- If I understand the template code correctly, {{Citation/core}} displays parameter Pages only for periodicals; otherwise if there is an editor, it displays IncludedWorkPages (provided it is not equal to Pages). But {{Citation}} never sets IncludedWorkPages. Worse yet, for a non-periodical without an editor there is no try at displaying page numbers. In other words page numbers are omitted except when citing a periodical. --teb728 21:54, 28 March 2007 (UTC)
- Thanks. However I'm still seeing the same problem when citing a contribution to a book (rather than a journal). The two "Bernard Lewis" examples on the main page both give the pages as "719-720", but this doesn't appear in the output. Thanks again for your help! Grover cleveland 16:35, 28 March 2007 (UTC)
Should page numbers be shown for a book without an editor? Currently they are not. --teb728 21:37, 30 March 2007 (UTC)
Citing web sites
According to the first line of the documentation this template is supposed to be useful for citing web sites. The parameter names, however, are specialized for books and journals. And even if I force a web site reference into one of those models by faking the parameter names, I don’t get the right results:
- {{Citation|author=Author name|title=Wikipedia, The Free Encyclopedia|chapter=Template:Citation|publisher=Wikimedia Foundation|url=http://en.wikipedia.org/wiki/Template:Citation}} gives
- Author name, “Template:Citation”, Wikipedia, The Free Encyclopedia, Wikimedia Foundation, <http://en.wikipedia.org/wiki/Template:Citation>
- with the link to the site rather than the page. (I would think that even for a book the link should go on the chapter rather than the title.)
- And {{Citation|author=Author name|journal=Wikipedia, The Free Encyclopedia|title=Template:Citation|publisher=Wikimedia Foundation|url=http://en.wikipedia.org/wiki/Template:Citation}} gives
- Author name, “Template:Citation”, Wikipedia, The Free Encyclopedia (Wikimedia Foundation), <http://en.wikipedia.org/wiki/Template:Citation>
- This is almost what I want, but the publisher is suppressed. (I would think that even with a periodical it might sometimes be desireable to show a publisher.)
Also the access-date and ref parameters are undocumented. --teb728 01:24, 25 March 2007 (UTC)
- An article on Wikipedia would be cited roughly like this:
{{Citation |author=Author name |title=Wikipedia, The Free Encyclopedia |chapter=Template:Citation |publisher=Wikimedia Foundation |contribution-url=http://en.wikipedia.org/wiki/Template:Citation }}
-
- Author name, “Template:Citation”, Wikipedia, The Free Encyclopedia, Wikimedia Foundation
- I agree there are a few features that need documentation, and others that need clarification. COGDEN 17:19, 26 March 2007 (UTC)
Microformat for citations
Please be aware of the proposal for a microformat for marking citations in (X)HTML. See also Wikipedia:WikiProject Microformats. Andy Mabbett 13:32, 26 March 2007 (UTC)
Zotero support
I recently added some COinS metadata to this template. I think it works as none of my articles using this template seem to have broken and Zotero seems to import the references. But I could be wrong: they could be incomplete, incorrect, or somehow subtly broken. So review is appreciated. --Gwern (contribs) 16:14 18 April 2007 (GMT)
- The one you added is only appropriate for books. I started a centralized discussion at Wikipedia_talk:WikiProject_Microformats#COinS_work. I think we should figure out the appropriate format for each type of document individually first, and then merge them into this template with the correct "switch" statements. — Omegatron 16:00, 21 April 2007 (UTC)
A Good Template Is Needed
Hi guys, I'd like to use a citation template that does inline anchors. Problem is, I can't. The present template does not pass what I call the Ivory-billed Woodpecker test... scroll down to the references and you'll see why when you come to "F"... I have posted a list of what could (and needs to) be in a semi-unified template format at Template_talk:Harvard_reference#Revamped_template. Dysmorodrepanis 13:48, 21 April 2007 (UTC)
Videos and Asian format needed
I did not know Template:Citation exist so that I made User:Shoons/Cite. Now I found that this Template:Citation does not cover videos or Asian format. I would like you to make this Template:Citation unified for all the resources if possible. Would you consider it? Asian format is not so important for you guys but it video would be importat. Now some of the problem of Asian format is that we do not use italic or '" '. No need ',' between first name and last name, and so on. Would help me to make unified version of all the citation, please?--Shoons 21:28, 23 April 2007 (UTC)
Lack of a trailing period
The examples encourage putting the last full stop after the }}. This is bad practice and there is a space between the end of the reference and the period. –Pomte 03:07, 27 April 2007 (UTC)
- What do you mean with "this is bad practice"? Do you mean that we (Wikipedians) should not have to full stop, or that the list of references as displayed in the articles should not have a final full stop?
- I agree that the space before the final full stop should be removed. This may not be so easy though. -- Jitse Niesen (talk) 03:39, 6 May 2007 (UTC)
- I mean bad practice to force content (".") outside the actual template, not that we shouldn't have a full stop. –Pomte 02:50, 10 May 2007 (UTC)
- The space was introduced by the recent inclusion of COinS tags. I'm attempting a fix. COGDEN 10:18, 28 May 2007 (UTC)
- Problem fixed (by removing COinS tag part of the template, see below). COGDEN 10:25, 28 May 2007 (UTC)
COinS tags
COinS tags were recently added to the template. I'm not sure what value these have, and they add a huge amount of markup overhead, so I'm removing them until we have a discussion here on whether or not they should be included. COGDEN 10:22, 28 May 2007 (UTC)
- "I'm not sure what value these have" Please don't make such significant changes, thereby removing functionality, until you at least understand what's involved; and preferably discuss them first. I've reverted, You can read more about COinS at COinS! (See also COinS in Wikipedia) Andy Mabbett 10:45, 28 May 2007 (UTC)
-
- The span with the COinS contains a (non-breakable space); see the last line in the wikicode for the template. I'm guessing that this causes the offending space. Can we just remove it? -- Jitse Niesen (talk) 17:28, 28 May 2007 (UTC)
-
-
- No, because Mediawiki strips empty span tags. — Omegatron 17:48, 29 May 2007 (UTC)
-
-
-
-
- I think these major features should be discussed before they are added to the template, especially when they add ugly extraneous spaces. I'm not necessarily opposed to adding the feature, but if we keep it, we need to find a way to get rid of the non-breaking space. Moreover, this coding should be done at template:Citation/core, rather than here, so that you can include the synonyms. I'd perhaps suggest putting the HTML attributes in the <cite> element. In the meantime, I'm reverting back. COGDEN 00:21, 30 May 2007 (UTC)
-
-
-
-
-
-
- They were announced, discussed, and implemented in the more specific templates months ago with no complaints that I recall.
- If you're only concerned about a space before the period, as in the above section, put the span tag after the period, where it's supposed to be.
- Also, who wrote this COinS tag? Is it really going to work correctly in each instance of this template? — Omegatron 01:59, 30 May 2007 (UTC)
-
-
-
-
-
-
-
-
- Unlike Template:Cite book, the period is not included in this template, so we cannot put it after the period. Perhaps this was a mistake (I think so), but to fix it requires us to go to all the articles using the template, look whether they add a period after the template, and if yes, remove it. -- Jitse Niesen (talk) 03:22, 30 May 2007 (UTC)
-
-
-
-
-
-
-
-
-
-
- the period is not included in this template because there are many instances where you might want to include more information at the end of the citation than the template provides, such as alternate web addresses, etc. The best practice, anyway, would be to put these attributes in the <cite> element. That's where it would should go based on standard xhtml coding practices. Do any of the CoInS tools look in the cite element, or are they blind everywhere other than spans? Alternatively, we could put one giant span element outside of the cite element. That's very inelegant, but it would workCOGDEN 23:42, 7 June 2007 (UTC)
-
-
-
-
-
-
-
-
-
-
-
- Okay, I made an attempt to put the tags in a giant span element surrounding the whole citation at template:Citation/core. The "class" element works, but somehow the "title" element doesn't. Can somebody take a look and see what I'm doing wrong? It's probably something obvious. I'm leaving it in its present state because it doesn't break anything, and I've commented out the code. COGDEN 02:03, 8 June 2007 (UTC)
-
-
-
-
-
-
-
-
-
-
-
- Update: Seems to be working now. COGDEN 05:12, 8 June 2007 (UTC)
-
-
-
-
-
Journal year without author
The formatting for a journal paper with a year but no author looks kind of ugly to me. E.g.
- 1984, "The publications and writings of Jack Kiefer", Annals of Statistics 12 (2): 424–430.
If formatting it by hand, I'd probably put the year at the end, e.g.
- "The publications and writings of Jack Kiefer", Annals of Statistics 12 (2): 424–430, 1984.
Alternatively maybe one should use some sort of standin for an author here... Is there a stylesheet somewhere that describes what the right thing to do in this case is? David Eppstein 22:59, 20 June 2007 (UTC)
- I changed it as you suggested, moving the date later. I think that's better, and more standard. I think these citations usually start with the title when there is no author. COGDEN 23:35, 20 June 2007 (UTC)
-
- Thanks!
Still has an odd comma, though:- “The publications and writings of Jack Kiefer”, Annals of Statistics 12 (2): 424–430, 1984, <http://www.jstor.org/view/00905364/di983922/98p00377/0>.
- Thanks!
-
- While I'm asking about this template: {{cite journal}} allows a doi= field, while for this one it seemingly has to be handled via id={{doi}}. Any chance of handling doi directly, while still allowing other info such as {{MathSciNet}} in the id field? —David Eppstein 23:38, 20 June 2007 (UTC)
-
-
- It actually does handle DOI directly, but it hasn't been put in the documentation yet. COGDEN 00:37, 21 June 2007 (UTC)
-
I see. I was confused into thinking it didn't handle doi at all, because the article I was using as a test case also had an id. What it still doesn't handle is mixing id and doi in the same citation. Both doi and id, supplied, but as of now the template only shows the id:
- Kiefer, J. (1953), “Sequential minimax search for a maximum”, Proceedings of the American Mathematical Society 4: 502–506, MR0055639, DOI 10.2307/2032161
Supplying a doi without an id does work:
- Kiefer, J. (1953), “Sequential minimax search for a maximum”, Proceedings of the American Mathematical Society 4: 502–506, DOI 10.2307/2032161
what I would like the first example to look like:
- Kiefer, J. (1953), “Sequential minimax search for a maximum”, Proceedings of the American Mathematical Society 4: 502–506, MR0055639, doi:10.2307/2032161
David Eppstein 00:53, 21 June 2007 (UTC)
- I hopefully made the change. COGDEN 01:10, 21 June 2007 (UTC)
-
- Thanks! Looks good. —David Eppstein 01:13, 21 June 2007 (UTC)
url/contribution/title
One more suggestion: when a citation has all three of url=, contribution=, and title=, the url link is currently placed on the title; I think in that case it would be better placed on the contribution. I am thinking here e.g. of conference proceedings papers, copies of which are often linked from the authors' websites. —David Eppstein 16:53, 21 June 2007 (UTC)
- There is a separate tag for urls for the contribution/chapter, called contribution-url or chapter-url. So you can have two separate urls. I was thinking, though, that it might be helpful to have the default behavior be to link url with the contribution/chapter when url is given but contribution-url isn't. COGDEN 17:36, 21 June 2007 (UTC)
-
- I made this change. This is now the default behavior when there is a contribution but no contribution-url. The link will be on the title of the contribution, not the title of the collective work. Otherwise, everything stays the same. COGDEN 18:03, 21 June 2007 (UTC)
When there is more than one author
{{Citation | last = Bloggs | first = Fred | last2 = Doe | first2 = John | last3 = Smith | first3 = John | title = Which way around? | publisher = Wikipedia}} gives the following.
Bloggs, Fred; Doe, John & Smith, John, Which way around?, Wikipedia
I would expect to see "Bloggs, Fred; Doe, John & Smith, John, Which way around?, Wikipedia" The same happens with the Harvard template. Is there an agreed style that makes the co-authors appear with their surname last? MortimerCat 07:04, 1 July 2007 (UTC)
- Yes. Co-authors are always cited that way. The only reason we do last name, first name is for alphabetization purposes. That's a moot point for co-authors after the first, so their names are rendered normally. Powers T 12:42, 3 July 2007 (UTC)
-
- I have to disagree with this. It's certainly not always done that way, and in fact almost all of the journals in my field use a "Surname, Initials" format for every author. My personal opinion is that it's better (easier to read) if the ordering is consistent. Since you need the surname first for the leading author, you put up with having it first for all the authors. -- Rjw62 13:01, 3 August 2007 (UTC)
-
-
- From a look at some random files on my hard drive, I have to disagree as well. I saw the following:
- All names are cited as Surname, Initials by: Journal of Physics A, Nonlinearity and Proceedings of the Royal Society of London.
- All names are cited as Initials Surname …
- and references are put in alphabetical order by: Acta Numerica, American Mathematical Monthly, SIAM Review and SIAM Journal of Numerical Analysis.
- and references are not put in alphabetical order by: Journal of Mathematical Physics and Journal of Chemical Physics.
- and references are put in footnotes by: Zeitschift für Angewandte Mathematik und Mechanik.
- As you can guess from the list of journals, my fields is applied mathematics (more specifically, numerical analysis). In fact, I thought that Rjw62's field is the same, given User:Rjw62 reports an Erdős number, so I'm surprised by the statement that almost all journals in his/her field use "Surname, Initials" for every author. -- Jitse Niesen (talk) 14:29, 3 August 2007 (UTC)
- It's truly mixed (and confusing), but for the sake of consistency, I do it the way Rjw62 discussed (family name always first). This is especially important if you have East Asian or Hungarian names which have it the other way around in everyday use. For example PubMed will fail you when you search for papers by somebody called, say, Akira Watanabe, and happen to think "Akira" is the proper search term because it would be Watanabe Akira in Japanese style. Western style would be Watanabe, Akira, and in PubMed it would be Watanabe A. For this reason, I also try to give full names, not just initials, whenever possible. Dysmorodrepanis 16:24, 3 August 2007 (UTC)
- From a look at some random files on my hard drive, I have to disagree as well. I saw the following:
-
-
-
-
- My field is fluid dynamics, and I was only looking at Journals that use Harvard (author-year) style citations. (In any case Journals that consistently use "Initials, Surname" are surely irrelevant to this discussion.) In the pile of papers I've got in front of me, the only one that did "Surname, Initials" for the first author and then "Initials, Surname" for the others is the JGR. The others using Harvard references: JFM, PEPI, GpApFD, GJI, J. Biomech., and MMB all have "Surname, Initials" throughout. -- Rjw62 13:03, 8 August 2007 (UTC)
-
-
et al
When there are four or more authors, only the first three are shown. What are we trying to save by this abbreviation? Is there any way to force a longer author list to be visible? Also, how are we supposed to format a name like "Harry B. Hunt, III"? using "last = Hunt, III" works but then you have to do the same hack in the {{harv}} reference templates in order to get the correct link made, which makes the reference look wrong there. —David Eppstein 17:33, 19 July 2007 (UTC)
- In scientific journals, et al is used inline and in the References, the full list is almost always given. In some (rare) cases, even full-ref author names lists are abbreviated, but even then, only after more than 3 names. See for example here (Fitzpatrick et al. 2005). But usually, even such very long author lists get cited in full, as is only proper to do. Science allows a very brief format (first author et al.) but this is unusual and only because that journal has generally very short articles, with references often moved to the electronic appendix where they are then given in full.
- The "first/last" format in the templates is not able to (and never will be) to handle all eventualities of author names correctly; besides, it creates considerable obfuscation and bloat. Dysmorodrepanis 07:37, 2 August 2007 (UTC)
- Would it be so hard to add a "suffix" field? first=Harry B.|last=Hunt|suffix=III. BibTeX has one. As for "et al", I am not talking about what goes into the Harvard cite, but what goes into the formatted reference itself. We do not have the same conciseness constraints that paper journals do. —David Eppstein 14:56, 2 August 2007 (UTC)
- It wouldn't be too hard to add a suffix field, nor would it in my opinion create "considerable obfuscation and bloat". Mentioning authors beyond the third in the References section also seems a good idea and in line with general practice. -- Jitse Niesen (talk) 15:25, 3 August 2007 (UTC)
- Well, to add 7 characters to express 3-4 (Jr. to III.) is bloat, overhead, cruft, kipple, shland, call it what you like. And the template is already afoul of "you can edit this page now" IMHO. Think of the inexperienced Wikipedia users. Not everyone is markup-savy. A page that uses the template exclusively for referencing can not be "edited now" with proper results by the novel user, in my personal experience, whereas simply writing down the ref in markupped plaintext is a) shorter and b) far more easily understandable.
- As regards obfuscation - try a look at the source code of any page that makes extensive use of the cite template and the ref tag. It looks like it's written by Microsoft programmers.
- The template's a vintage from those days when WP was mainly unreferenced and most of the refs were textbooks with few authors/editors, and not scientific papers with perhaps 10 or more authors, online abstracts and fulltexts, DOIs, PMIDs, internal links, external links, etc. "We do not have the same conciseness constraints that paper journals do" is precisely the point: there is just no way to build a template that does what the present one does, covers all (or even 95%) of the possibilities, and is both sleek, and intuitive for novice users - we do have a conciseness (or maybe "cleanness") constraint as regards the code produced: it's called "you can edit this page now". Dysmorodrepanis 16:53, 3 August 2007 (UTC)
- I don't see how that argues against my suggestion of another field for proper formatting of some names. Editors would only have to know about it on the rare occasion that they run into one of those names, so it wouldn't impede editability. If you're arguing against the existence of this whole template, then (1) you're doing it in the wrong place, and (2) you need to address the serious formatting inconsistencies that arise whenever people try to format citations manually. —David Eppstein 18:05, 3 August 2007 (UTC)
- It wouldn't be too hard to add a suffix field, nor would it in my opinion create "considerable obfuscation and bloat". Mentioning authors beyond the third in the References section also seems a good idea and in line with general practice. -- Jitse Niesen (talk) 15:25, 3 August 2007 (UTC)
- Would it be so hard to add a "suffix" field? first=Harry B.|last=Hunt|suffix=III. BibTeX has one. As for "et al", I am not talking about what goes into the Harvard cite, but what goes into the formatted reference itself. We do not have the same conciseness constraints that paper journals do. —David Eppstein 14:56, 2 August 2007 (UTC)
DOI as URL?
When there's a DOI for a journal article, it typically resolves to a web page corresponding to that article. In the event of no specific URL being provided, would it be sensible to use the dx.doi.org resolver as the URL and provide an inline link on the article title (and then not add the separate DOI link at the end). Accessibility and usability-wise it's surely much better to have the main web link on the title rather than on an obscure number. -- Rjw62 19:36, 1 August 2007 (UTC)
- You raise a good point and one of the comments left on my talk page shows that it does indeed confuse some people. The disadvantage is that the DOI is no longer visible, though it can still be found in the URL. I'm not sure that the number by itself is very useful, so I'm inclined to agree with Rjw62. -- Jitse Niesen (talk) 04:57, 2 August 2007 (UTC)
-
- This would match the behavior of, e.g., MathSciNet, which links to articles by doi but doesn't show the doi itself when it does. It seems reasonable enough to me. —David Eppstein 05:10, 2 August 2007 (UTC)
-
-
- I now implemented this. For example,
- {{citation | author = Diakonis | title = Dynamical Bias in the Coin Toss | journal = SIAM Review | doi = 10.1137/S0036144504446436 }}.
- used to give
- Diakonis, "Dynamical Bias in the Coin Toss", SIAM Review, DOI:10.1137/S0036144504446436.
- but now gives
- Diakonis, “Dynamical Bias in the Coin Toss”, SIAM Review, DOI 10.1137/S0036144504446436.
- -- Jitse Niesen (talk) 13:11, 18 August 2007 (UTC)
- I now implemented this. For example,
-
-
-
-
- The former is more useful, especially for people viewing printed copies of pages. Andy Mabbett | Talk to Andy Mabbett 13:15, 18 August 2007 (UTC)
-
-
-
-
-
-
- That's a good point, and we should edit the css styles so that the DOI shows up when the article is printed. That's a little tricky, so I'm looking into that. Another issue is that probably, the DOI should correspond to the URL, but probably not the IncludedWorkURL. In other words, if there is a DOI, it will probably correspond to the entire work, rather than any included part. That might not always be the case, but I think it's the best default behavior for this template. COGDEN 19:50, 4 September 2007 (UTC)
-
-
-
-
-
-
-
-
- In my experience, a DOI for a contribution within a conference proceedings is almost always for the contribution itself and not for the whole proceedings. Is that what you mean re "included part"? —David Eppstein 20:28, 4 September 2007 (UTC)
-
-
-
-
-
-
-
-
-
-
- Yes, I guess you're right. I reverted my recent edits, and I'll take a look again taking this into account. COGDEN 22:43, 4 September 2007 (UTC)
-
-
-
-
-
Problem with accessdate?
I use {{citation}} a lot. I've noticed that many of my citations now don't have the accessdate automatically wikilinked. Before, I could put in accessdate-2007-08-03 and it would appear as 2007-08-03. Does anyone know why this was changed? Is it going to be fixed or do I have to manually make those links now? Karanacs 19:51, 3 August 2007 (UTC)
I have also noticed that this template doesn't handle the accessdate parameter in exactly the same way as the other citation templates I've tried handle them. It doesn't link them to the year and month. Below, I have tried the same citation with the Template:Citation and Template:cite journal templates, using exactly the same parameter list.
Should accessdate be handled the same by Citation as by other templates, or should it be handled differently?
- Here's the citation using "{{Citation" ...": Proctor, R. A. (October, 1873), “Finding the Way At Sea”, The Popular Science Monthly (New York: D. Appleton and Company) III: 722, <http://books.google.com/books?id=TXsKAAAAIAAJ&printsec=titlepage#PPA721>. Retrieved on 2 August 2007
- Here's the same citation using "{{cite journal ...": Proctor, R. A. (October, 1873). "Finding the Way At Sea". The Popular Science Monthly III: 722. New York: D. Appleton and Company.
Here's the parameter list I used in both cases:
| journal=The Popular Science Monthly | title=Finding the Way At Sea | volume = III | year=1873 | date=October, 1873 | pages=722 | last = Proctor | first = R. A. | publisher=D. Appleton and Company | location=New York | url=http://books.google.com/books?id=TXsKAAAAIAAJ&printsec=titlepage#PPA721 | accessdate=2007-08-02 }}
--SV Resolution(Talk) 23:01, 15 August 2007 (UTC)
- The cause seems to be this edit by COGDEN with edit summary "Fix potential problem with AccessDate". I assume COGDEN had a reason for it and asked him to explain. -- Jitse Niesen (talk) 11:13, 18 August 2007 (UTC)
-
- I didn't think it was a good idea to assume that the parameter of
access-date
was formatted in a way that could be wikilinked. That seems less robust and user friendly. But if people are comfortable with it, I'm fine with changing it back. It's not that big a deal, especially if other templates do it that way. COGDEN 22:10, 18 August 2007 (UTC)- Most, if not all, of the other templates do wikilink the accessdate. I hadn't noticed that this had changed until an FA reviewer complained that half of my citations had wikilinks and the other half (the ones that used this template) didn't. If you could change it back, that would be very appreciated. Karanacs 20:20, 19 August 2007 (UTC)
- I didn't think it was a good idea to assume that the parameter of
-
-
-
- Thinking about this further, I'm not sure this is a good idea, and maybe we need to change it in the other templates, but the
date
parameter isn't automatically wikified, and I think there ought to be some consistency among the various date parameters. COGDEN 01:39, 5 September 2007 (UTC)- Don't know if this is related or not, but there seems to be a space missing between URL and access date when citing a web page. For example:
- Thinking about this further, I'm not sure this is a good idea, and maybe we need to change it in the other templates, but the
-
-
*{{citation | last = Jackson | first = Andrew | publication-date = 2001 | date = 2001 | year = 2001 | title = The Battle of Barrosa, 5th March 1811 | publisher = www.peninsularwar.org | url = http://www.peninsularwar.org/barrosa.htm | accessdate = [[3 September]], [[2007]] }};
produces:
- Jackson, Andrew (2001), The Battle of Barrosa, 5th March 1811, www.peninsularwar.org, <http://www.peninsularwar.org/barrosa.htm>. Retrieved on 3 September 2007;
I had a look at the template code, but frankly it didn't mean a lot to me - any chance of getting it fixed by someone who knows how such things work? Cheers. Carre 08:03, 5 September 2007 (UTC)
- I'd like to reopen this topic. We clearly have a lack of consistency among the different citation templates that should be rectified. As SV Resolution pointed out, use of the
accessdate
parameter in most of the templates produces:
Retrieved on 2007-08-02.
- while the same parameter in {{citation}} produces:
(retrieved on 2007-08-02)
- I agree with COGDEN that there's not much utility in having the retrieval date linked. (Does anyone really care what else was going on coincident with SV Revolution reading about the Battle of Barrosa? If not, why else have the link?) And linking the date adds an extra level of complexity (i.e. potential problems) in the coding of the templates, for no particular gain. Therefore I'd pull the linking off of the other templates.
- But the problem isn't just in the linking, but in the capitalization and punctuation as well. Can we adjust the cap/punct in {{citation}} right away, and then proceed to push the linking discussion to a conclusion? -Ipoellet 00:48, 21 September 2007 (UTC)
-
- What the use of
accessdate=2007-08-02
displays on most other citation templates depends on the user's preference settings. In your case, it's apparently "[[2007]]-[[August 2|08-02]]". In mine, it's "[[2 August]] [[2007]]". That's the reason these dates are wikilinked - for the prefered rendering, not for the links themselves. RossPatterson 12:29, 13 October 2007 (UTC)
- What the use of
-
-
- I agree that it makes no sense to wikilink the access date. Changing the date format to match user preferences does make sense. ---- CharlesGillingham 23:10, 15 October 2007 (UTC)
-
Sorry to be draconian, but this must be consistent across all the citation templates. Since all of the other citation templates wikilink the accessdate (so that user date preferences take effect), I have changed this template to do the same. If you would like accessdates to not be wikilinked, please seek concensus across all the citation templates before changing it back. Thanks! Kaldari (talk) 18:24, 19 January 2008 (UTC)
- No draconian measures necessary. :) As you note, the templates wikilink accessdate so that user date preferences take effect. This will no longer be necessary when bug #4582 has been resolved. I'm working on it, but the required server-side modifications have low priority vis-a-vis the new pre-processor. -- Fullstop (talk) 18:38, 19 January 2008 (UTC)
Issue where chapter (or contribution) is present, but author is absent
It’s rather common, especially in the case of web pages—this one might be an example—to want to include both work and section, but to leave out the author(s).
Using the form suggested above, but missing out the author field, gives us a leading comma. I guess this is by accident rather than design. Could/should it be fixed?
{{Citation |title=Wikipedia, The Free Encyclopedia |chapter=Template:Citation |publisher=Wikimedia Foundation |contribution-url=http://en.wikipedia.org/wiki/Template:Citation }}
Result at 10:48, 4 August 2007 (UTC) (template substed):
- , "Template:Citation", Wikipedia, The Free Encyclopedia, Wikimedia Foundation
Result now:
- “Template:Citation”, Wikipedia, The Free Encyclopedia, Wikimedia Foundation
Ian Spackman 10:48, 4 August 2007 (UTC)
- Your suggestion makes sense and nobody protested, so I implemented it. -- Jitse Niesen (talk) 11:06, 18 August 2007 (UTC)
-
- Thanks! —Ian Spackman 14:16, 18 August 2007 (UTC)
PubMed citations
I have searched trying to find support for medical references using the PubMed ID number. At present the articles I have seen all use the ref system which is now deprecated. Any ideas?--CloudSurfer 19:46, 7 August 2007 (UTC)
- Answer found in the cite template. Ignore the above. --CloudSurfer 11:28, 8 August 2007 (UTC)
ISSN
Can or should one use the ISBN field for publications with ISSN identifiers? I've been citing an academic online publication [4] which has an ISSN, but no ISBN. {{Cite journal}} has an ISSN field, but I'm trying to transition to this more versatile template. —Josiah Rowe (talk • contribs) 04:22, 9 August 2007 (UTC)
- This template also has an ISSN field, but it was not documented. So you can use something like
- {{ citation | author = Karim CHABANI | title = Double Trajectories: Crossing Lines in Fun Home | journal = GRAAT | issn = 1954-3220 }}
- which produces
- As you probably guessed, using the ISBN field is not a good idea. -- Jitse Niesen (talk) 09:34, 18 August 2007 (UTC)
Problem with longer DOI
I found that when using longer DOI (example shown below), resulted URL link is wrong and displayed doi also not proper
Hockberger, Philip E., “A History of Ultraviolet Photobiology for Humans, Animals and Microorganisms”, Photochemisty and Photobiology 76 (6): 561-569, doi:10.1562/0031-8655(2002)076<0561:AHOUPF>2.0.CO;2, <http://www.bioone.org/archive/0031-8655/76/6/pdf/i0031-8655-76-6-561.pdf>
the true doi for above example is 10.1562/0031-8655(2002)076<0561:AHOUPF>2.0.CO;2 pruthvi 22:04, 17 August 2007 (UTC)
- This is caused by the < symbol in the DOI. I don't know how to fix it. However, as a workaround, you can do
- {{citation | ... | id = {{doi | id=10.1562/0031-8655(2002)076%3C0561:AHOUPF%3E2.0.CO;2 | label=10.1562/0031-8655(2002)076<0561:AHOUPF>2.0.CO;2 }} }}
- So you have to write the DOI twice, the first time you replace < with %3C and > with %3E, the second time you leave < and > as normal. This produces
- Hockberger, Philip E., “A History of Ultraviolet Photobiology for Humans, Animals and Microorganisms”, Photochemisty and Photobiology 76 (6): 561-569, doi:10.1562/0031-8655(2002)076%3C0561:AHOUPF%3E2.0.CO;2 , <http://www.bioone.org/archive/0031-8655/76/6/pdf/i0031-8655-76-6-561.pdf>
- Technical details: The first problem is that URLs cannot contain characters like < (see Help:URL). The urlencode magic word is implemented for this reason, so I wrapped the DOI inside an urlencode. Unfortunately, there is a bug in the implementation and {{urlencode:<}} does not yield %3C as it should (bugzilla:9031). -- Jitse Niesen (talk) 10:45, 18 August 2007 (UTC)
Languages
I would find it useful if this template had a {{{language}}} parameter like that in {{cite book}}. This adds a note regarding the language of the work cited. Is there any possibility of someone adding this? — Gareth Hughes 15:40, 20 August 2007 (UTC)
- Ditto. -- SatyrTN (talk | contribs) 16:46, 23 August 2007 (UTC)
- Another ditto. __meco 09:17, 15 September 2007 (UTC)
- Certainly agree: especially when it’s used in place of {{cite web}}—Ian Spackman 19:56, 13 October 2007 (UTC)
- Bump and agree. --Wizard191 (talk) 20:59, 10 February 2008 (UTC)
Pages numbers in contributions within books
I'm not entirely happy with the "at xx–yy" formatting of pages in book contributions. It's not obvious that it refers to page numbers, and I think it should go before rather than after any doi, id, etc that refers to the contribution. Here's an example:
Markup: *{{citation|last=Elkies|first=N. D.|authorlink=Noam Elkies|contribution=Shimura curve computations|title=Algorithmic Number Theory: Third International Symposium, ANTS-III|publisher=Springer-Verlag, Lecture Notes in Computer Science 1423|year=1998|doi=10.1007/BFb0054849|id={{arxiv|math.NT|0005160}}|pages=1–47}}.
As formatted by the current version of the template:
- Elkies, N. D. (1998), “Shimura curve computations”, Algorithmic Number Theory: Third International Symposium, ANTS-III, Springer-Verlag, Lecture Notes in Computer Science 1423, pp. 1–47, arXiv:math.NT/0005160, DOI 10.1007/BFb0054849.
As formatted 20 Aug 2007:
- Elkies, N. D. (1998), "Shimura curve computations", Algorithmic Number Theory: Third International Symposium, ANTS-III, Springer-Verlag, Lecture Notes in Computer Science 1423, arXiv:math.NT/0005160, at 1–47.
What I'd like to see:
- Elkies, N. D. (1998), "Shimura curve computations", Algorithmic Number Theory: Third International Symposium, ANTS-III, Springer-Verlag, Lecture Notes in Computer Science 1423, pp. 1–47, arXiv:math.NT/0005160.
—David Eppstein 17:54, 20 August 2007 (UTC)
- I'm not happy with either, but the problem (or so I deduced) is that the template is also linked directly from within <ref></ref> tags, the page number then referring to a specific page for which that ref applies. Hence the need for the "at xx-yy" at the end.
- Perhaps the authors of the nifty code could (hint!, hint!) find a way to let editor tell the template "hey, this is a bibliographic cit, not an inline one," so allowing it to modify its behaviour accordingly.
- -- Fullstop 22:44, 4 September 2007 (UTC)
-
- Maybe the difference is that there's a contribution title in this example, but not in the other kind of use you describe? —David Eppstein 22:56, 4 September 2007 (UTC)
-
-
- I made the change. Probably a good suggestion. The only issue that might arise is "pp." implies that there are more pages than one. Might have to implement a separate "page" parameter in addition to "pages". COGDEN 01:50, 5 September 2007 (UTC)
-
-
-
-
- Thanks! —David Eppstein 01:54, 5 September 2007 (UTC)
-
-
Month/Season
How do you cite quarterly magazines? For example, the Winter 2005 issue of AI Magazine. Same question for bi-monthly magazines, e.g.: January-February. Should I use the "date" field? Will this mess up Harvard Citations? ---- CharlesGillingham 05:31, 30 August 2007 (UTC)
- The volume/issue number is usually provided too. Using your example, a citation for an article from the Winter 2005 issue would look like this:
-
- Nilsson, Nils J. (2005), “Human-Level Artificial Intelligence? Be Serious!”, AI Magazine 26 (4): 68–75
- Should AI Magazine not have had issue numbers, the citation would have read:
-
- Nilsson, Nils J. (2005), “Human-Level Artificial Intelligence? Be Serious!”, AI Magazine 26 (Winter): 68–75
- -- Fullstop 22:25, 4 September 2007 (UTC)
Citation broken?
It looks like something has changed with the {{citation}} template, breaking existing uses. And some well-meaning admin has protected it so I can't fix it. (I have steadfastly refused to involve myself in admin distractions.) The issue involves "location", "place", and "publication-place". Usage was inconsistent between the {{cite}} family and this, and apparently someone didn't notice. Help?! --KSmrqT 14:57, 3 September 2007 (UTC)
- What exactly is broken? If you can give my an example, I'll try to fix it. COGDEN 19:22, 4 September 2007 (UTC)
-
- I'm not sure what all is broken, nor everything to expect. What I do expect is that "place" should be used to give the city where something was printed, not a location in the text, because that is what the documentation says. At the very least, I expect consistency. Compare:
-
- Doe, John (2001), My Life in Obscurity, Paris: Gauthier
- {{citation | last=Doe | first=John | title=My Life in Obscurity | year=2001 | place=Paris | publisher=Gauthier-Villars }}
- Yvon Villarceau, Antoine Joseph François (1848), “Théorème sur le tore”, Nouvelles Annales de Mathématiques, Série 1 (Paris: Gauthier-Villars) 7: 345–347, OCLC 2449182
- {{citation | last = Yvon Villarceau | first = Antoine Joseph François | author-link = Yvon Villarceau | title = Théorème sur le tore | journal = Nouvelles Annales de Mathématiques | volume = 7 | series = Série 1 | pages = 345–347 | publisher = Gauthier-Villars | place = Paris | date = 1848 | oclc = 2449182 }}
- Doe, John (2001), My Life in Obscurity, Paris: Gauthier
-
- Notice that the "place" field is interpreted in two completely different ways, which is surely wrong. --KSmrqT 00:22, 5 September 2007 (UTC)
- I'm not sure what all is broken, nor everything to expect. What I do expect is that "place" should be used to give the city where something was printed, not a location in the text, because that is what the documentation says. At the very least, I expect consistency. Compare:
-
-
- I think I've fixed this. COGDEN 00:42, 5 September 2007 (UTC)
- Thanks much. If we could also get support for the "series" field, currently ignored, that would also be appreciated. --KSmrqT 16:26, 5 September 2007 (UTC)
- I added a "series" provision for both books and periodicals. Take a look and see if this is how you'd format it in theh above citation. COGDEN 17:10, 5 September 2007 (UTC)
- Thanks much. If we could also get support for the "series" field, currently ignored, that would also be appreciated. --KSmrqT 16:26, 5 September 2007 (UTC)
- I think I've fixed this. COGDEN 00:42, 5 September 2007 (UTC)
-
Citing patents
I see that this template supports citing patents. Would it be possible to add a section on Citing patents to the documentation? -- Boracay Bill 00:39, 7 September 2007 (UTC)
- I took a stab at this after needing it myself. —David Eppstein 01:32, 21 September 2007 (UTC)
Recent changes
What's with the extra url in brackets, like "<http://www.google.com/>"? They seem to have shown up in the last day or so, without any discussion here. Should they be there? -- SatyrTN (talk | contribs) 02:18, 7 September 2007 (UTC)
- They should only show up when there is no title, and in printed versions of the citations (except in IE, which is too buggy). Angle brackets around urls is a fairly standard citation convention. Usually, though, the url is hidden in a link. If there is consensus, we could change this, but I think the idea is to make sure that any trailing punctuation in the url is clearly designated as being part of the url. Since angle brackets can't be part of an url, they are used. COGDEN 07:45, 9 October 2007 (UTC)
Citing non-print media
Is there a separate template for citing non-print media such as audio- and videotapes, CDs and DVDs? Cheers, Jacklee 09:30, 20 September 2007 (UTC)
- You could probably use this one. There are tags for title, place, publication-place, author, publisher, etc., which could all be used. If there are any specific tags that might be helpful for citing non-print media, I'd like to incorporate them. COGDEN 07:47, 9 October 2007 (UTC)
-
- I've given this some thought, and think I've identified the issues that will need to be addressed:
- issue #1 are the fields that would be required for lastname/firstname splitting for compatibility with harvard citation.
- i.e. director-first/-last, producer-first/-last, speaker-first/-last (for audio).
- This I assume is not a major issue since these variables can alias to existing ones (which aren't needed for A/V: "Writer" is not relevant to non-print media; a (film) script is again "print").
- issue #2 (and the only potential stumbling block I can think of) is pages=, and this is only because it inserts "pp.".
- In A/V material, it would be just a <timecode>. This isn't just a non-print issue. For example, some government publications have only column number(s). Maps may only have grid numbers. Perhaps a generic "at=" is the way to go.
- issue #3 is *one* really new field, medium=.
- The value of this field would need to appear just before location: publisher. e.g. Foot in Mouth [DVD]. Hollywood: Paramount
- Medium= unfortunately can't be mapped to the existing series= (because series= would be needed for serials), but it could perhaps be recycled for print publications too (e.g. [map], [liner notes] etc)
- issue #4 is that - for the average 'pedian - there are no examples that demonstrate how {{citation}} could be used for a lot more than print.
- There are a number of gotchas that the average 'pedian wouldn't be aware of. For example, that for a TV news broadcast the producer is the one that appears in the first field (and not, for example, "MacNeil, Robert & Jim Lehrer"). But for film (irrespective of length or medium), director comes first.
- That said, if its ok with you and the other savvy people who maintain this template, and if someone helps with collecting (formatted) examples with which to work with, I'm willing to write the documentation that would make non-print (and "special" print) media supportable too. Determining how to support these formats could then be based on that.
- -- Fullstop 04:41, 10 October 2007 (UTC)
- I've given this some thought, and think I've identified the issues that will need to be addressed:
-
-
- Sounds great. That's probably the best way to do it: create the documentation and examples, then edit the code to match. COGDEN 19:07, 10 October 2007 (UTC)
-
-
-
-
- how about a Citation/doc/sandbox in which we can scribble in? Or do you have a better idea? -- Fullstop 19:58, 10 October 2007 (UTC)
-
-
- Template:Citation/doc/draft is up. Comments/advice/edits are welcome. -- Fullstop 07:18, 13 October 2007 (UTC)
Hanging indent proposal
For a proposal to add an optional formatting parameter to this and related citation templates, which would allow display as a hanging indent, see this discussion. --cjllw ʘ TALK 04:48, 25 September 2007 (UTC)
- This is easy to do in Common.css. No need to change the templates. COGDEN 07:53, 9 October 2007 (UTC)
"Retrieved on..."
{{Editprotected}} Could we standardize this template with the other "Cite" templates wrt "Retrieved on"? This template produces:
Whereas Cite news and the others produce:
-- SatyrTN (talk | contribs) 13:48, 25 September 2007 (UTC)
-
-
- Done, for consistency. Should now appear as:
- Cheers, --cjllw ʘ TALK 02:53, 26 September 2007 (UTC)
- Urgh - wish you hadn't stuck the trailing full-stop on there... it's made Battle of Barrosa#Bibliography look yucky, with the period followed by semi-colon. Hey ho - can't please all of the people all of the time, although the template documentation implies that the trailing punctuation isn't provided by the template, and it's only the new incarnation of accessdate that does it. Carre 13:43, 26 September 2007 (UTC)
-
- I removed the trailing period. —David Eppstein 15:33, 26 September 2007 (UTC)
- Thank you very much - I'm sure my article wasn't the only one affected, and that was a nice speedy response! Carre 15:51, 26 September 2007 (UTC)
- I hate to be a whiner, but that trailing period is part of the issue of consistency with other templates. With it removed, reference list items that use {{citation}} and {{cite news}} (among others) alongside each other will look out of synch. I've started to go back and add periods outside the template, i.e.:
<ref>{{citation|etc}}.</ref>
- And that does work fine - but it makes {{citation}} and oddball when doing a bunch of references. Ipoellet 00:59, 27 September 2007 (UTC)
But it means that one can use {{citation}} in a context where one doesn't want to finish the sentence, unlike the other citation templates. It's not so hard to add the period manually, is it? In any case, changing the template now would mean going through and removing all the periods following the template in its current usage, a painful task. It's more important for this template to be consistent with itself than with the other templates it replaces. —David Eppstein 01:17, 27 September 2007 (UTC)
- I'd still think that it would've been desirable to have consistency between these templates, as I gather this one is supposed to be a kind of 'one-stop shop' to emulate those other, more specialised, ones. Still, take your point that it would be a pain to retrofit if others have already manually added the trailing punctuation themselves. Am not going to press the point (no pun intended)....
- I'm curious though- what's the intent behind having a semi-colon at the end of each reference in that Battle of Barrosa article? It would seem to be a bit unusual...--cjllw ʘ TALK 02:35, 27 September 2007 (UTC)
-
- Personally, I can deal either way, so it's not a huge deal as far as I'm concerned. I'm just sayin'... Ipoellet 06:16, 27 September 2007 (UTC)
- This is the reason I thought my readdition of the editprotected template was inappropriate (see edit history), as I figured there may be some discussion of it. Why have the semi-colons at the end of the references in B-of-B article? Because it's grammatical to end entries in a list with a ';', until the last entry which ends in a '.'. Just my opinion, not a policy or anything. Carre 07:16, 27 September 2007 (UTC)
- Personally, I can deal either way, so it's not a huge deal as far as I'm concerned. I'm just sayin'... Ipoellet 06:16, 27 September 2007 (UTC)
Why no quotation
When adding data subborned<g> from media (broadcasts, documentaries, videos) or for writing about fiction, or reference in a book, the template is useless as it has no quotation capability. A trailing free notes feature (that displays--see the discussion ongoing at: Citation templates link for where that came from) is another valuable feature. Multiple sub-notes, comments as it were by the hanging editor might be useful (n1=, n2=, n3=, n4=) For example: n1=a second quotation (than quote=), n2=context of 1st privy council meetings and quote from there is unclear as to whether the letter was recieved in between two meetings, or whether the second quote was in the same meeting.
Best regards, // FrankB 16:29, 6 October 2007 (UTC)
- a bibliography section is distinct from a notes section and both are distinct from quotations.
- Notes belong in "==Notes=="
- Sources (which is what {{citation}} formats) belong in "==Bibliography==" or "==References=="
- Quotations belong in the article proper. They are your most valuable resource.
- The H-I-P discussion you refer to is about formating bibliographic lists. (#2 here)
- -- Fullstop 19:27, 6 October 2007 (UTC)
-
- Commenting from the sidelines, I agree with points #1 and #2, though actual practice in WP articles seem to only rarely follow this. #3 is a good illustration of one article with inline quotes having supporting sources cited so that the part of the source supporting particular quotes is easy to locate.
-
- I've also seen situations where a source was briefly paraphrased inline and quoted at some length in a sourced footnote to support the paraphrase. The sourcing info in the footnote containing the quote might be a page-numbered reference to a work fully cited in a Bibliography section. (something like: Smith accused Jones of being the culprit.<ref>{{harvnb|Smith|2004|p=123}}, "A long quote from page 123 of a year 2004 book by Smith where he accused Jones of being the culprit."</ref>) Alternatively, and especially in articles not having a Bibliography section, instead of tagging a quote onto {{harvnb}}, the footnote might contain one of the citation templates which supports quotes (e.g., {{Cite web}}, {{Cite journal}}, or (egads!!) {{Cite book}}).
-
- Taking this line further, {{Citation}} can be used in place of all three of those just-mentioned citation templates and, like {{Cite book}} can be used to specify page number information directly in the full citation. However, unlike those three citation templates (and, probably, others), {{Citation}} does not support an optional quote= parameter. I think that adding an optional quote= parameter to {{Citation}} (to Template:Citation/core, actually) would be a good thing just in the interests of compatibility with other citation templates often seen used interchangeably with it (interchangeably except for the sometimes-encountered parameter incompatibilities, that is).
-
- Taking that thought a bit further yet, {{harvnb}} and other citation templates which don't currently support an optional quote= parameter could usefully support that as well -- which would allow the quote in my earlier point involving {{harvnb}} to be encapsulated into the template rather than passed outside of that, arguably at greater risk thereby of becoming separated in subsequent edits. The whole area of parameter compatibility between citation templates often used in place of one another (e.g., {{Citation}} and several alternatives, {{Cite web}} and several alternatives, etc.) deserves a close look. -- Boracay Bill 00:37, 7 October 2007 (UTC)
-
-
- It's easy enough to put the bibliographic data inside {{citation}} and the quote outside it as part of the same reference. All that putting it inside would accomplish would be to save you from typing some quote marks at the expense of typing |quote= instead. How would this be helpful? As for harv, I could imagine it helping in harv since you probably want the quote inside the parens, but can't you do the same thing easily enough by putting the quote outside the template again and using harvnb? —David Eppstein 01:32, 7 October 2007 (UTC)
-
-
- (edit conflict)
- True, <ref>s are way too often misused for shoving things off to the side. Not just for quotations, even for explanations! But just because a practice is popular or fashionable, does not mean that that practice is also a good idea.
- For material that can't be placed inline (long-ish quotations or otherwise), its far more elegant to put these sentences in notes (as in notes, not ref-like notes) instead of mucking up the references (in your example that would be a {{harvnb}} list) or the bibliography (works cited) sections. Examples:
- While it is sometimes necessary to prepend or append something to a {{harvnb}} tag - for example a leading cf. or even {{harvnb|...}} citing {{harvnb|...}} - having harvnb do one thing and do it well is far more important (and flexible) than trying to construct a 21-legged creature that can do every other chore as well. Next thing someone will want it to do the dishes. :) One tool, one task. Give me the Lego bricks, I'll build the house.
- Even if the old {{Cite ...}} templates did support quote=, I don't think its a good idea to carry that practice forward.
- For one, during a conversion to {{Citation}} its not a whole lot extra effort to move the quotation out of the {{ }} brackets.
- For another, even the longest quotations can be reframed so that they "work" inline. This one even changes word order around.
- And finally, its a practice that should not to be encouraged. People ought to treat their sources with dignity (and pride!) instead of treating them like stepchildren to be retained only in order to fulfill wikipedia policy.
- -- Fullstop 03:22, 7 October 2007 (UTC)
- (edit conflict)
-
-
- not to be argumentative here (really. no kidding.) — just commenting on your points.
- 0. what I had in mind there was maintainability. I spend a lot of time WP:Wikignomeing citation problems, and one common problem I see is orphan <ref name=whatever/> instances where some past editor has deleted a block of text containing the matching <ref name=whatever> ... </ref> instance. Separating related items often leads to problems, and putting the quote inside the template with an optional quote= parameter instead of alongside the template but separate from it would, I think, reduce problems.
- good vs. bad idea hinges on WP:MOS guidelines. I don't recall one on this.
- both of those examples need source citations, though, because they are quotes. Also, (1) articles with separate Notes and References sections are rare (articles with guideline-compliant content in Notes and References sections even rarer). (2) setting up separate Notes and References sections is messy, since cite.php-style <ref>... notation can (currently) be used with either one of them but not concurrently with the other. Also, I don't often see articles with Bibliography sections, though I've installed a few in articles where the raw material to populate such a section was present.
- point taken. I recall with some nostalgia the early unix tools, each of which did one thing well and worked well in combination with other tools. A decade or so ago when I stopped doing active software work, though, those tools had largely gone out of fashion. Heck, even I used vi in preference to ed, but most of my co-workers by that time used emacs or some monolithic swiss army knife tool which combined editor, revision control system, compiler, linker, make-alike builder, debugger, configuration management system, coffee-maker, and microwave oven — all through a single point&click interface. (but I digress)
- the {{Cite ...}} templates templates aren't old in the sense of being outdated and no longer used. they're not past-tense material. I see them used all the time. {{Citation}} could supplant some/many/most/all of them, but it has not.
- -- Boracay Bill 06:27, 7 October 2007 (UTC)
- not to be argumentative here (really. no kidding.) — just commenting on your points.
-
-
-
-
-
- 0. Supporting quote= wouldn't help. If the ref that holds the first citation (with or without quote=) vanishes, then the next ref is busted (irrespective of whether the first ref had quote= or not).
- By way of example,... If <ref name="Gone">In the book ({{citation|last=Mitchell|first=Margaret|...}}), Brett does not say "Frankly."</ref> vanishes, any subsequent <ref name="Gone" /> is dead in the water, no matter where the quotation within that first <ref> was, or if at all the template supported quote= or not.
- erm, I meant "good" as in putting quotations/explanations inline, "bad" idea to treat them as distractions.
- Indeed, supporting notes is a proverbial PITA. I've frequently wished there was a <note ...> equivalent of <ref ...> (or a <ref group="2" ...>) to make life easier.
- Rare thing anymore to find anyone who recognizes the "one tool, one task" paradigm. *phew* I'm glad to hear I'm not the only one being laughed at. I wish I had a penny for every time I heard "What, you're still using vi?" In my case it was nvi though, so nyah, I'm 'leeter than you. :) But I digress...
- I didn't mean "old" in the sense of archaic, but rather in the context of your previous comment in which you referred to quote= support for (backwards-?) compatibility.
On the other hand, is there a specific form of {{Cite ...}} that you've found that {{citation}} cannot substitute for? (examples please).
- -- Fullstop 06:09, 9 October 2007 (UTC)
- 0. Supporting quote= wouldn't help. If the ref that holds the first citation (with or without quote=) vanishes, then the next ref is busted (irrespective of whether the first ref had quote= or not).
-
-
-
Request: p. for single page
Can someone please change this so that use of the singular "page=" gives a "p." instead of a "pp."? At the moment, it doesn't matter whether you use "pages=" or "page=", you always get "pp.", and "pp. 443." looks rather silly. Hesperian 00:38, 11 October 2007 (UTC)
- I was under the impression that this template did not use the abbreviations "p." or "pp." when the "page/pages" parameter was used – in other words, only the page numbers show up. The situation is the same for {{Cite book}}. On the other hand, the abbreviations are used in {{Cite news}}. I've suggested that there should be some consistency across all citation templates: either all the templates should use the abbreviations, or they should be omitted for all of them. See the discussion taking place at "Template talk:Cite book#"Pages" parameter". Cheers, Jacklee 12:30, 11 October 2007 (UTC)
-
- Well it does. So can someone please fix it so that I don't get pp. before a single page? Hesperian 04:15, 14 October 2007 (UTC)
<!--============ Page within included work ============--> #if: {{{Periodical|}}} | |{{ #if: {{{Pages|}}} |, pp. {{{Pages}}} }}
-
-
- -- Boracay Bill 00:10, 15 October 2007 (UTC)
-
-
-
-
- The problem is more subtle than that. Only one variable named "Pages" (holding either pages= or page=) is being passed from {{Citation}} to {{Citation/core}}:
|Pages = {{{pages|{{{page|}}}}}}
- As a result, at the {{Citation/core}} level there is no longer any way to differentiate between pages= and page=.
- To be able to fix the p./pp. issue, it would be necessary to...
- Either pass both Page= and Pages= downwards
- Or determine 'p.'/'pp.' at {{Citation}} level and pass that as a separate variable, say PagesTag=
- Or prefix the Pages= argument as appropriate, and pass an unprefixed variant as COinSPages= downwards.
- Or prefix the Pages= argument as appropriate and use #regexpr in {{Citation/core}} to break off the p./pp. when it isn't wanted.
- Given that {{Citation/core}} is complicated enough already, #2 or #3 is probably the better solution. Of the two, #2 is the less klutzy and would also enable support for a generic at= variable (for non-print media).
- My suggestion (using #2, and adding support for at= while I'm at it):
- 1. In {{Citation/core}}:
- 1.1. Replace
|, pp. {{{Pages}}}
with|, {{{PagesTag}}} {{{Pages}}}
- 1.1. Replace
- 2. In {{Citation}}:
- 2.1. Add a new variable 'PagesTag=' to pass onwards:
| PagesTag = {{#if: {{{pages|}}}|pp.|{{#if: {{{page|}}}|p.}}<!-- -->}}
- 2.2. Replace
| Pages = {{{pages|{{{page|}}}}}}
with| Pages = {{#if: {{{pages|{{{page|}}}}}}
| {{{pages|{{{page|}}}}}}{{#if: {{{at|}}}|, {{{at|}}}<!-- -->}}
| {{{at|}}}
}}
- 2.1. Add a new variable 'PagesTag=' to pass onwards:
- All other code (including COinS and Periodical handling) remains unaffected.
- -- Fullstop 17:11, 15 October 2007 (UTC)
- The problem is more subtle than that. Only one variable named "Pages" (holding either pages= or page=) is being passed from {{Citation}} to {{Citation/core}}:
-
-
-
-
-
- I've implemented my suggestion at {{Citation/testing}} and {{Citation/core/testing}}. It works. -- Fullstop 18:37, 15 October 2007 (UTC)
-
-
- I made the change here. It's the same strategy as the example above by Fullstop, but with one less parameter. I just created an "At" parameter which is passed to Citation/core. The Citation side determines whether or not to add a "p.", a "pp.", or nothing, and then adds it. COGDEN 00:28, 16 October 2007 (UTC)
accessdate problems?
I just noticed this:
- {{Cite web |url=http://abc.def.com |title=test |accessdate=2007-10-12}} produces: test. Retrieved on 2007-10-12.
- {{Citation |url=http://abc.def.com |title=test |accessdate=2007-10-12}} produces: test, <http://abc.def.com>. Retrieved on 12 October 2007
The accessdate from {{Cite web}} is formatted acording to my user preferences. The accessdate from {{Citation}} is not. -- Boracay Bill 07:22, 12 October 2007 (UTC)
- wikilink it. :) -- Fullstop 23:38, 12 October 2007 (UTC)
-
-
I personally dislike "link overloading" (as in, does anyone care what the article for an accessdate says?), but that is nonetheless probably the right way to go. Otherwise, people would begin making their own wikilinks, rendering the template powerless to act if it ever becomes necessary to change functionality.I wonder if there is a way to detect if accessdate= is properly formatted. OTOH, it could default to the current date too.-- Fullstop 07:11, 13 October 2007 (UTC)
-
-
-
- See #Problem with accessdate? -- Fullstop 07:13, 13 October 2007 (UTC)
-
COinS
Does this template generate COinS? I note that it is in Category:templates generating COinS. Is this right? ---- CharlesGillingham 16:42, 15 October 2007 (UTC)
- yes, it generates COinS. See {{Citation/core}} source and remarks here at #Zotero support. -- Fullstop 17:13, 15 October 2007 (UTC)
-
- Actually, the code is there to generate COinS, but I turned it off a while ago, since it was causing some template limit problems for a couple of pages that have a very large number of citations. We might want to try re-enabling it, because I found a work-around for those particular pages. I'm not sure what the best long-term solution is, though. Templates can be a challenge to the servers in some situations. COGDEN 18:38, 15 October 2007 (UTC)
-
-
- Okay, I see. COinS for Template:Citation is currently under construction. No problem. ---- CharlesGillingham 23:20, 15 October 2007 (UTC)
-
-
-
-
- I just reactivated it. COGDEN 23:49, 15 October 2007 (UTC)
-
-
with author= value in quotation marks causes tag to not have an id=
For some reason, a {{citation}} for an author="pseudonym" causes the html output to have no (the <cite> is there, the id= isn't). Example:
{{citation|author="Bat Granny"|year=2007}}
generates
<cite>"Bat Granny" (2007)</cite>
instead of
<cite id="CITEREF.22Bat_Granny.222007">"Bat Granny" (2007)</cite>
as it should. Strangely enough, {{harvnb}} is correctly generating the href just fine. This appears to be a new bug because it worked before, so perhaps something in wiki software broke (but then why only in id= and not in href=?).
Although the workaround here is to use ref=, but perhaps this issue is symptomatic of a greater one? -- Fullstop 03:33, 17 October 2007 (UTC)
- Try dropping the quotes: {{citation|author=Bat Granny|year=2007}}, not {{citation|author="Bat Granny"|year=2007}} -- Boracay Bill (talk) 01:38, 17 November 2007 (UTC)
-
-
- “curly quotes” are elegant—Do they work? Ian Spackman (talk) 00:54, 18 November 2007 (UTC)
-
-
-
-
- Yep. As do any of the other quotation mark glyphs except the literal ". On the back-end, this causes Tidy to strip the id= because the quotation mark inside the id="..." attribute (i.e. id=""foo"1900") would be illegal.
- As I have since found out, the reason why it doesn't bite {{harvnb}} is because {{harvnb}}'s href= is being generated with wikicode linkage while {{citation}}'s id= is being generating as raw html:
{{harvnb|"foo"|1900}}
- emits:
[[#CITEREF"foo"1900|"foo" 1900]]
- tidy sees:
<a href="#CITEREF.22foo.221900">"foo" 1900</a>
- which is valid, and so no repairs necessary.
{{citation|author="foo"|year=1900}}
- emits:
<cite id="#CITEREF"foo"1900">"foo" (1900)</cite>
- tidy sees that and strips to:
<cite>"foo" (1900)</cite>
- what tidy should see is:
<cite id="#CITEREF.22foo.221900">"foo" (1900)</cite>
- Ergo, what {{citation/core}} needs to be doing is #urlencode the id= attribute, just as it #urlencode's the COInS data (which is emitted just fine).
- So, instead of...
id="{{{Ref|}}}"
- and
id="CITEREF{{#if:{{{Surname1|}}}
(...snipped for brevity...){{{Year|{{{Date|}}}}}}"
- {{citation/core}} should emit
id="
{{#urlencode:
{{{Ref|}}}
}}
"
- and
id="CITEREF
{{#urlencode:
{{#if:{{{Surname1|}}}
(...snipped for brevity...){{{Year|{{{Date|}}}}}}
}}
"
- Just to be on the safe side (in case wikilinkage's internal workings change), I'd use #urlencode for {{harvnb}} too.
- -- Fullstop (talk) 23:30, 18 November 2007 (UTC)
-
-
(outdent) scratch that #urlencode stuff. It's not compatible with what is output by wikicode parser, which converts %NN values to .NN values. #Replace does not appear to be enabled on .en, otherwise that would potentially have been a workaround too. -- Fullstop (talk) 00:18, 19 November 2007 (UTC)
- Perhaps the
anchorencode
function does what you want? It's almost undocumented; the only mention I could find is at Help:Magic words. But{{anchorencode:"foo"1900}}
yields.22foo.221900
, which looks promising (if I understood what you want). -- Jitse Niesen (talk) 11:38, 19 November 2007 (UTC)
{{editprotected}}
In {{citation/core}} please replace...
id="{{{Ref|}}}"
- and
id="CITEREF{{#if:{{{Surname1|}}}
(...snipped for brevity...){{{Year|{{{Date|}}}}}}"
with...
id="
{{anchorencode:
{{{Ref|}}}
}}
"
- and
id="
{{anchorencode:
CITEREF{{#if:{{{Surname1|}}}
(...snipped for brevity...){{{Year|{{{Date|}}}}}}
}}
"
This is necessary to make the value of the id="..." attribute match what is generated by {{harvnb}}'s [[#wikilinking]]
.
-- Fullstop (talk) 16:22, 19 November 2007 (UTC)
- Edited as requested. -- Jitse Niesen (talk) 17:34, 19 November 2007 (UTC)
An extra "notes" argument
Would it be possible to add an argument called "notes" or something similar in the template? For example, I'm citing a book that was published in the US under titleX. It was originally published under a different name (titleY) in the UK. So it would be nice to be able to note this in the citation. -- panda (talk) 18:25, 16 November 2007 (UTC)
- Citations are always for the source that you are using. Its not necessary or desirable to know the name of the work as it exists in another country, language, format, edition, publisher, ISBN etc.
- In your case, if the change of title has some bearing on the article itself, then add a sentence to say so in the article's text. For example: "... the work, which was first published in the UK as xyz, ..."
- While there are some good reasons for a "note", these can be added in parentheses after the {{citation}}. For example: {{citation|...|year=1998}} (''fasc.'' 1724).
- -- Fullstop (talk) 17:29, 17 November 2007 (UTC)
modify generated cite id
Is there any way to change the automatically generated cite id without hard coding a new one? For example, sometimes I only want the author's last name as the cite id, i.e., id="CITEREFName"
and not id="CITEREFNameYear"
. Right now I've created my own <cite id="CITEREFName">
around the {{Citation}}
, but it would be nicer if there was an argument for this. –panda (talk) 15:31, 19 November 2007 (UTC)
-
-
- Not yet, unfortunately. I'm gathering examples of usage (see Template:Citation/doc/draft) though, originally with the intent of having one list of all arguments. However, I've found listing all arguments with a suitable vague explanation of each (so as to make the variable names applicable in any context) really difficult to do. -- Fullstop (talk) 18:37, 19 November 2007 (UTC)
-
Have patents taken over this template?
Examine my reference here. I have everything cited correctly as a book, but it's treating it like it should be a patent, asking for inventor name, country code and patent number. Help! Thanos6 (talk) 19:37, 29 November 2007 (UTC)
Year of authorship vs publication
I'm trying to cite a book that was published in year XXXb but authored in year XXXa. It is the 3rd printing of the 2nd edition of the book. Which year should I use? Is it possible to somehow note that this is the 3rd printing or does it not matter if it is still the 2nd edition of the book? I don't know if the 3rd printing is paginated in the same way as the 1st and 2nd printings, but they're all the 2nd edition of the book. –panda 20:06, 1 December 2007 (UTC)
- I would specify parameters publication-date=(the publication date), date=(the authorship date), and edition=2nd edition. If the printing matters for some reason, that info can be added after the closing curly-braces. -- Boracay Bill 03:21, 2 December 2007 (UTC)
-
- Thanks! I ended up adding the printing number to the publication-date param since it was possible and didn't look weird doing so. –panda 03:35, 2 December 2007 (UTC)
US postal abbreviations
These are generally deprecated in WP, yet here we say "States in the U.S. are denoted by a two-letter code; for example: place=Paris, TX" ... Comments? Rich Farmbrough, 12:23 6 December 2007 (GMT).
- Just mentioning Wikipedia:Manual of Style (abbreviations), where the Special considerations section says, "Current and former postal codes and abbreviations – such as TX for Texas, Calif. for California, Yorks for Yorkshire – should not be used to stand in for the full names in normal text.". However, that speaks of normal text. A citation in a footnote is probably a special case. -- Boracay Bill (talk) 00:08, 7 December 2007 (UTC)
- I don't use a country/state code unless its really necessary, i.e. to distinguish "Paris, TX" from, well, Paris. :) But now that I think of it, I haven't yet actually needed that kind of precision. -- Fullstop (talk) 01:10, 7 December 2007 (UTC)
Request: please add archivedate and archiveurl parameters as in {{Cite web}}
Please add archivedate and archiveurl parameters as in {{Cite web}}. In order to preserve the consistency of the inconsistency between these two templates, though, wikilinking of the specified archivedate should probably be required here. -- Boracay Bill (talk) 01:59, 21 December 2007 (UTC)
- Having seen no response, I ask if anyone can point me to documentation on template internals. I've previously seen a page on editing templates, but can't recall its name and find it at the moment. I've done a bit of template coding and I can take a whack at this in my userspace, but Template:Citation/core has some stuff in it which looks unfamiliar. What has me puzzled at the moment is &rft.whatever. If I ever knew what is magical about the "&" or about "&rft", I've forgotten it. -- Boracay Bill (talk) 02:16, 25 December 2007 (UTC)
- I'm working on it, but the holidays are slowing me down. I have a coded-but-barely-tested prototype at User:RossPatterson/Citation, you can try it out if you want to help test. RossPatterson (talk) 02:57, 25 December 2007 (UTC)
-
- OK, I'm done. The prototype at User:RossPatterson/Citation and User:RossPatterson/Citation/core looks good to me and passes all the examples from {{Citation}} plus a few new ones (see User:RossPatterson/Citation/tests for the full set including results). I'm not asking for an {{editprotected}} yet, but I will after others have had a few days to look it over. RossPatterson (talk) 02:49, 2 January 2008 (UTC)
- The two options are uneccessary: Since an archive-date= and archive-url= are available, these -- rather than the original -- are the ones that ought to be used.
- Further, what do you intend to do when it is the chapter-url= that is the one that you have an archive for?
- The "solution" for backwards compatibility with {{Cite web}} is a trivial one:
- In {{Citation}} (not core) replace:
|URL={{{url|}}}
|AccessDate={{{access-date|{{{accessdate|}}}}}}
- with
|URL={{{archive-url|{{{archiveurl|{{{url|}}}}}}}}}
|AccessDate={{{archive-date|{{{archivedate|{{{access-date|{{{accessdate|}}}}}}}}}}}}
- With that you have functional compatibility, but don't have to carry the feature creep legacy with it. Cite web has no chapter= facility, so no need to bother supporting archive-xxx for chapters.
- -- Fullstop (talk) 01:19, 2 January 2008 (UTC)
-
- I disagree that functional compatibility with {{cite web}} fills the need. I think that the need is for support of online-archival links as an alternative to dead-link urls -- similarly to the way that {{cite web}} does that where it is supported there. -- Boracay Bill (talk) 02:28, 2 January 2008 (UTC)
-
-
- {{cite web}} is not actually filling any need. What {{cite web}} is doing with archive-xxx is gratuitously satisfying some editor's lack of understanding of who citations are there for,... which is NOT the editor.
- Citations are NOT there to serve the writer, but to serve the *reader*. It is the reader who accesses the source, ideally the source that will not have changed since the writer referred to it. With a stable version you give the *reader* precisely what he needs. The rest is doo-wah.
- If you have two sources, and you know one is not going to change, while the other may, then you are obliged to provide the link to the one that does not change. The one that might change is entirely superfluous because (at the time of writing) it is identical to the stable version anyway.
- An ideal source is *stable*!!! *This* is the one you ought to be using, not the one that might change on a whim (and for reasons out of your control).
- An archive is not the "alternative". IT IS THE PRINCIPAL!!! It is a *priceless* resource!
- I am absolutely baffled ... *shocked* ... that anyone would even think about taking an unstable source into consideration when he/she has a stable source as well.
- -- Fullstop (talk) 03:32, 2 January 2008 (UTC)
- Following that to its logical consequence, I infer that you would favor a bot which replaced all existing links with archived versions of those links, making WP massively vulnerable if the archive should become unavailable for whatever unforseen reason. -- Boracay Bill (talk) 11:31, 2 January 2008 (UTC)
-
-
-
-
-
- The first two clauses of that sentence are both specious and illogical (in case you didn't know, a bot cannot infer context). And the third clause is is not only based on a faulty premise, but also fails to consider that WP would be no more "massively vulnerable" than if the principle pages were to vanish, or - heaven forbid - change so as to no longer support what they are being cited for.
- Food for thought:
- a) No style sheet (APA, UC, MLA et al) standard has any such thing as an "archive" option (or even more ridiculously, archive-date).
- b) Where does a citation end, and where does the "archive" gunk appear?
- c) Why do only electronic sources need an access-date? And what purpose does this have?
- -- Fullstop (talk) 16:44, 2 January 2008 (UTC)
-
-
-
-
-
-
-
-
- After a diatribe like that, I hesitate to add fuel to the fire, but I will answer your "c)". An "access date" is the electronic equivalent of an "edition" - in fact, you could reasonably replace {{Citation ... |url=http://www.example.org/banana.html |accessdate=2008- 01-01}} with {{Citation ... |url=http://www.example.org/banana.html |edition=as of 2008-01-01}} and you would be completely correct. I assume it is obvious that there is value in differentiating between the version of a source that was used and other versions that were not. If not, there would be no need for edition= either. RossPatterson (talk) 00:47, 3 January 2008 (UTC)
-
-
-
-
-
-
-
-
-
-
- Diatribe? Where? With respect to 'c)': Quite right. It is functionally equivalent to an 'edition', likewise denoting the 'version' of the source when it was used.
- Which is why there is no need for an archive-date field; the "stable" and "unstable" versions have the same 'edition' at the time the source was cited.
- As I said to Avi below: the point of any citation is to lead the *reader* to the source, as close and dependably as possible. Which is why -- when one has a stable resource -- one uses the stable resource.
- -- Fullstop (talk) 01:20, 3 January 2008 (UTC)
-
-
-
-
-
(outdent)To allow one to actually pull the specific page out of the Internet Archive. Since the possibility of recalling the actual page as of that date exists, it is a valid field. Books have date of publication and edition name as part of the citation in any major stylesheet (APA, MLA, Harvard, Turabian, etc.) That, with the page number, is sufficient to go to an archive such as the Library of Congress and find the exact source. Magazines have version and issue numbers, which together with the page numbers allows for exact specification. In general, the internet - being fluid -- cannot be pinpointed with such accuracy, but the existence of the Wayback archive does allow for many pages to be captured given original url and access date. -- Avi (talk) 21:28, 2 January 2008 (UTC)
- I'm not sure what your statement is in response to. I know what an archive is, and why it exists. ;) :The "questions" above are rhetorical, to get Boracay Bill to think about the purpose of citations in general and the superfluity of his request.
- And yes, the point of any citation is to lead the *reader* to the source, as close and dependably as possible. Which is why -- when one has a stable resource -- one uses the stable resource, and not the "fluid" one.
- -- Fullstop (talk) 22:19, 2 January 2008 (UTC)
- Fullstop, I've thought about it. (1) Citations provide sources which (hopefully) support assertions. Cited sources often also provide additional detail. (2) I don't believe this request to be superfluous. Actually, I thought the need would be obvious, once mentioned.
- You ask rhetorically above: "Where does a citation end, and where does the "archive" gunk appear?" {{Cite web}} does it like this:
-
- Philippines Aims to Boost Growth by 2009. Forbes (February 20, 2007). Archived from the original on 2007-02-22. Retrieved on 2008-01-02.
-
- {{Citation}} has url and chapter-url (or contribution-url) parameters, with both potentially needing to be retrieved from archives. Reporting both archive and original urls for both of these introduces possibly-distracting clutter to the citation, and perhaps that is an issue worthy of discussion.
- You ask rhetorically above: "Why do only electronic sources need an access-date? And what purpose does this have?" Some online sources are not dated. Also, online sources may change and may have an indication of when they were last updated (this varies from one online source to another). An accessdate can provide an indication that the source content might have changed since it was cited. A source may be archived on a number of different dates, and these archival copies may differ from one another bacause of change over time in the source content. An archive date indicates which archival copy was used, and the archive probably supports access to copies archived on earlier and/or later dates. -- Boracay Bill (talk) 03:43, 4 January 2008 (UTC)
However, when the resource is in and of itself a web page, such as citing on-line periodicals where there is no paper equivalent, the access date is needed to create that stability. -- Avi (talk) 05:04, 3 January 2008 (UTC)
As this template can be used for online periodicals, I think it should have the "access-date" field. That's all 8-) -- Avi (talk) 15:30, 3 January 2008 (UTC)
So allow me to feel really stupid and thank you for your patience :) -- Avi (talk) 18:56, 3 January 2008 (UTC)
Lowercase DOI
{{editprotected}}
[[Digital object identifier|DOI]]
to
[[Digital object identifier|doi]]
Lowercase is correct usage, according to Digital object identifier#Structure. {{doi}} template also displays lowercase. GregorB (talk) 13:55, 28 December 2007 (UTC)