Difference between revisions of "Template:Cite EB1911"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(Undid revision 854907407 by Jonesey95 (talk) See talk page)
imported>Zackmann08
(removing support for deprecated params. All uses have been converted.)
Line 25: Line 25:
 
     |{{#if:{{{author3link|}}} |author3link |HIDE_PARAMETER14c}}={{{author3link|}}}
 
     |{{#if:{{{author3link|}}} |author3link |HIDE_PARAMETER14c}}={{{author3link|}}}
 
     |{{#if:{{{author3-link|}}} |author3-link |HIDE_PARAMETER14cb}}={{{author3-link|}}}
 
     |{{#if:{{{author3-link|}}} |author3-link |HIDE_PARAMETER14cb}}={{{author3-link|}}}
    |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER15}}={{{coauthors|}}}
 
  
 
     |{{#if:{{{chapter|}}} |chapter |HIDE_PARAMETER15chapter}}={{{chapter|}}}
 
     |{{#if:{{{chapter|}}} |chapter |HIDE_PARAMETER15chapter}}={{{chapter|}}}
Line 34: Line 33:
 
     | title= {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->
 
     | title= {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->
 
             |<!-- then-->
 
             |<!-- then-->
               {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }} |<!--eq to empty-->
+
               {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|}} |<!--eq to empty-->
 
               |<!--then--><sup>[[Wikisource:1911 Encyclopædia Britannica|<span style="color:red">article name needed</span>]]</sup>
 
               |<!--then--><sup>[[Wikisource:1911 Encyclopædia Britannica|<span style="color:red">article name needed</span>]]</sup>
               |<!--else-->{{{title|{{{article|}}} }}}
+
               |<!--else-->{{{title|}}}
 
               }}<!--end title-->
 
               }}<!--end title-->
 
             |<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{wstitle|}}}{{#if:{{{chapter|}}}|&#35;{{{chapter|}}}<!-- -->}}|{{{display|{{{wstitle|}}}<!-- display -->}}}]]
 
             |<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{wstitle|}}}{{#if:{{{chapter|}}}|&#35;{{{chapter|}}}<!-- -->}}|{{{display|{{{wstitle|}}}<!-- display -->}}}]]
Line 65: Line 64:
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
     |<!--Sort out the parameters-->
 
     |<!--Sort out the parameters-->
     {{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}} }}|<!--eq to empty-->
+
     {{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}}}|<!--eq to empty-->
 
     |<!-- then-->
 
     |<!-- then-->
       {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|<!--eq to empty-->
+
       {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|}}|<!--eq to empty-->
 
       |<!--then-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with no article parameter]]
 
       |<!--then-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with no article parameter]]
 
       |<!--else-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica without Wikisource reference]]
 
       |<!--else-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica without Wikisource reference]]
