Difference between revisions of "Template:Cite EB1911/sandbox"
imported>DrKay (mode) |
imported>Wikid77 (changed to echo parameter 1, similar to Wikisource template) |
||
| Line 1: | Line 1: | ||
{{hide in print|1= | {{hide in print|1= | ||
<!-- | <!-- | ||
| − | + | optional icon - included by default | |
| − | --> | + | -->{{#if:{{{noicon|}}}||[[Image:{{#if:{{{wstitle|}}}|wikisource-logo.svg|PD-icon.svg}}|12px|link=]] }}<!--no white space |
| − | + | -->}}{{cite encyclopedia | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }}<!--no white space | ||
| − | -->{{cite encyclopedia | ||
|{{#if:{{{first|}}} |first |HIDE_PARAMETER1}}={{{first|}}} | |{{#if:{{{first|}}} |first |HIDE_PARAMETER1}}={{{first|}}} | ||
|{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER2}}={{{first1|}}} | |{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER2}}={{{first1|}}} | ||
| Line 29: | Line 20: | ||
|{{#if:{{{authors|}}} |authors |HIDE_PARAMETER13}}={{{authors|}}} | |{{#if:{{{authors|}}} |authors |HIDE_PARAMETER13}}={{{authors|}}} | ||
|{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER14}}={{{authorlink|}}} | |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER14}}={{{authorlink|}}} | ||
| + | |{{#if:{{{author2link|}}} |author2link |HIDE_PARAMETER14b}}={{{author2link|}}} | ||
| + | |{{#if:{{{author3link|}}} |author3link |HIDE_PARAMETER14c}}={{{author3link|}}} | ||
|{{#if:{{{coauthors|}}} |coauthors |HIDE_PARAMETER15}}={{{coauthors|}}} | |{{#if:{{{coauthors|}}} |coauthors |HIDE_PARAMETER15}}={{{coauthors|}}} | ||
| Line 34: | Line 27: | ||
| editor-last = {{#if: {{{short|}}}|<!-- eq to empty -->|Chisholm}} | | editor-last = {{#if: {{{short|}}}|<!-- eq to empty -->|Chisholm}} | ||
| encyclopedia = [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]] | | encyclopedia = [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]] | ||
| − | | title= {{#ifeq: | + | | title= {{#ifeq: {{{wstitle|}}}|<!--eq to empty--> |
|<!-- then--> | |<!-- then--> | ||
| − | {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|<!--eq to empty--> | + | {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }} |<!--eq to empty--> |
| − | |<!--then--> | + | |<!--then--><sup>[[Wikisource:1911 Encyclopædia Britannica|<span style="color:red">article name needed</span>]]</sup> |
| − | |||
| − | |||
| − | |||
| − | |||
|<!--else-->{{{title|{{{article|}}} }}} | |<!--else-->{{{title|{{{article|}}} }}} | ||
}}<!--end title--> | }}<!--end title--> | ||
| − | |<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{wstitle| | + | |<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- display -->}}}]] |
}}<!--end wstitle--> | }}<!--end wstitle--> | ||
| − | | url = {{#if:{{{wstitle| | + | | url = {{#if:{{{wstitle|}}}|<!--eq to empty--> |
|<!--then set--> {{{url|}}} | |<!--then set--> {{{url|}}} | ||
|<!--else leave unset--> | |<!--else leave unset--> | ||
| Line 57: | Line 46: | ||
| page = {{{page|}}} | | page = {{{page|}}} | ||
| pages = {{{pages|}}} | | pages = {{{pages|}}} | ||
| + | | quote = {{{quote|}}} | ||
| ref = {{{ref|}}} | | ref = {{{ref|}}} | ||
| postscript = {{{postscript|}}} | | postscript = {{{postscript|}}} | ||
| separator = {{{separator|}}} | | separator = {{{separator|}}} | ||
| mode = {{{mode|}}} | | mode = {{{mode|}}} | ||
| − | + | |{{#if:{{{1|}}} | |HIDE_PARAMETER20}} }}<!-- | |
| − | -->{{# | + | -------------------------- Show parameter 1 |
| − | + | -->{{ | |
| − | + | #if: {{{1|}}} |<nowiki/> ({{{1}}}) }} | |
| − | + | <noinclude> | |
{{Documentation}}</noinclude><!-- | {{Documentation}}</noinclude><!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
Revision as of 12:20, 26 February 2016
Chisholm, Hugh, ed. (1911). "article name needed". Encyclopædia Britannica (11th ed.). Cambridge University Press. Text "HIDE_PARAMETER20 " ignored (help)
| 50px | This is the template sandbox page for Template:Cite EB1911 (diff). See also the companion subpage for test cases. |
| 30px | This template uses Lua: |
Contents
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}} | Chisholm, Hugh, ed. (1911). . 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=}} | File:PD-icon.svg 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=}}
| 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. |
| 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:
- Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with no article parameter (0)
- Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with Wikisource reference (0)
- Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica without Wikisource reference (0)
For an overview group category of the above see: Category:Wikipedia articles incorporating a citation from the 1911 Encyclopædia Britannica.
See also
- Wikipedia:WikiProject Encyclopaedia Britannica—for information on usage of the material.
- {{EB1911}} Attribute an EB 1911 article.
- {{Sect1911}} Attribute a section to EB 1911.
- {{EB1911 poster}} display an EB 1911 Wikisource article in a top box on the right.
- {{Update-EB}} for articles with issues related to using information from the 1911 Encyclopaedia Britannica.
Notes
- ↑ 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!
- ↑ 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.
| The above documentation is transcluded from Template:Cite EB1911/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |