Template talk:Cite encyclopedia

From Wikipedia, the free encyclopedia

Contents

Documentation - Discussion

Documentation adapted from Template:Cite book

[edit] Documentation

[edit] Usage

All fields must be in lowercase. Copy a blank version to use.

Full version Most common fields
{{cite encyclopedia
 | last = 
 | first = 
 | author = 
 | authorlink = 
 | coauthors = 
 | editor = 
 | encyclopedia =
 | title = 
 | url = 
 | accessdate = 
 | accessyear = 
 | accessmonth = 
 | edition = 
 | date = 
 | year = 
 | month = 
 | publisher = 
 | volume =
 | location = 
 | id = 
 | doi =
 | pages = 
}}
{{cite encyclopedia
 | year = 
 | title = 
 | encyclopedia =
 | publisher = 
 | location = 
 | id = 
}}

[edit] Fields

[edit] Wikilinks

Most fields can be wikilinked (ie. title = [[book article|book title]]), but should generally only be linked to an existing Wikipedia article. Any wikilinked field must not contain any brackets apart from normal round brackets () — don't use <>[]{}.

[edit] Description of fields

[edit] Syntax (for the technical-minded)

Nested fields either rely on their parent fields, or replace them:

  • parent
    • child — may be used with parent (and is ignored if parent is not used)
    • OR: child2 — may be used instead of parent (and is ignored if parent is used)

[edit] Description

  • title: Title of article. Required.
    • article: Alternate. Cannot be used with title.
  • encyclopedia: Name of encyclopedia. Required.
    • ency: Alternate, being phased out.
  • last: Surname of author. Don't wikilink (use authorlink instead).
    • first: First name(s) of author, including title(s) (eg. Firstname Middlename or Firstname M. or Dr. Firstname M., Snr.). Don't wikilink (use authorlink instead).
      • The `last' and `first' fields are poorly named for the case of an author whose surname is usually written first (e.g. as in Chinese). They also have the problem of only communicating which is the surname, not communicating where the surname is usually written. Consider deprecating first,last fields, and reinstating author field, using the notation "Smith, John" or "Hu Ke Jie" as appropriate (i.e. always writing surname first, and using comma or not depending on whether the name is usually written surname last or first).
    • authorlink: Title of Wikipedia article about author. Article should already exist. Must not be wikilinked itself. Do not use this on its own, but along with "author" or "first" and "last".
    • coauthors: Full name of additional author or authors, surname last, separated by ", " (eg. Joe Bloggs, John F. Kennedy, H. R. Dent).
      • Someone please confirm that surname is to go last even for people whose name is usually written surname first. Consider rethinking this field, e.g. using Bloggs, Joe and Kennedy, John F. and Dent, H. R. and Hu Ke Jie.
    • OR: author: Full name of author, preferably surname first.
  • editor: Editor for the entire work.
  • url: URL of an online encyclopedia article. Cannot be used if you wikilinked title.
    • accessdate: Full date when item was accessed, in ISO 8601 YYYY-MM-DD format, eg. 2006-02-17. Required when url field is used. Must not be wikilinked.
      • OR: accessyear: Year when item was accessed, and accessmonth: Month when item was accessed. Must not be wikilinked.
  • edition: When the encyclopedia has more than one edition. eg: "2nd edition".
  • volume: When the encyclopedia has more than one volume. eg: "Volume 3".
  • date: Full date of publication, in ISO 8601 YYYY-MM-DD format, eg. 2006-02-17. Must not be wikilinked.
    • OR: year: Year of publication, and month: Name of the month of publication. If you also have the day, use date instead. Must not be wikilinked.
  • publisher: Publisher should not include corporate designation such is "Ltd" or "Inc".
    • location: Place of publication.
  • id: Identifier such as ISBN 1-111-22222-9 or {{LCC|Z253.U69}}. Remember, you must specify the kind of identifier, not just give a number.
  • doi: digital object identifier. See also {{doi}}
  • pages: 5–7: first page and optional last page. This is for listing the pages relevant to the citation, not the total number of pages in the book.

