Difference between revisions of "Template:Cite EB1922"

From blackwiki
Jump to navigation Jump to search
imported>PBS
(more parameters. Also red text if no parameter title or wstitle added)
imported>Bob Burkhardt
(Undid revision 503732612 by PBS (talk) see talk page - most of these changes are valueless)
Line 1: Line 1:
{{#if:{{{noicon|}}}||[[Image:{{#if:{{{title|}}}|PD-icon.svg|wikisource-logo.svg}}|12px|link=]]&nbsp;}}{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
+
<includeonly>{{#if:{{{noicon|}}}||[[Image:{{#if:{{{title|}}}|PD-icon.svg|wikisource-logo.svg}}|12px|link=]]&nbsp;}}{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
 
-->{{cite encyclopaedia
 
-->{{cite encyclopaedia
 
+
     |author={{{author|}}}
<!--put in default values for some parameters-->
+
     |encyclopedia=[[Encyclopædia Britannica]]
     |encyclopedia={{{encyclopedia|[[Encyclopædia Britannica]]}}}
+
     |title={{#if:{{{title|}}}|{{{title}}}|[[s:1922 Encyclopædia Britannica/{{{wstitle|{{{1}}}<!-- -->}}}|{{{display|{{{wstitle|{{{1}}}<!-- -->}}}<!-- -->}}}]]}}
     |year={{{year|1922}}}
+
     |year=1922
    |edition={{{edition|12th}}}
+
     |edition=12th
 
+
     |volume={{{volume|}}}
<!--if title= wstitle is not set the display a warning in red-->
+
     |page={{{page|}}}
     |title={{#if:{{{title|}}}|{{{title}}}|
+
     |pages={{{pages|}}}
            {{#if:{{{wstitle|{{{1|}}}<!-- -->}}}|[[s:1922 Encyclopædia Britannica/{{{wstitle|{{{1|}}}<!-- -->}}}|{{{display|{{{wstitle|{{{1|}}}<!-- -->}}}<!-- -->}}}]]|<sup><span style="color:red">article name needed</span></sup>}}
+
     |url={{#if:{{{title|}}}|{{{url|}}}|}}
          }}
+
     |ref= {{{ref|}}}
 
+
   }}</includeonly><noinclude>
<!--Only set url= if title= is also set.-->
+
{{template doc}}
     |{{#if: {{{title|}}} |{{#if:{{{url|}}} |url  |HIDE_PARAMETER}} |HIDE_PARAMETER}}={{{url|}}}
 
 
 
<!--pass into cite encyclopedia some of the more
 
    common parameters that my be used.-->
 
     |{{#if:{{{author|}}}    |author      |HIDE_PARAMETER}}={{{author|}}}
 
     |{{#if:{{{last|}}}      |last        |HIDE_PARAMETER}}={{{last|}}}
 
     |{{#if:{{{last1|}}}      |last1        |HIDE_PARAMETER}}={{{last1|}}}
 
     |{{#if:{{{authorlink|}}} |authorlink  |HIDE_PARAMETER}}={{{authorlink|}}}
 
 
 
     |{{#if:{{{first|}}}  |first    |HIDE_PARAMETER}}={{{first|}}}
 
    |{{#if:{{{first1|}}} |first1  |HIDE_PARAMETER}}={{{first1|}}}
 
 
 
    |{{#if:{{{volume|}}} |volume |HIDE_PARAMETER}}={{{volume|}}}
 
    |{{#if:{{{page|}}}  |page  |HIDE_PARAMETER}}={{{page|}}}
 
    |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER}}={{{pages|}}}
 
     |{{#if:{{{ref|}}}    |ref    |HIDE_PARAMETER}}={{{ref|}}}
 
   }}<noinclude>
 
{{Documentation}}
 
 
</noinclude>
 
</noinclude>

Revision as of 17:29, 27 August 2012

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:

Wikisource-logo.svg "Fischer, Theobald" . Encyclopædia Britannica (12th ed.). 1922.

Display using title (no Wikisource link)

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

displays as:

PD-icon.svg "Fischer, Theobald". Encyclopædia Britannica (12th ed.). 1922.

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:

Wikisource-logo.svg "Fischer, Theobald" . Encyclopædia Britannica (12th ed.). 1922. A German-born geographer who developed the Mediterranean region concept.

Using noicon

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

displays as:

"Fischer, Theobald" . Encyclopædia Britannica (12th ed.). 1922.

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:

Wikisource-logo.svg This article incorporates text from a publication now in the public domain"Lowell, Abbott Lawrence" . Encyclopædia Britannica (12th ed.). 1922.

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:

Wikisource-logo.svg "Nicholas (Nikolai Nikolayevich), Russian Grand Duke" . Encyclopædia Britannica (12th ed.). 1922.

Hidden categories

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

See also