Line 74: Line 73:
 
     }}<!--end of check wstitle-->
 
     }}<!--end of check wstitle-->
 
     {{#if:{{{1|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unnamed parameter]]}}
 
     {{#if:{{{1|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unnamed parameter]]}}
    <!-- for the short term three specific tests to allow these parameters to be categorised to allow them to be altered to the standard ones-->
 
    {{#if:{{{wikisource|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica that includes an obsolete parameter]]}}
 
    {{#if:{{{article|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica that includes an obsolete parameter]]}}
 
    {{#if:{{{footnote|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica that includes an obsolete parameter]]}}
 
    {{#if:{{{coauthors|}}}|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica that includes an obsolete parameter]]}}
 
 
   |<!--else not in NAMESPACE do nothing-->
 
   |<!--else not in NAMESPACE do nothing-->
 
   }}<!--end NAMESPACE no white space
 
   }}<!--end NAMESPACE no white space
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unknown parameter|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite EB1911]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 |accessdate |article |author |author1 |authorlink |author-link |author2 |author2link |author2-link | author3 | author3link |author3-link  |authors |coauthors |chapter |display |edition |first |first1 |first2 |first3 |footnote |last |last1 |last2 |last3 |mode |noicon |page |pages |postscript |quote |ref |separator |short |title |url |volume |wikisource |wstitle |year  
+
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unknown parameter|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite EB1911]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 |accessdate |author |author1 |authorlink |author-link |author2 |author2link |author2-link | author3 | author3link |author3-link  |authors |chapter |display |edition |first |first1 |first2 |first3 |last |last1 |last2 |last3 |mode |noicon |page |pages |postscript |quote |ref |separator |short |title |url |volume |wstitle |year  
 
}}</includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->
 
}}</includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->

Revision as of 20:04, 11 October 2018

12px Chisholm, Hugh, ed. (1911). "article name needed". Encyclopædia Britannica (11th ed.). Cambridge University Press.

50px Template documentation[view] [edit] [history] [purge]

Usage

This template indicates that an article incorporates information from the Eleventh Edition of the Encyclopædia Britannica, a work now in the public domain.

If the Wikipedia article incorporates a copy of text from (or close paraphrasing of) an article in the Eleventh Edition of the Encyclopædia Britannica, then use the template {{EB1911}} which prepends an attribution string to the citation (see the plagiarism guideline).

Error message

This template requires a title parameter: title= or wstitle= to associate the source of the text being used with a specific part of the massive encyclopaedia from which it is copied or paraphrased. More information on these and other parameters are set out below. In the absence of a title parameter being supplied, the template will display the error message article name needed and set a category flagging that no article name has been given.[nb 1]

Summary

The template can be placed in different locations and depending on the what it is required the parameters can be mixed and matched:

Parameters Example Note
{{Cite EB1911|wstitle=EB name}} 12px Chisholm, Hugh, ed. (1911). "Alfred the Great" . Encyclopædia Britannica (11th ed.). Cambridge University Press. Use wstitle=EB name if the article exists on Wikisource if not use title=EB name .
{{Cite EB1911|title=|url=|first=|last=|volume=|pages=}} 12px Plummer, Charles (1911). "Alfred the Great". In Chisholm, Hugh (ed.). Encyclopædia Britannica. 1 (11th ed.). Cambridge University Press. pp. 582–584. Some additional information: title instead of wstitle, url to the external page instead of link to Wikisource; the first and last names of the author of the article, the volume and page [number]s.

Detailed notes

This template is wrapper around {{cite encyclopedia}}. In its default mode it attributes text to an article from Eleventh Edition of the Encyclopædia Britannica.

This template automatically sets some of the parameters passed into {{cite encyclopedia}} for example "publisher = Cambridge University Press". Over and above the standard parameter passed into {{cite encyclopedia}} there are some additional parameters and those are listed hereafter in a separate table from the table of parameters passed into {{cite encyclopedia}}.

Minimum is: {{Cite EB1911 |title=EB article name}} or {{Cite EB1911 |wstitle=EB article name}}

Full set is: {{Cite EB1911 |wstitle= |display= |noicon= |short= |footnote= |author= |last= |first= |author-link= |chapter= |title= |url= |access-date= |volume= |page= |pages= |ref= |mode=}}

Additional parameters
Parameter Note
author=author name Assigned to last ignored if last is set.
wstitle=name of the article on Wikisource If set, set link to EB article on Wikisource, and unsets title and url if they are also set.
noicon=1 Suppresses the lead icon (useful with {{Wikisource-inline}}).
short=1 Suppresses publisher and editor display.
display=label for Wikisource link If set, this text is used as a label when linking to EB article on Wikisource. It is useful for hiding disambiguation extensions, and should show the actual title in the printed EB.
Parameters passed into {{cite encyclopedia}}
Parameter Set to Notes
last= author= or last= If author= and last= are set the value of last= is used. author2, (or last2) etc, are provided if there is more than one author
first= first= Set to the value of first= or not set
author-link= author-link= Set to the value of author-link= or not set (author-link2 etc is available if needed)
editor-first= Hugh Automatically set within the template unless short is set
editor-last= Chisholm Automatically set within the template unless short is set
encyclopedia= Encyclopædia Britannica Automatically set within the template
chapter= chapter= Set to the text of chapter= or not set
title= wstitle= or title= or article= Set to wstitle= if set, if not to title= if set, if not to article= if set, if not set then left blank.
url= url= Set to the value of url= unless wstitle= is set in which case it is not set.
access-date= access-date= Set to the value of access-date= unless wstitle= is set in which case it is not set.
language= Not set
edition= 11th Set by default within the template, can be overridden
date= Not set (see year)
year= 1911 Set by default within the template, can be overridden
month= Not set
publisher= Cambridge University Press Automatically set within the template unless short is set
volume= volume= Set to the value of volume= or not set
location= Not set
id= Not set
isbn= Not set
oclc= Not set
doi= Not set
page= page= Set to the value of page= or not set
pages= pages= Set to the value of pages= or not set
quote= Not set
ref= ref = Set to the value of ref= or not set
mode= mode= Set to the value of mode= or set to default.[nb 2]

Tracking categories

Depending on the parameters passed into this template, it adds the following hidden categories to the articles in which it is used:

For an overview group category of the above see: Category:Wikipedia articles incorporating a citation from the 1911 Encyclopædia Britannica.

See also

Notes

  1. It is not much use to the reader to inform them that a Wikipedia article contains some text supported by a citation from somewhere in the 29-volumes of the Eleventh Edition of the Encyclopædia Britannica!
  2. The parameter is provided because {{cite encyclopedia}} (the wrapper for this template) sets mode="cs1" (citation style 1) while the other standard template {{citation}} sets mode="cs2" (citation style 2). So the parameter mode can be set to cs2 to allow this template to emulate the look of {{citation}} if that is considered to be desirable.