Difference between revisions of "Template:Cite NIE"

From blackwiki
Jump to navigation Jump to search
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|}}}||[[Image:{{#if:{{{title|}}}|PD-icon.svg|wikisource-logo.svg}}|12px|link=]]&nbsp;}}<!--
+
-->{{#if:{{{no-icon|{{{noicon|}}}}}}||{{#if:{{{title|}}}|[[Image:PD-icon.svg|wikisource-logo.svg|12px|link=]]&nbsp;}}}}<!--
 
  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
-->{{cite encyclopedia
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
  |{{#if:{{{1|}}} ||HIDE_PARAMETER1}}={{{1|}}}
+
  |_exclude=display, inline, no-icon, noicon, short, supplement, wstitle, vb, _debug
<!--Pre-set parameters-->
+
  |_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}}}|
+
|title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link
            {{#if:{{{wstitle|}}}|[[s:The New International Encyclopædia/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!-- -->}}}]]|<sup><span style="color:red">article name needed</span></sup>}}
+
                |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-->
  |{{#if:{{{wstitle|}}} |HIDE_PARAMETER2 |url}}={{#if:{{{wstitle|}}} ||{{{url|}}} }}
+
|url={{#if:{{{wstitle|}}}||{{{url|}}}}}
  
 
<!--Pre-set parameters but hidden if short-->
 
<!--Pre-set parameters but hidden if short-->
  |{{#if:{{{short|}}} |HIDE_PARAMETER3 |edition}}={{#if:{{{short|}}} ||{{{edition|1st}}} }}
+
|edition={{#if:{{{short|}}}||{{{edition|1st}}}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER4  |location}}={{#if:{{{short|}}} ||{{{location|New York}}} }}
+
|location={{#if:{{{short|}}}||{{{location|New York}}}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER5  |publisher}}={{#if:{{{short|}}} ||{{{publisher|Dodd, Mead}}} }}
+
|publisher={{#if:{{{short|}}}||{{{publisher|Dodd, Mead}}}}}
  
 
   <!--
 
   <!--
Line 42: Line 47:
 
   Herbert Tredwell Wade
 
   Herbert Tredwell Wade
 
   -->
 
   -->
  |{{#if:{{{short|}}} |HIDE_PARAMETER10 |editor-first}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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.}}}
+
                                       |#default={{{editor-first|D. C.}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER11 |editor-last}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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}}}
+
                                       |#default={{{editor-last|Gilman}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER12 |editor-link}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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}}}
+
                                       |#default={{{editor-link|Daniel Coit Gilman}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER13 |editor2-first}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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.}}}
+
                                       |#default={{{editor2-first|H. T.}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER14 |editor2-last}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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}}}
+
                                       |#default={{{editor2-last|Peck}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER15 |editor3-first}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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.}}}
+
                                       |#default={{{editor3-first|F. M.}}}
 
                                       }}}}
 
                                       }}}}
  |{{#if:{{{short|}}} |HIDE_PARAMETER16 |editor3-last}}={{#if:{{{short|}}} ||{{#switch:{{{edition}}}
+
|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}}}
+
                                       |#default={{{editor3-last|Colby}}}
 
                                       }}}}
 
                                       }}}}
 
<!--Optional parameters-->
 
|{{#if:{{{author|}}} |author  |HIDE_PARAMETER17}}={{{author|}}}
 
|{{#if:{{{authorlink|}}}|authorlink|HIDE_PARAMETER18}}={{{authorlink|}}} 
 
|{{#if:{{{first|}}}  |first  |HIDE_PARAMETER19}}={{{first|}}}
 
|{{#if:{{{last|}}}  |last  |HIDE_PARAMETER20}}={{{last|}}}
 
|{{#if:{{{author2|}}}|author2|HIDE_PARAMETER21}}={{{author2|}}}
 
|{{#if:{{{author2link|}}}|author2link|HIDE_PARAMETER22}}={{{author2link|}}} 
 
|{{#if:{{{first2|}}} |first2 |HIDE_PARAMETER23}}={{{first2|}}}
 
|{{#if:{{{last2|}}}  |last2  |HIDE_PARAMETER24}}={{{last2|}}}
 
|{{#if:{{{author3|}}}|author3|HIDE_PARAMETER25}}={{{author3|}}}
 
|{{#if:{{{author3link|}}}|author3link|HIDE_PARAMETER26}}={{{author3link|}}} 
 
|{{#if:{{{first3|}}} |first3 |HIDE_PARAMETER27}}={{{first3|}}}
 
|{{#if:{{{last3|}}}  |last3  |HIDE_PARAMETER28}}={{{last3|}}}
 
|{{#if:{{{volume|}}} |volume |HIDE_PARAMETER29}}={{{volume|}}}
 
|{{#if:{{{page|}}}  |page  |HIDE_PARAMETER30}}={{{page|}}}
 
|{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER31}}={{{pages|}}}
 
|{{#if:{{{ref|}}}    |ref    |HIDE_PARAMETER32}}={{{ref|}}}
 
|{{#if:{{{mode|}}}  |mode  |HIDE_PARAMETER33}}={{{mode|}}}
 
 
 
}}<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)

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

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). "Kapp, Friedrich" . New International Encyclopedia (1st ed.). New York: Dodd, Mead.
{{Cite NIE|wstitle=Kapp, Friedrich|short=1}}
"Kapp, Friedrich" . 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:

adding inline for use inside an inline citation

  • {{Cite NIE|wstitle=Schlatter, Francis|vb=x|inline=x}}

displays as:

Hidden categories

This template automatically adds the hidden categories

  1. Category:Wikipedia articles incorporating text via vb from the New International Encyclopedia
  2. 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

ja:Template:Cite NIE