Difference between revisions of "Template:Cite EB1922/sandbox"
imported>WOSlinker (cite encyclopedia) |
imported>WOSlinker (sync) |
||
| Line 3: | Line 3: | ||
<!--put in default values for some parameters--> | <!--put in default values for some parameters--> | ||
| + | |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]]}}} | |encyclopedia={{{encyclopedia|[[Encyclopædia Britannica]]}}} | ||
|year={{{year|1922}}} | |year={{{year|1922}}} | ||
|edition={{{edition|12th}}} | |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--> | <!--if title= wstitle is not set the display a warning in red--> | ||
| Line 13: | Line 16: | ||
<!--Only set url= if title= is also set.--> | <!--Only set url= if title= is also set.--> | ||
| − | |{{#if: {{{title|}}} |{{#if:{{{url|}}} |url | | + | |{{#if: {{{title|}}} |{{#if:{{{url|}}} |url |HIDE_PARAMETER1}} |HIDE_PARAMETER1}}={{{url|}}} |
<!--pass into cite encyclopedia some of the more | <!--pass into cite encyclopedia some of the more | ||
common parameters that my be used.--> | common parameters that my be used.--> | ||
| − | |{{#if:{{{author|}}} |author | | + | |{{#if:{{{author|}}} |author |HIDE_PARAMETER2}}={{{author|}}} |
| − | |{{#if:{{{last|}}} |last | | + | |{{#if:{{{last|}}} |last |HIDE_PARAMETER3}}={{{last|}}} |
| − | |{{#if:{{{last1|}}} |last1 | | + | |{{#if:{{{last1|}}} |last1 |HIDE_PARAMETER4}}={{{last1|}}} |
| − | |{{#if:{{{authorlink|}}} |authorlink | | + | |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER5}}={{{authorlink|}}} |
| − | |{{#if:{{{first|}}} |first | | + | |{{#if:{{{first|}}} |first |HIDE_PARAMETER6}}={{{first|}}} |
| − | |{{#if:{{{first1|}}} |first1 | | + | |{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER7}}={{{first1|}}} |
| − | |{{#if:{{{volume|}}} |volume | | + | |{{#if:{{{volume|}}} |volume |HIDE_PARAMETER8}}={{{volume|}}} |
| − | |{{#if:{{{page|}}} |page | | + | |{{#if:{{{page|}}} |page |HIDE_PARAMETER9}}={{{page|}}} |
| − | |{{#if:{{{pages|}}} |pages | | + | |{{#if:{{{pages|}}} |pages |HIDE_PARAMETER10}}={{{pages|}}} |
| − | |{{#if:{{{ref|}}} |ref | | + | |{{#if:{{{ref|}}} |ref |HIDE_PARAMETER11}}={{{ref|}}} |
}}<!-- | }}<!-- | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{#ifeq: {{NAMESPACEE}} |<!--is set--> | -->{{#ifeq: {{NAMESPACEE}} |<!--is set--> | ||
|<!--Sort out the parameters--> | |<!--Sort out the parameters--> | ||
| − | + | {{#if: {{{wstitle|}}} |<!-- then | |
| − | + | -->[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica with Wikisource reference]]<!-- | |
| − | + | -->|{{#if: {{{title|}}} |<!-- then | |
| − | + | -->[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica without Wikisource reference]]<!-- | |
| − | + | -->|{{#if: {{{1|}}} |<!--then | |
| − | + | -->[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica with an unnamed parameter]]<!-- | |
| − | + | -->|[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica with no article parameter]]<!-- | |
| − | + | -->}}<!--end 1--> | |
| − | + | }}<!--end title--> | |
| − | + | }}<!--end wstitle--> | |
| − | |||
| − | }}<!--end | ||
<!-- Specific test for obsolete parameters so that they can be altered for standard ones--> | <!-- Specific test for obsolete parameters so that they can be altered for standard ones--> | ||
{{#if:{{{article|}}}|[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica that includes an obsolete parameter]]}} | {{#if:{{{article|}}}|[[Category:Wikipedia articles incorporating a citation from the 1922 Encyclopaedia Britannica that includes an obsolete parameter]]}} | ||
Revision as of 10:00, 25 October 2014
File:Wikisource-logo.svg Chisholm, Hugh, ed. (1922). "article name needed". Encyclopædia Britannica (12th ed.). London & New York.
| 50px | This is the template sandbox page for Template:Cite EB1922 (diff). See also the companion subpage for test cases. |
Contents
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). . 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:
- File:PD-icon.svg 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). . 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 domain: Chisholm, Hugh, ed. (1922). . 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). . 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
- {{EB1922 poster}}
| The above documentation is transcluded from Template:Cite EB1922/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. |