[edit] Test

  • {{cite encyclopedia | last = LAST | first = FIRST | authorlink = AUTHORLINK | coauthors = COAUTHORS | editor = EDITOR | encyclopedia = ENCYCLOPEDIA | title = TITLE | url = http://www.ecample.com | accessdate = 2006-07-02 | accessyear = | accessmonth = | edition = EDITION | date = | year = YEAR | month = | publisher = PUBLISHER | volume = VOLUME | location = LOCATION | id = ID | doi = | pages = PAGES }}
    LAST, FIRST; COAUTHORS (YEAR). "TITLE". ENCYCLOPEDIA (EDITION) VOLUME. Ed. EDITOR. LOCATION: PUBLISHER. PAGES. ID. Retrieved on 2006-07-02. 
  • {{cite encyclopedia | last = LAST | first = FIRST | authorlink = AUTHORLINK | coauthors = | editor = EDITOR | encyclopedia = ENCYCLOPEDIA | title = TITLE | url = http://www.ecample.com | accessdate = 2006-07-02 | accessyear = | accessmonth = | edition = EDITION | date = | year = YEAR | month = | publisher = PUBLISHER | volume = VOLUME | location = LOCATION | id = ID | doi = | pages = }}
    LAST, FIRST (YEAR). "TITLE". ENCYCLOPEDIA (EDITION) VOLUME. Ed. EDITOR. LOCATION: PUBLISHER. ID. Retrieved on 2006-07-02. 

[edit] Discussion

Contents

[edit] Usage for Dictionaries

I don't see a related template "citedictionary", so I'll use this one for the citation of dictionaries. If there is one specifically for citing dictionaries or if there is some objection/concern about cross-utilization like this, please report it here. I'll note here also a list of these cross-uses (there will be only a handful). Regards, User:Ceyockey (talk to me) 16:12, 29 January 2006 (UTC)

I've used it too, for example at Congius. Circeus 18:08, 2 July 2006 (UTC)

[edit] Unlinked year

I unlinked the year, because according to the Manual of Style, years should not normally be linked. If the user wants a linked year in a specific citation, it can still be specified there, so this should cover both cases.

Stephen Turner (Talk) 10:45, 9 February 2006 (UTC)

[edit] Request for more fields

This template is missing a few useful fields. The publisher and article author are often important, and sometimes the editors and ISBN as well.--Yannick 06:18, 19 February 2006 (UTC)

Done. publisher, first and last, coauthors, editor, id respectively. PoptartKing 03:33, 29 April 2006 (UTC)

[edit] How do you use this template?

[[{{{ency}}}]], edition {{{edition}}} ({{{year}}}). Article: {{{article}}}

{{Citeencyclopedia|ency=*NAMEOFENCYCLOPEDIA*|article=*NAMEOFARTICLE*|et cetera}} PoptartKing 03:33, 29 April 2006 (UTC)

?

[edit] A few thoughts...

  1. You might want to move it to {{Cite encyclopedia}}, to fit in with the other templates (Cite paper, Cite book, etc) which all have spaces.
  2. You might also want to make {{{title}}} an alternative wording for {{{article}}}, likewise {{{encyclopedia}}} and {{{work}}} for {{{ency}}}.

Nothing desperate, though. :-) Jude (talk,contribs,email) 10:42, 29 April 2006 (UTC)

That's actually how I originally intended to implement it, but I was worried about breaking pages using the old style. Guess there's nothing wrong with redundancy though. PoptartKing 02:07, 30 April 2006 (UTC)
I'm not sure that I understand the code, and I could be wrong about this, but have you thought about stacking the elements? You could maybe simplify:
{{
 #if:{{{url|}}}
   |{{
   #if:{{{article|}}}
     |&#32;[{{{url}}} {{{article}}}].
     |&#32;[{{{url}}} {{{title}}}].
   }}|{{
   #if:{{{article|}}}
     |&#32;{{{article}}}.
     |&#32;{{{title}}}.
   }}
 }}
To:
{{
 #if:{{{url|}}}
  |{{
  #if:{{{article|{{{title|}}}}}}
   |&#32;[{{{url}}} {{{article|{{{title}}}}}}]. 
   |
  }}|{{
  #if:{{{article|{{{title|}}}}}}
   |&#32;{{{article|{{{title|}}}}}}.
   |
  }}
 }}
Or possibly even:
{{
  #if:{{{url|}}}
  |&#32;[{{{url}}} {{{article|{{{title|}}}}}}].
  |&#32;{{{article|{{{title|}}}.
 }}
I imagine you could also stack ency/encyclopedia/work much the same way--Possibly {{{ency|{{{enyclopedia|{{{work|}}}}}}}}}? Jude (talk,contribs,email) 03:03, 30 April 2006 (UTC)

[edit] Authorlink

The authorlink function is doing something strange. You can see the behaviour in the Fidel Castro article (footnote 3). An external link to an author was added, but the template somehow fails to put the right amount of brackets around the name. Resulting in something like this: [, K. Lynn]. The problem is that the template garbles up the lastname and the author url. The correct references would be something like this K. Lynn Stoner (note that the last name "Stoner" is currently in the URL).

I had a go at fixing this (by pasting the code from the book citation template), but the template syntax is a bit too complicated for me. Could somebody perhaps fix this? menscht 12:23, 13 May 2006 (UTC)

The authorlink parameter is intended to link to a wikipedia article rather than an external page. In retrospect maybe that doesn't make a whole lot of sense considering encyclopedia editors aren't particularly notable, but I don't want to break format with the other cite templates. PoptartKing 00:09, 22 May 2006 (UTC)
Although encyclopedia editors may not be notable, the article authors often are. Britannica, in particular, has a history of seeking out the highest authority on a topic and asking them to write the article. I believe the original article on relativity was written by Albert Einstein, and the original article on anarchy was written by Peter Kropotkin.--Yannick 04:02, 23 July 2006 (UTC)

[edit] Author name

I've noticed that whenever the name of the author is inserted as "first" and "last", the template produces a space between the last name and the comma. Can anyone fix this? Pecher Talk 20:02, 27 May 2006 (UTC)

[edit] Volume and pages

I tried to fix this, but couldn't. Something causes the comma after "Volume" to appear even if "pages" is undefined. Circeus 15:49, 2 July 2006 (UTC)

I did some tweaks. Could check your use case again and post here the exact call that causes bad output, in case it is still bad? --Ligulem 17:59, 2 July 2006 (UTC)
Apparently doesn't work. See footnote #5 at Taxonomy of Banksia. Circeus 18:10, 2 July 2006 (UTC)

[edit] Access date

In all other cite templates, accessdate is wikilinked. -- Avi 18:23, 2 July 2006 (UTC)

Done. I will iterate through all calls now to make sure there are no doubled links. --Ligulem 20:26, 2 July 2006 (UTC)

[edit] editor shows up in wrong place

The editor field shows up in the wrong place. If you omit the editor, the template cites Article X In Encyclopedia Y, but with an editor field it says Article X In Editor Z, which doesn't make much sense.--Yannick 04:12, 23 July 2006 (UTC)

This is proper, because most encyclopedia will have individual articles written by specific authors, and wil then be formatted as "Doe, John, foos of foo In Smith, Henry (ed), Encyclopedia of things". If you omit the normal author, it is the only thing removed, therest of the formatting is kept. If there are no single article authors, then using the chapter parameter of {{cite book}} is possibly a better option. Circeus 05:00, 23 July 2006 (UTC)
Ah, no, I don't see that as proper for an encyclopedia reference. The reason that an author's or editor's name appears before the title of a book is because that's how books are usually sorted. But encyclopedias are sorted by brand name or publisher, never by the editor's name. So I think it should the template should produce "Doe, John, foos of foo In Encyclopedia of things, Ed. Henry Smith" or "Doe, John, foos of foo In Universica's Encyclopedia of things, Ed. Henry Smith". See the following excerpt from the Modern Languages Association Citation Style Guide:--Yannick 23:13, 15 August 2006 (UTC)

Article in a reference book or an entry in an encyclopedia If the article/entry is signed, include the author's name; if unsigned, begin with the title of the entry

Guignon, Charles B. "Existentialism." Routledge Encyclopedia of Philosophy. Ed. Edward Craig. 10 vols. London: Routledge, 1998.

[edit] Stray period after article author initials

If one includes author(s) of an article, there is a period after the author name (or list of names) before the year. That may be correct (is it?), but if one uses just an initial for the author's first name, that gives a doubled period, which is clearly not correct. That is:

{{cite encyclopedia | last=Doe | first=J. | year=2006 | encyclopedia=Encyclopedia Errata | title=Aardvarkaphobia}}

gives:

Doe, J.. (2006). "Aardvarkaphobia". Encyclopedia Errata.

DMacks 04:50, 18 August 2006 (UTC)

I've also found that somewhat annoying. I'd just like to add that it seems to be inconsistent with the way that Template:Cite book and Template:Cite journal work, which leads to some ugly reference lists when this template is used alongside others. EALacey 21:09, 7 January 2007 (UTC)

[edit] Request to make "title/article" field optional

Can somebody make the "title/article" field optional? In at least one major article I'm working on, Muhammad, I've found it much easier to cite the encyclopedia as a whole, without articles, in the "References" section, then in the footnotes I'll specify the encyclopedia name plus the article. I'm putting dummy text in the "title" fields right now in order to avoid needless duplication of cites for the same encyclopedia in the "References" section. If somebody opposes this change, but has a better suggestion about how to do this (see Muhammad), I'm all ears. - Merzbow 23:46, 4 January 2007 (UTC)

I learned template coding and create a copy of this template in my own userpace that makes the article/title fields optional. It's at User:Merzbow/Cite_encyclopedia. Test page that shows usage is here. - Merzbow 22:34, 9 January 2007 (UTC)
I made changes to allow this. One problem was that if there is no article or title parameter set then there would be no text to display for any 'url' given. I set "Link" as default text for this if the parameters are unset. Using the name of the encyclopedia itself might be a better option, but would require some restructuring of the template. In any case, 'Link' should be an improvement over the '{{{title}}}' which would have displayed previously. --CBD 12:19, 11 January 2007 (UTC)
Thanks! - Merzbow 01:54, 12 January 2007 (UTC)

[edit] Can someone add a quote parameter?

It would be nice to have an optional quote parameter like {{cite book}}, {{cite web}}, {{cite news}}, etc., have. Thanks in advance. — Bellhalla 14:42, 25 January 2007 (UTC)

If you want to test it, when implemented, see the Notes section of List of Speakers of the Texas House of Representatives. The two uses of {{Cite encyclopedia}} have a non-empty quote parameter in them. — Bellhalla 14:55, 25 January 2007 (UTC)
Figured out what needs to be added and how to request...
{{Editprotected}}
Can the following:
{{
#if: {{{quote|}}}
    |  “{{{quote}}}”
}}
be added into this code:
}}</cite><noinclude>
so that the lines read like this:
}}{{
#if: {{{quote|}}}
    |  “{{{quote}}}”
}}</cite><noinclude>
in order to allow the optional quote parameter as requested above? I have tested this in User:Bellhalla/cite encyclopedia on User:Bellhalla/Test. — Bellhalla 15:28, 26 January 2007 (UTC)

