Difference between revisions of "Template:Cite CAB"

From blackwiki
Jump to navigation Jump to search
imported>Bob Burkhardt
(feed through oclc)
imported>PBS
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 encyclopaedia
  |editor={{#if:{{{long|}}}|James E. Homans|}}
+
  <!-- set some default parameters-->
 +
  |editor-first={{#if:{{{long|}}}|James E.|}}
 +
|editor-last={{#if:{{{long|}}}|Homans|}}
 
  |encyclopedia=The Cyclopædia of American Biography
 
  |encyclopedia=The Cyclopædia of American Biography
 
  |publisher={{#if:{{{long|}}}|The Press Association Compilers, Inc|}}
 
  |publisher={{#if:{{{long|}}}|The Press Association Compilers, Inc|}}
 
  |location={{#if:{{{long|}}}|New York|}}
 
  |location={{#if:{{{long|}}}|New York|}}
  |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|}}}
 
  |page={{{page|}}}
 
  |page={{{page|}}}
 
  |pages={{{pages|}}}
 
  |pages={{{pages|}}}
  |url={{#if:{{{title|}}}|{{{url|}}}|}}
+
  |ref={{{ref|}}}
}}</includeonly><noinclude>
+
}}<includeonly><!--
{{template doc}}
+
-->{{#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>

Revision as of 18:59, 21 July 2013

PD-icon.svg "article name needed". The Cyclopædia of American Biography. 1918.

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 "Frasch, Herman" . The Cyclopædia of American Biography. 1918.{{#ifeq: Template |

    |

With comment

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

displays as:

Wikisource-logo.svg "Frasch, Herman" . The Cyclopædia of American Biography. 1918.{{#ifeq: Template |

    | 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 "Frasch, Herman" . The Cyclopædia of American Biography. 1918. pp. 247–249.{{#ifeq: Template |

    |

Using title (no Wikisource link)

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

displays as:

PD-icon.svg "Frasch, Herman". The Cyclopædia of American Biography. 1918.{{#ifeq: Template |

    |

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:

"Frasch, Herman" . The Cyclopædia of American Biography. 1918.{{#ifeq: Template |

    |

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 domain"Frasch, Herman" . The Cyclopædia of American Biography. 1918.{{#ifeq: Template |

    |

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.{{#ifeq: Template |

    |

Hidden categories

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

See also