Difference between revisions of "Template:Cite NSRW/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(sync)
imported>Trappist the monk
Line 1: Line 1:
<!--
+
{{#if:{{{no-icon|{{{noicon|}}}}}}||{{#ifeq: {{{wstitle|}}}||[[File:PD-icon.svg|12px|alt=|link=]]&nbsp;}}}}<!-- optional public domain icon when wstitle is missing or empty
optional icon - included by default
+
-->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
-->{{#if:{{{noicon|}}}||[[Image:wikisource-logo.svg|12px|link=]]&nbsp;}}<!--
 
optional verbatim message - not included by default
 
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
 
cite encyclopedia wrapper:
 
  unlinked title can be specified;
 
  otherwise first unnamed arg is used for Wikisource link.
 
-->{{cite encyclopedia
 
|{{#if:{{{author|}}} |author |HIDE_PARAMETER1}}={{{author|}}}
 
|{{#if:{{{first|}}} |first  |HIDE_PARAMETER2}}={{{first|}}}
 
|{{#if:{{{last|}}}  |last  |HIDE_PARAMETER3}}={{{last|}}}
 
|year={{{year|1914}}}
 
|title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|[[s:The New Student's Reference Work/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!--d-->}}}]]|<sup>[[s:The New Student's Reference Work|<span style="color:red">article name needed</span>]]</sup> <!--end if wstitle-->}}<!--end if title-->}}
 
  
|{{#if:{{{short|}}} |HIDE_PARAMETER4 |editor-first}}={{#if:{{{short|}}}||{{{editor-first|Chandler B.}}} }}
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
|{{#if:{{{short|}}} |HIDE_PARAMETER5 |editor-last}}={{#if:{{{short|}}}||{{{editor-last|Beach}}} }}
+
  |_exclude=display, no-icon, noicon, short, wstitle, vb, _debug
| encyclopedia={{{encyclopedia|[[s:The New Student's Reference Work|The New Student's Reference Work]]}}}
+
  |_reuse=title <!-- these are reused -->
  |{{#if:{{{short|}}} |HIDE_PARAMETER6 |location}}={{#if:{{{short|}}}||{{{location|Chicago}}} }}
 
  |{{#if:{{{short|}}} |HIDE_PARAMETER7 |publisher}}={{#if:{{{short|}}}||{{{publisher|F. E. Compton and Co}}} }}
 
  
  |{{#if:{{{volume|}}} |volume |HIDE_PARAMETER8}}={{{volume|}}}
+
  | encyclopedia=[[s:The New Student's Reference Work|The New Student's Reference Work]]
|{{#if:{{{page|}}}   |page  |HIDE_PARAMETER9}}={{{page|}}}
+
 
|{{#if:{{{pages|}}} |pages  |HIDE_PARAMETER10}}={{{pages|}}}
+
|year=1914
|{{#if:{{{ref|}}} |ref  |HIDE_PARAMETER11}}={{{ref|}}}
+
 
  |{{#if:{{{title|}}} |url  |HIDE_PARAMETER12}}={{{url|}}}
+
|title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link
  |{{#if:{{{accessdate|}}} |accessdate  |HIDE_PARAMETER13}}={{{accessdate|}}}<!--not displayed by {{cite encylopedia}} if url= is not set-->
+
            |link=The New Student's Reference Work/{{{wstitle|}}}|{{{display|{{{wstitle|}}}}}}
 +
            |anchor=
 +
            |label={{{display|{{{wstitle|}}}}}}
 +
            |noicon={{{no-icon|{{{noicon|}}}}}}
 +
          }}}}}}
 +
 
 +
  |editor-first={{#if:{{{short|}}}||Chandler B.}}
 +
|editor-last={{#if:{{{short|}}}||Beach}}
 +
  |location={{#if:{{{short|}}}||Chicago}}
 +
|publisher={{#if:{{{short|}}}||F. E. Compton and Co}}
 
}}<includeonly><!--
 
}}<includeonly><!--
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set-->

Revision as of 13:03, 11 October 2020

 Beach, Chandler B., ed. (1914). The New Student's Reference Work. Chicago: F. E. Compton and Co. Missing or empty |title= (help)

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

Purpose

This template enables the citation of articles from The New Student's Reference Work in the manner of {{cite encyclopedia}}. The article title can have a Wikisource link, an arbitrary external link, or no link.

Usage

{{Cite NSRW|wstitle=article title}}

or with a specification of the optional display, author, noicon, vb or volume parameters:[note 1]

{{Cite NSRW|wstitle=article title|display=alternative title |author=name|noicon=x|vb=x|volume=number}}

or with a specification of a title not linked to Wikisource:

{{Cite NSRW|title=non-Wikisource article title|author=name |noicon=x|vb=x|volume=number|url=http...|accessdate=date}}</nowiki>

As an alternative to author=full name the parameters first=first names and last=last name can be used. The ref=refs parameter can also be set for use with {{harv}} family of templates. See [[tl|cite encyclopedia}} for details about these standard parameters.

Examples

Typical

{{Cite NSRW|wstitle=Schurz, Carl}}

displays as:

Beach, Chandler B., ed. (1914). "Schurz, Carl" . The New Students Reference Work . Chicago: F. E. Compton and Co.

short option

{{Cite NSRW|wstitle=Schurz, Carl|short=x}}

removes editor and publisher information and displays as:

"Schurz, Carl" . The New Students Reference Work . 1914.

With comment

{{Cite NSRW|wstitle=Schurz, Carl}} The most prominent foreign-born citizen of the 19th-century United States.

displays as:

Beach, Chandler B., ed. (1914). "Schurz, Carl" . The New Students Reference Work . Chicago: F. E. Compton and Co. The most prominent foreign-born citizen of the 19th-century United States.

display option

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 NSRW|wstitle=Madeira (river)|display=Madeira, a river of South America}}

displays as:

Beach, Chandler B., ed. (1914). "Madeira, a river of South America" . The New Students Reference Work . Chicago: F. E. Compton and Co.

title option (no Wikisource link)

{{Cite NSRW|title=Tower, Charlemagne}}

displays as:

 Beach, Chandler B., ed. (1914). "Tower, Charlemagne". The New Students Reference Work . Chicago: F. E. Compton and Co.

When title is being used, url with possibly accessdate can be used to specify an external link. For example:

{{Cite NSRW
 |title=Tower, Charlemagne
 |volume=4
 |url=http://chestofbooks.com/.../pp0239.html
 |accessdate=2009-07-31
}} At [http://chestofbooks.com chestofbooks.com].

displays as:

 Beach, Chandler B., ed. (1914). "Tower, Charlemagne". The New Students Reference Work . 4. Chicago: F. E. Compton and Co. Retrieved 2009-07-31. At chestofbooks.com.

author option

{{Cite NSRW|author=Fred Smith |wstitle=Schurz, Carl}}

displays as:

Fred Smith (1914). "Schurz, Carl" . In Beach, Chandler B. (ed.). The New Students Reference Work . Chicago: F. E. Compton and Co.

first last options

{{Cite NSRW|first=Fred |last=Smith |wstitle=Schurz, Carl}}

displays as:

Smith, Fred (1914). "Schurz, Carl" . In Beach, Chandler B. (ed.). The New Students Reference Work . Chicago: F. E. Compton and Co.

mode option

By default this template displays as Citation Style 1 (cs1). The mode option can be used to change it.

{{Cite NSRW|wstitle=Schurz, Carl|mode=cs2}}

displays as:

Beach, Chandler B., ed. (1914), "Schurz, Carl" , The New Students Reference Work , Chicago: F. E. Compton and Co

noicon option

{{Cite NSRW|wstitle=Schurz, Carl|noicon=x}}

displays as:

Beach, Chandler B., ed. (1914). "Schurz, Carl". The New Student's Reference Work. Chicago: F. E. Compton and Co.

vb option

{{Cite NSRW|wstitle=Schurz, Carl|vb=x}}

displays as:

This article incorporates text from a publication now in the public domainBeach, Chandler B., ed. (1914). "Schurz, Carl" . The New Students Reference Work . Chicago: F. E. Compton and Co.

Hidden categories

This template places articles into a hidden category with sub-categories to aid maintenance:

See also

Notes

  1. For compatibility with similar templates, the name of the article can also be specified using an unnamed argument instead of the wstitle parameter.