Ok, lets see if I broke it...

  • "Blah Title". New Blah Encyclopedia. (999). Earth: Someone. Volume 13. “Test test test blah blah blah” 

Hmmm ---J.S (T/C/WRE) 20:45, 26 January 2007 (UTC)

Looks like a missing space befor the quote, and the quote needs to be in italics. Now to see if I can fix it. ---J.S (T/C/WRE) 20:47, 26 January 2007 (UTC)
Ok, that looks better. Let me know if I broke it in some unexpected way. ---J.S (T/C/WRE) 20:55, 26 January 2007 (UTC)
Why is the quote parameter italicized when it is also encased in double quotes? It is not for cite_book or cite_journal. Compare WP:MOS#Quotations_in_italics. --Flex (talk|contribs) 20:11, 30 January 2007 (UTC)
It was just done to bring attention to the diffrence between the citation and the quotation. If the MOS said no-no then I guess it's got to go-go. :) ---J.S (T/C/WRE) 01:04, 3 February 2007 (UTC)
Thanks! --Flex (talk|contribs) 12:10, 3 February 2007 (UTC)

[edit] Linking the encyclopedia field within a reference

{{cite encyclopedia | last = George | first = Alex Segger | authorlink = Alex George | year = 1999 | title = Banksia | editor = Wilson, Annette | encyclopedia = [[Flora of Australia (series)|]] | volume = 17B: Proteaceae 3: Hakea to Dryandra | pages = 175–251 | location = Collingwood, Victoria | publisher = CSIRO Publishing / Australian Biological Resources Study | id=ISBN 0-643-06454-0}}

