Difference between revisions of "Template:Cite EB1922"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(remove unnamed parameter as an alternative for wstitle=)
imported>Trappist the monk
(sync from sandbox;)
 
Line 1: Line 1:
{{#if:{{{noicon|}}}||[[File:{{#if:{{{title|}}}|PD-icon.svg{{!}}alt=public domain|wikisource-logo.svg{{!}}alt=Wikisource}}|12px|link=]]&nbsp;}}{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
+
{{#if:{{{no-icon|{{{noicon|}}}}}}||{{#ifeq: {{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=|link=]]&nbsp;}}}}<!--
-->{{cite encyclopedia
+
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--  
 +
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
 +
  |_exclude=display, no-icon, noicon, short, wstitle, vb, _debug
 +
  |_reuse=title, url <!-- these are reused -->
  
<!--put in default values for some parameters-->
+
  |encyclopedia=[[Encyclopædia Britannica]]
    |editor-first = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor-first|Hugh}}}}}
 
    |editor-last = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{editor-last|Chisholm}}}}}
 
    |encyclopedia={{{encyclopedia|[[Encyclopædia Britannica]]}}}
 
    |year={{{year|1922}}}
 
    |edition={{{edition|12th}}}
 
    |location = {{#if: {{{short|}}}|<!-- eq to empty -->|{{{location|London & New York}}}}}
 
  
<!--if title= wstitle is not set the display a warning in red-->
+
  |editor-first={{#if:{{{short|}}}||Hugh}}
    |title={{#if:{{{title|}}}|{{{title}}}|
+
  |editor-last={{#if:{{{short|}}}||Chisholm}}
            {{#if:{{{wstitle|}}}|[[Wikisource:1922 Encyclopædia Britannica/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- display -->}}}]]|<sup><span style="color:red">article name needed</span></sup>}}
 
          }}
 
  
<!--Only set url= if title= is also set.-->
+
  |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link
    |{{#if: {{{title|}}} |{{#if:{{{url|}}} |url  |HIDE_PARAMETER1}} |HIDE_PARAMETER1}}={{#if: {{{title|}}} |{{#if:{{{url|}}} |{{{url|}}} }} }}
+
              |link=1922 Encyclopædia Britannica/{{{wstitle}}}
 +
              |label={{{display|{{{wstitle|}}}}}}
 +
              |noicon={{{no-icon|{{{noicon|}}}}}}
 +
            }}}}}}
  
<!--pass into cite encyclopedia some of the more
+
  |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
    common parameters that my be used.-->
+
   |edition=12th
    |{{#if:{{{author|}}}    |author      |HIDE_PARAMETER2}}={{{author|}}}
+
   |date=1922
    |{{#if:{{{last|}}}       |last        |HIDE_PARAMETER3}}={{{last|}}}
+
   |location={{#if:{{{short|}}}||London & New York}}
    |{{#if:{{{last1|}}}      |last1        |HIDE_PARAMETER4}}={{{last1|}}}
+
   |publisher={{#if:{{{short|}}}||The Encyclopædia Britannica Company}}
    |{{#if:{{{authorlink|}}} |authorlink   |HIDE_PARAMETER5}}={{{authorlink|}}}
+
   }}<includeonly><!--
 
 
    |{{#if:{{{first|}}}  |first    |HIDE_PARAMETER6}}={{{first|}}}
 
    |{{#if:{{{first1|}}} |first1  |HIDE_PARAMETER7}}={{{first1|}}}
 
 
 
    |{{#if:{{{author2|}}}    |author2      |HIDE_PARAMETER8}}={{{author2|}}}
 
    |{{#if:{{{last2|}}}      |last2        |HIDE_PARAMETER9}}={{{last2|}}}
 
    |{{#if:{{{authorlink2|{{{author2link|}}}}}} |authorlink2   |HIDE_PARAMETER10}}={{{authorlink2|{{{author2link|}}}}}}
 
    |{{#if:{{{first2|}}} |first2   |HIDE_PARAMETER11}}={{{first2|}}}
 
 
 
    |{{#if:{{{volume|}}} |volume |HIDE_PARAMETER12}}={{{volume|}}}
 
    |{{#if:{{{page|}}}   |page  |HIDE_PARAMETER13}}={{{page|}}}
 
    |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER14}}={{{pages|}}}
 
    |{{#if:{{{ref|}}}    |ref    |HIDE_PARAMETER15}}={{{ref|}}}
 
 
 
<!-- pass on unnamed parameters for error processing by {{cite encyclopedia}}-->
 
    |{{#if:{{{1|}}}   |1    |HIDE_PARAMETERone}}={{{1|}}}
 
   }}<!--
 
--><includeonly><!--
 
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
     |<!--Sort out the parameters-->
 
     |<!--Sort out the parameters-->

Latest revision as of 19:51, 11 October 2020

12px Chisholm, Hugh, ed. (1922). Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company. Missing or empty |title= (help)

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

Purpose

This template enables the citation of articles from the Wikisource project 1922 Encyclopædia Britannica in the manner of {{cite encyclopedia}}.

Usage

minimum usage is:

{{Cite EB1922|wstitle=name of the article}}

or

{{Cite EB1922|title=name of the article}}

The template {{{BASENAME}}} is a wrapper around {{cite encyclopedia}} some of the parameters used by {{cite encyclopedia}} can be set when calling this template. These are:

|author= |first= |last= |page= |pages= |url= |volume=

See the documentation of {{cite encyclopedia}} for more details about these parameters.

There are three other parameters which can be used in this template that affect it and are not passed on as parameters into {{cite encyclopedia}} these are:

|noicon=x |vb=x |display=display name

Details of theses parameters can be found lower down this page.

Examples

Display using wstitle (Wikisource link)

{{Cite EB1922|wstitle=Fischer, Theobald}}

displays as:

Chisholm, Hugh, ed. (1922). "Fischer, Theobald" . Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company.

Display using title (no Wikisource link)

{{Cite EB1922|title=Fischer, Theobald}}

displays as:

12px Chisholm, Hugh, ed. (1922). "Fischer, Theobald". Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company.

When title is being used, url can be used to specify an external link.

With comment

{{Cite EB1922|wstitle=Fischer, Theobald}} A German-born geographer who developed the Mediterranean region concept.

displays as:

Chisholm, Hugh, ed. (1922). "Fischer, Theobald" . Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company. A German-born geographer who developed the Mediterranean region concept.

Using noicon

{{Cite EB1922|wstitle=Fischer, Theobald|noicon=x}}

displays as:

Chisholm, Hugh, ed. (1922). "Fischer, Theobald". Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company.

Using vb

If text is incorporated verbatim into an article, the vb parameter can be used to tack on a notice appropriate to the policy in Wikipedia:Plagiarism.

{{Cite EB1922|wstitle=Lowell, Abbott Lawrence|vb=x}}

displays as:

This article incorporates text from a publication now in the public domainChisholm, Hugh, ed. (1922). "Lowell, Abbott Lawrence" . Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company.

Using display

The mechanics of Wikisource will sometimes require that a link have disambiguation information which is not part of the original title. The display parameter allows this information to be hidden for the purpose of the citation. For example:

{{Cite EB1922|wstitle=Nicholas (Russian Grand Duke)|display=Nicholas (Nikolai Nikolayevich), Russian Grand Duke}}

displays as:

Chisholm, Hugh, ed. (1922). "Nicholas (Nikolai Nikolayevich), Russian Grand Duke" . Encyclopædia Britannica (12th ed.). London & New York: The Encyclopædia Britannica Company.

Hidden categories

For an overview category for this template see: Category:Wikipedia articles incorporating a citation from the 1922 Encyclopædia Britannica.

See also