Difference between revisions of "Template:Cite CAB"

From blackwiki
Jump to navigation Jump to search
imported>Bob Burkhardt
(feed through oclc)
imported>Tom.Reding
m (Remove |separator= param: Category:CS1 errors: empty unknown parameters; confirmed not in use)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
+
<!--
 
  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:{{{noicon|}}}||[[Image:{{#if:{{{wstitle|{{{1|}}}<!--wst-->}}}|wikisource-logo.svg|PD-icon.svg}}|12px|link=]]&nbsp;}}<!--
 
  optional verbatim message - not included by default
 
  optional verbatim message - not included by default
-->{{#if:{{{vb|}}}|This article incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
+
-->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]:&nbsp;|}}<!--
 
  cite encyclopedia wrapper:
 
  cite encyclopedia wrapper:
 
   unlinked title can be specified;
 
   unlinked title can be specified;
 
   otherwise first unnamed arg is used for Wikisource link.
 
   otherwise first unnamed arg is used for Wikisource link.
-->{{cite encyclopaedia
+
-->{{cite encyclopedia
  |editor={{#if:{{{long|}}}|James E. Homans|}}
+
  <!-- set some default parameters-->
 +
  | editor-first = {{{editor-first|{{#if: {{{short|}}}|<!-- eq to empty -->|James E.}} }}}
 +
| editor-last = {{{editor-last|{{#if: {{{short|}}}|<!-- eq to empty -->|Homans}} }}}
 
  |encyclopedia=The Cyclopædia of American Biography
 
  |encyclopedia=The Cyclopædia of American Biography
  |publisher={{#if:{{{long|}}}|The Press Association Compilers, Inc|}}
+
  | location = {{{location|{{#if: {{{short|}}}|<!-- eq to empty -->|New York}} }}}
  |location={{#if:{{{long|}}}|New York|}}
+
  | publisher = {{{publisher|{{#if: {{{short|}}}|<!-- eq to empty -->|The Press Association Compilers, Inc}} }}}
  |title={{#if:{{{title|}}}|{{{title}}}|[[s:The Cyclopædia of American Biography/{{{1}}}|{{{display|{{{1}}}}}}]]}}
+
|year={{{year|1918}}}
  |year=1918
+
 
 +
<!-- title or wstitle warn if not set -->
 +
  |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|{{{1|}}}<!--ws-->}}}|[[s:The Cyclopædia of American Biography/{{{wstitle|{{{1|}}}<!--ws-->}}}|{{{display|{{{wstitle|{{{1|}}}<!--ws-->}}}<!--d-->}}}]]|<sup>[[s:The Cyclopædia of American Biography|<span style="color:red">article name needed</span>]]</sup> <!--end if wstitle-->}}<!--end if title-->}}
 +
  |url={{#if:{{{title|}}}|{{{url|}}}|}}
 +
<!--set some standard parameters see [[template:encyclopaedia/doc]] for explanation-->
 
  |oclc={{{oclc|}}}
 
  |oclc={{{oclc|}}}
 +
|volume={{{volume|}}}
 
  |page={{{page|}}}
 
  |page={{{page|}}}
 
  |pages={{{pages|}}}
 
  |pages={{{pages|}}}
  |url={{#if:{{{title|}}}|{{{url|}}}|}}
+
  |ref={{{ref|}}}
}}</includeonly><noinclude>
+
|postscript={{{postscrip|}}}  
{{template doc}}
+
}}<includeonly><!--
 +
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set-->
 +
    |<!--Set: sort out the parameters
 +
  -->[[Category:Wikipedia articles incorporating a citation from the Cyclopaedia of American Biography]]<!--
 +
-->}}</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:48, 19 November 2020

PD-icon.svg Homans, James E., ed. (1918). "article name needed". The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc.

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

Purpose

This template facilitates the citation of articles from The Cyclopædia of American Biography of 1918. It uses {{cite encyclopedia}} in its implementation. It provides for links to the Wikisource project The Cyclopædia of American Biography, but also links to other sources (for example Google Books), or no link at all can be used.

Usage

{{Cite CAB|wstitle=name of the article}}

or with a specification of the optional title, display, url, page, pages, oclc, noicon, long or vb parameters (see examples).

Examples

Simple

{{Cite CAB|wstitle=Frasch, Herman}}

displays as:

Wikisource-logo.svg Homans, James E., ed. (1918). "Frasch, Herman" . The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc.

With comment

{{Cite CAB|wstitle=Frasch, Herman}} An industrial chemist.

displays as:

Wikisource-logo.svg Homans, James E., ed. (1918). "Frasch, Herman" . The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc. An industrial chemist.

Using pages or page

These work as with other {{cite}} templates:

{{Cite CAB|wstitle=Frasch, Herman|pages=247-249}}

displays as:

Wikisource-logo.svg Homans, James E., ed. (1918). "Frasch, Herman" . The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc. pp. 247–249.

Using title (no Wikisource link)

{{Cite CAB|title=Frasch, Herman}}

displays as:

PD-icon.svg Homans, James E., ed. (1918). "Frasch, Herman". The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc.

When title is being used, url can be used to specify an external link.

Using noicon

{{Cite CAB|wstitle=Frasch, Herman|noicon=x}}

displays as:

Homans, James E., ed. (1918). "Frasch, Herman" . The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc.

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 CAB|wstitle=Frasch, Herman|vb=x}}

displays as:

Wikisource-logo.svg This article incorporates text from a publication now in the public domainHomans, James E., ed. (1918). "Frasch, Herman" . The Cyclopædia of American Biography. New York: The Press Association Compilers, Inc.

Using short

The short parameter hides some of the default values (the default values for editors, location and publisher):

{{Cite CAB|wstitle=Frasch, Herman|short=x}}

displays as:

Wikisource-logo.svg "Frasch, Herman" . The Cyclopædia of American Biography. 1918.

Hidden categories

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

See also