yields

George, Alex Segger (1999). "Banksia". Flora of Australia 17B: Proteaceae 3: Hakea to Dryandra. Ed. Wilson, Annette. Collingwood, Victoria: CSIRO Publishing / Australian Biological Resources Study. 175–251. ISBN 0-643-06454-0. 

which correctly links the encyclopedia field. But if I put the same thing inside a <ref> tag, I get a reference entry that doesn't link the encyclopedia field:[1]

  1. ^ George, Alex Segger (1999). "Banksia". [[Flora of Australia (series)|]] 17B: Proteaceae 3: Hakea to Dryandra. Ed. Wilson, Annette. Collingwood, Victoria: CSIRO Publishing / Australian Biological Resources Study. 175–251. ISBN 0-643-06454-0. 

Does anyone know why, and how to fix it? Hesperian 11:52, 22 February 2007 (UTC)

I've just discovered a workaround - simply set the encyclopedia field to "[[Flora of Australia (series)|Flora of Australia]]" instead of "[[Flora of Australia (series)|]]" But this should still be fixed if possible, or documented if not. Hesperian 11:55, 22 February 2007 (UTC)
That's a known bug (2700) and is already documented at Help:Pipe trick. Circeus 17:42, 22 February 2007 (UTC)

[edit] Field for language

