Difference between revisions of "Template:Cite CAB"
imported>Bob Burkhardt (feed through oclc) |
imported>PBS (introduced wstitle= and inline= as parameters added Category:Wikipedia articles incorporating a citation from the Cyclopaedia of American Biography) |
||
| Line 1: | Line 1: | ||
| − | + | <!-- | |
optional icon - included by default | optional icon - included by default | ||
| − | -->{{#if:{{{noicon|}}}||[[Image:{{#if:{{{ | + | -->{{#if:{{{noicon|}}}||[[Image:{{#if:{{{wstitle|{{{1|}}}<!--wst-->}}}|wikisource-logo.svg|PD-icon.svg}}|12px|link=]] }}<!-- |
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]]: |}}<!-- | + | -->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]: |}}<!-- |
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}}} |
| − | | | + | |
| + | <!-- 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|}}} | ||
| − | | | + | |ref={{{ref|}}} |
| − | + | }}<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> | ||
Revision as of 18:59, 21 July 2013
"article name needed". The Cyclopædia of American Biography. 1918.
Contents
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:
. The Cyclopædia of American Biography. 1918.{{#ifeq: Template |
|
With comment
{{Cite CAB|wstitle=Frasch, Herman}} An industrial chemist.
displays as:
. 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:
. The Cyclopædia of American Biography. 1918. pp. 247–249.{{#ifeq: Template |
|
Using title (no Wikisource link)
{{Cite CAB|title=Frasch, Herman}}
displays as:
"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:
. 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:
This article incorporates text from a publication now in the public domain: . 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:
. 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
| The above documentation is transcluded from Template:Cite CAB/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |