Jump to content

Template:Cite NSRW/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB
m syntaxhighlight lang="wikitext"
 
(4 intermediate revisions by 4 users not shown)
Line 15: Line 15:
<code><nowiki>{{</nowiki>Cite NSRW|title=''non-Wikisource article title''|author=''name'' |noicon=''x''|vb=''x''|volume=''number''|url=''http...''|accessdate=''date''}}</nowiki></code>
<code><nowiki>{{</nowiki>Cite NSRW|title=''non-Wikisource article title''|author=''name'' |noicon=''x''|vb=''x''|volume=''number''|url=''http...''|accessdate=''date''}}</nowiki></code>


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 {{tl|harv}} family of templates. See [[tl|cite encyclopedia}} for details about these standard parameters.
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 {{tl|harv}} family of templates. See {{tl|cite encyclopedia}} for details about these standard parameters.


=== Examples ===
=== Examples ===
Line 57: Line 57:
When <code>title</code> is being used, <code>url</code> with possibly <code>accessdate</code> can be used to specify an external link. For example:
When <code>title</code> is being used, <code>url</code> with possibly <code>accessdate</code> can be used to specify an external link. For example:


<syntaxhighlight lang="wikitext">
<pre><nowiki>
{{Cite NSRW
{{Cite NSRW
|title=Tower, Charlemagne
|title=Tower, Charlemagne
Line 64: Line 64:
|accessdate=2009-07-31
|accessdate=2009-07-31
}} At [http://chestofbooks.com chestofbooks.com].
}} At [http://chestofbooks.com chestofbooks.com].
</syntaxhighlight>
</nowiki></pre>


displays as:
displays as:
Line 124: Line 124:
{{reflist|group="note"}}
{{reflist|group="note"}}


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
<includeonly>{{Sandbox other|
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
{{DEFAULTSORT:Nsrw Cite}}
{{DEFAULTSORT:Nsrw Cite}}
[[Category:Encyclopedia source templates]]
[[Category:Specific-source templates]]
[[Category:Specific-source templates]]
[[Category:Wikisource link templates]]
[[Category:Wikisource link templates]]


[[ja:Template:NSRW Cite]]
}}</includeonly>
}}</includeonly>

Latest revision as of 12:45, 17 May 2023

Purpose

[edit]

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

[edit]

{{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 {{cite encyclopedia}} for details about these standard parameters.

Examples

[edit]

Typical

[edit]

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

displays as:

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

short option

[edit]

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

removes editor and publisher information and displays as:

"Schurz, Carl" . The New Student's Reference Work . 1914.

With comment

[edit]

{{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 Student's Reference Work . Chicago: F. E. Compton and Co. The most prominent foreign-born citizen of the 19th-century United States.

display option

[edit]

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 Student's Reference Work . Chicago: F. E. Compton and Co.

title option (no Wikisource link)

[edit]

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

displays as:

Public Domain Beach, Chandler B., ed. (1914). "Tower, Charlemagne". The New Student's 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:

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

author option

[edit]

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

displays as:

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

first last options

[edit]

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

displays as:

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

mode option

[edit]

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 Student's Reference Work , Chicago: F. E. Compton and Co

noicon option

[edit]

{{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

[edit]

{{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 Student's Reference Work . Chicago: F. E. Compton and Co.

Hidden categories

[edit]

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

See also

[edit]

Notes

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