I think language field would be greatly appreciated. Visor 19:12, 18 March 2007 (UTC)

Concur DenizTC 01:50, 30 August 2007 (UTC)
I'm not sure why {{cite book}}, on which this was based, includes a language field. Usually, language icons are used for that.Circeus 20:06, 18 March 2007 (UTC)
It is better, to have it under one template. The language field won't appear if empty, anyway. DenizTC 01:50, 30 August 2007 (UTC)
I think it would be good with a language field too. — fnielsen (talk) 21:02, 23 March 2008 (UTC)

[edit] Space needed

A space is needed before the pages parameter. Can someone add it? --Flex (talk/contribs) 01:58, 25 May 2007 (UTC)

Also, there should be no period after the author's name, and there should be one after the page number and a space before the pages parameter (comparing the other templates).

For instance:

F. S. Fitzsimmonds (1982). "Wine and Strong Drink". New Bible Dictionary (2nd ed.). Ed. J. D. Douglas. Downers Grove, Illinois: InterVarsity Press. p. 1255. ISBN 0830814418. “Some quote.” 

should be

F. S. Fitzsimmonds. (1982). "Wine and Strong Drink". New Bible Dictionary (2nd ed.). Ed. J. D. Douglas. Downers Grove, Illinois: InterVarsity Press. p. 1255. “Some quote.”

--Flex (talk/contribs) 23:37, 31 May 2007 (UTC)

I'm sorry, but I am not sure how to accomplish this. ---J.S (T/C/WRE) 21:56, 1 June 2007 (UTC)

[edit] isbn in addition to id

The {{citation}} template provides a specialized isbn parameter in addition to the generic id parameter. My understanding is that this allows for more detailed COinS information to be created. {{citation/core}} has for example the following code for isbn:

    {{
      #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
    }}

Could this be added here as well? --S.K. 13:15, 31 August 2007 (UTC)

This is unnecessary for the time being as the template does not include any other COinS (e.g. authors and basic publication data). My suspicion is that they weren't added because at the time Omegatron (talk · contribs) was not too secure with the coding. Maybe we can poke him about that. I need to ask him something regarding {{cite news}}. Circeus 16:01, 31 August 2007 (UTC)
Currently the source contains a COinS section at the very end, which uses &rft.aufirst, &rft.aulast, ... even &rft_id=info:doi/ --S.K. 17:02, 31 August 2007 (UTC)
Does it? I thought it wasn't updated yet. Circeus 18:27, 31 August 2007 (UTC)
Sure looks like it. :-) --S.K. 09:33, 3 September 2007 (UTC)

[edit] Language

Why is there no language field? I think it would be useful as not only English-language encyclopedias are citeable. The location field isn't a viable alternative. -- Ynhockey (Talk) 22:46, 26 November 2007 (UTC)

Language icons are used fro that. THe inclusion of language in some templates is accidental. Circeus (talk) 17:20, 17 April 2008 (UTC)

[edit] Why aren't interwikis shown?

As you can see from Template:Cite book, when an interwiki is added to the template documentation, it must be shown on the template page. There are interwikis on Template:Cite encyclopedia/doc, but they are not shown on Template:Cite encyclopedia. Does anyone know why? --Acepectif (talk) 05:45, 9 March 2008 (UTC)

They're not shown because they are interwiki links for the doc page, not for the template, and should only show on the doc page. In the {{Cite book}} case, the interwiki links are for the template itself, so they are intended to be included when the doc page is. RossPatterson (talk) 00:16, 11 March 2008 (UTC)

[edit] Retrieval dates for online versions of old printed sources, again

Please contribute to this discussion at Citing sources: Wikipedia talk:Citing sources#Retrieval dates for online versions of old printed sources, again --EnOreg (talk) 16:17, 26 May 2008 (UTC)

Consensus: We have a consensus that access dates for online copies of offline sources, while helpful as a comment in the source, should be hidden from the reader. Could somebody who is competent to adapt the citation templates please do so? The idea is to keep the access date as a template parameter but remove the code that displays it. Thanks, --EnOreg (talk) 09:21, 5 June 2008 (UTC)