Difference between revisions of "Template:Cite NIE"
imported>Primefac m (Changed protection level for "Template:Cite NIE": high-risk template with 2000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
imported>Trappist the monk m (sync from sandbox;) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
optional icon - included by default | optional icon - included by default | ||
| − | -->{{#if:{{{noicon|}}}|| | + | -->{{#if:{{{no-icon|{{{noicon|}}}}}}||{{#if:{{{title|}}}|[[Image:PD-icon.svg|wikisource-logo.svg|12px|link=]] }}}}<!-- |
optional verbatim message - not included by default | optional verbatim message - not included by default | ||
-->{{#if:{{{vb|}}}|{{#ifeq: {{{inline|}}} |<!--eq to empty-->|<!--then display-->This article | -->{{#if:{{{vb|}}}|{{#ifeq: {{{inline|}}} |<!--eq to empty-->|<!--then display-->This article | ||
| Line 11: | Line 11: | ||
or wstitle= to link to the article in wikisource. | or wstitle= to link to the article in wikisource. | ||
year will default to 1905 if not set | year will default to 1905 if not set | ||
| − | -->{{ | + | -->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia |
| − | + | |_exclude=display, inline, no-icon, noicon, short, supplement, wstitle, vb, _debug | |
| − | <!-- | + | |_reuse=title <!-- these are reused --> |
| + | |||
| year={{{year|1905}}} | | year={{{year|1905}}} | ||
| encyclopedia = {{{encyclopedia|[[New International Encyclopedia]]}}} | | encyclopedia = {{{encyclopedia|[[New International Encyclopedia]]}}} | ||
<!--parameter that if not set displays a red warning string--> | <!--parameter that if not set displays a red warning string--> | ||
| − | + | |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link | |
| − | + | |link=The New International Encyclopædia/{{{wstitle}}} | |
| − | + | |anchor= | |
| + | |label={{{display|{{{wstitle|}}}}}} | ||
| + | |noicon={{{no-icon|{{{noicon|}}}}}} | ||
| + | }}}}}} | ||
| + | |||
<!--if wstitle is set do not pass on a url string--> | <!--if wstitle is set do not pass on a url string--> | ||
| − | + | |url={{#if:{{{wstitle|}}}||{{{url|}}}}} | |
<!--Pre-set parameters but hidden if short--> | <!--Pre-set parameters but hidden if short--> | ||
| − | + | |edition={{#if:{{{short|}}}||{{{edition|1st}}}}} | |
| − | + | |location={{#if:{{{short|}}}||{{{location|New York}}}}} | |
| − | + | |publisher={{#if:{{{short|}}}||{{{publisher|Dodd, Mead}}}}} | |
<!-- | <!-- | ||
| Line 42: | Line 47: | ||
Herbert Tredwell Wade | Herbert Tredwell Wade | ||
--> | --> | ||
| − | + | |editor-first={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor-first|D. C.}}} | |1 |1st |First={{{editor-first|D. C.}}} | ||
|2 |2nd |Second={{{editor-first|F.}}} | |2 |2nd |Second={{{editor-first|F.}}} | ||
|Supplement={{{editor-first|Herbert Tredwell}}} | |Supplement={{{editor-first|Herbert Tredwell}}} | ||
| − | | | + | |#default={{{editor-first|D. C.}}} |
}}}} | }}}} | ||
| − | + | |editor-last={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor-last|Gilman}}} | |1 |1st |First={{{editor-last|Gilman}}} | ||
|2 |2nd |Second={{{editor-last|Colby}}} | |2 |2nd |Second={{{editor-last|Colby}}} | ||
|Supplement={{{editor-last|Wade}}} | |Supplement={{{editor-last|Wade}}} | ||
| − | | | + | |#default={{{editor-last|Gilman}}} |
}}}} | }}}} | ||
| − | + | |editor-link={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor-link|Daniel Coit Gilman}}} | |1 |1st |First={{{editor-link|Daniel Coit Gilman}}} | ||
|2 |2nd |Second={{{editor-link|}}} | |2 |2nd |Second={{{editor-link|}}} | ||
|Supplement={{{editor-link|}}} | |Supplement={{{editor-link|}}} | ||
| − | | | + | |#default={{{editor-link|Daniel Coit Gilman}}} |
}}}} | }}}} | ||
| − | + | |editor2-first={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor2-first|H. T.}}} | |1 |1st |First={{{editor2-first|H. T.}}} | ||
|2 |2nd |Second={{{editor2-first|T.}}} | |2 |2nd |Second={{{editor2-first|T.}}} | ||
|Supplement={{{editor2-first|}}} | |Supplement={{{editor2-first|}}} | ||
| − | | | + | |#default={{{editor2-first|H. T.}}} |
}}}} | }}}} | ||
| − | + | |editor2-last={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor2-last|Peck}}} | |1 |1st |First={{{editor2-last|Peck}}} | ||
|2 |2nd |Second={{{editor2-last|Williams}}} | |2 |2nd |Second={{{editor2-last|Williams}}} | ||
|Supplement={{{editor2-last}}} | |Supplement={{{editor2-last}}} | ||
| − | | | + | |#default={{{editor2-last|Peck}}} |
}}}} | }}}} | ||
| − | + | |editor3-first={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor3-first|F. M.}}} | |1 |1st |First={{{editor3-first|F. M.}}} | ||
|2 |2nd |Second={{{editor3-first|}}} | |2 |2nd |Second={{{editor3-first|}}} | ||
|Supplement={{{editor3-first|}}} | |Supplement={{{editor3-first|}}} | ||
| − | | | + | |#default={{{editor3-first|F. M.}}} |
}}}} | }}}} | ||
| − | + | |editor3-last={{#if:{{{short|}}}||{{#switch:{{{edition}}} | |
|1 |1st |First={{{editor3-last|Colby}}} | |1 |1st |First={{{editor3-last|Colby}}} | ||
|2 |2nd |Second={{{editor3-last|}}} | |2 |2nd |Second={{{editor3-last|}}} | ||
|Supplement={{{editor3-last|}}} | |Supplement={{{editor3-last|}}} | ||
| − | | | + | |#default={{{editor3-last|Colby}}} |
}}}} | }}}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set--> | }}<includeonly>{{#ifeq: {{NAMESPACEE}} |<!--is set--> | ||
|<!--Sort out the parameters | |<!--Sort out the parameters | ||
Revision as of 00:19, 7 December 2019
Gilman, D. C.; Peck, H. T.; Colby, F. M., eds. (1905). New International Encyclopedia (1st ed.). New York: Dodd, Mead. Missing or empty |title= (help)
Purpose
This template enables the citation of articles from The New International Encyclopedia in the manner of {{cite encyclopedia}}. It provides for links to the Wikisource project The New International Encyclopædia.
Usage
{{Cite NIE|title=NIE article name}}
- Parameters to alter the prescript and icon
- noicon=1: turns off the icon
- noprescript=1: turns off the prescript
- inline=1: replaces "This article" with "One or more of the preceding sentences" (if set then place the template into an inline citation)
- Pre-set parameters
- edition=option if not set defaults to 1st
- encyclopedia=option if not set defaults to New International Encyclopedia
- location=option if not set defaults to New York
- publisher=option if not set defaults to Dodd, Mead
- ref=option if not set defaults to harv
- year=option if not set defaults to 1905
Some preset parameters are altered by the parameter edition which this can be set to 1st (or First or 1) or to 2nd (or Second or 2) or to Supplement
If edition is allowed to default to 1st, or is set to "1st" (etc.) the editor parameters default to:
- editor-first=|D. C., editor-last=Gilman, editor-link=Daniel Coit Gilman
- editor2-first=H. T., editor2-last=Peck
- editor3-first=F. M., editor3-last=Colby
If editor is set to 2nd (or Second or 2)
- editor-first=F. M., editor-last=Colby, editor-link=not set
- editor2-first=T., editor2-last=Williams
- editor3-first=not set, editor3-last=not set
If editor is set to Supplement
- editor-first|Herbert Tredwell, editor-last=Wade, editor-link=not set
- editor2-first=not set, editor2-last=not set
- editor3-first=not set, editor3-last=not set
All above parameters above can be over ridden by passing in different values for the parameters.
- Other parameters that can be set but are not set by default
- author=author's full name
or
- first=author's first name(s)
- last=author's last name
also
- authorlink=author's Wikipedia article name (will only display if author= or last= is set)
- title=NIE article name
- wstitle=NIE article name: same as functionality as title= but it links to a copy of an NIE article on Wikisource
- display=Alternative name: the alternative name will be displayed instead of the NIE article name (it will only display if wstitle= is set)
- url=URL: this parameter will only be set if the title= parameter is set
- volume=volume number
- page=page number
- pages=page number
If short=flag is set then neither some of the default display parameters are not shown:
{{Cite NIE|wstitle=Kapp, Friedrich}}- Gilman, D. C.; Peck, H. T.; Colby, F. M., eds. (1905). . New International Encyclopedia (1st ed.). New York: Dodd, Mead.
{{Cite NIE|wstitle=Kapp, Friedrich|short=1}}- . New International Encyclopedia. 1905.
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 NIE|wstitle=Schlatter, Francis|vb=x}}
displays as:
- This article incorporates text from a publication now in the public domain: Gilman, D. C.; Peck, H. T.; Colby, F. M., eds. (1905). . New International Encyclopedia (1st ed.). New York: Dodd, Mead.
adding inline for use inside an inline citation
{{Cite NIE|wstitle=Schlatter, Francis|vb=x|inline=x}}
displays as:
- One or more of the preceding sentences incorporates text from a publication now in the public domain: Gilman, D. C.; Peck, H. T.; Colby, F. M., eds. (1905). . New International Encyclopedia (1st ed.). New York: Dodd, Mead.
Hidden categories
This template automatically adds the hidden categories
- Category:Wikipedia articles incorporating text via vb from the New International Encyclopedia
- Category:Wikipedia articles incorporating a citation from the New International Encyclopedia
The first is set if the parameter vb=x is set, otherwise the second category is set.
See also
- {{NIE}}
- {{NIE Poster}}
| The above documentation is transcluded from Template:Cite NIE/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. |