Difference between revisions of "Template:Cite AmCyc"
imported>Matt Fitzpatrick (icon alt attributes "public domain" and "Wikisource") |
imported>Trappist the monk (sync from sandbox;) |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
optional icon - included by default | optional icon - included by default | ||
| − | -->{{#if:{{{noicon|}}}|| | + | -->{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|alt=public domain|12px|link=]] }}}}<!-- |
optional verbatim message - not included by default | optional verbatim message - not 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]]: |}}<!-- | -->{{#if:{{{vb|}}}|{{#if: {{{inline|}}}|One or more of the preceding sentences|This article}} incorporates text from a publication now in the [[public domain]]: |}}<!-- | ||
| Line 8: | Line 8: | ||
otherwise first unnamed arg is used for Wikisource link. | otherwise first unnamed arg is used for Wikisource link. | ||
year defaults to 1879 | year defaults to 1879 | ||
| − | -->{{ | + | -->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia |
| − | + | |_exclude=display, inline, no-icon, noicon, short, wstitle, vb, _debug | |
| − | + | |_reuse=title <!-- these are reused --> | |
| − | |||
| − | |||
| − | | | + | |encyclopedia=[[The American Cyclopædia]] |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<!-- set defaults for some parameters--> | <!-- set defaults for some parameters--> | ||
| − | |editor-first= | + | |editor-first={{#if:{{{short|}}}||George}} |
| − | |editor-last= | + | |editor-last={{#if:{{{short|}}}||Ripley}}} |
| − | |editor2-first= | + | |editor2-first={{#if:{{{short|}}}||Charles A.}} |
| − | |editor2-last= | + | |editor2-last={{#if:{{{short|}}}||Dana}} |
| − | |year= | + | |year=1879 |
| − | |||
| − | + | |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link | |
| − | |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle | + | |link=The American Cyclopædia ({{{year|1879}}})/{{{wstitle|}}} |
| + | |anchor= | ||
| + | |label={{{display|{{{wstitle|}}}}}} | ||
| + | |noicon={{{no-icon|{{{noicon|}}}}}} | ||
| + | }}}}}} | ||
<!--Only set url if the title parameter exists--> | <!--Only set url if the title parameter exists--> | ||
|url={{#if:{{{title|}}}|{{{url|}}}|}} | |url={{#if:{{{title|}}}|{{{url|}}}|}} | ||
| − | |||
}}<includeonly><!-- | }}<includeonly><!-- | ||
-->{{#ifeq: {{NAMESPACEE}} |<!--is not set--> | -->{{#ifeq: {{NAMESPACEE}} |<!--is not set--> | ||
Revision as of 15:49, 11 October 2020
12px Ripley}, George; Dana, Charles A., eds. (1879). The American Cyclopædia. Missing or empty |title= (help)
Contents
Purpose
This template facilitates the citation of articles from editions of The American Cyclopædia. Links to Wikisource or external sources are provided for. {{cite encyclopedia}} is used for the implementation.
Usage
{{Cite AmCyc|wstitle=put the name of the AmCyc article here}}
or with a specification of additional options:
|noicon =1 — no leading icon |vb =1 — prescript to attribute copied text (see WP:PLAGIARISM) |inline =1 — alters the prescript to make it suitable for inline citations |wstitle=name of the AmCyc article on Wikisource |display=alternative name to display in place of the AmCyc article name on Wikisource |title=name of the AmCyc article if not on Wikisource |url=only set if title= is set |year= —defaults to 1879. For the following parameters see the documentation of {{cite encyclopedia}} |first= |last= |author= |authorlink= |volume= |page= |pages= |ref= |mode=
Examples
Simple
{{Cite AmCyc|wstitle=Rotteck, Karl von}}
displays as:
Ripley}, George; Dana, Charles A., eds. (1879). . The American Cyclopædia.
With comment
{{Cite AmCyc|wstitle=Rotteck, Karl von}} A German historian and activist for freedom of the press.
displays as:
Ripley}, George; Dana, Charles A., eds. (1879). . The American Cyclopædia. A German historian and activist for freedom of the press.
Using noicon
{{Cite AmCyc|wstitle=Cogniet, Leon|noicon=x}}
displays as:
Ripley}, George; Dana, Charles A., eds. (1879). "Rotteck, Karl von". The American Cyclopædia.
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 AmCyc|wstitle=Rotteck, Karl von|vb=x}}
displays as:
This article incorporates text from a publication now in the public domain: Ripley}, George; Dana, Charles A., eds. (1879). . The American Cyclopædia.
Using title (no Wikisource link)
{{Cite AmCyc|title=Rotteck, Karl von}}
displays as:
12px Ripley}, George; Dana, Charles A., eds. (1879). "Rotteck, Karl von". The American Cyclopædia.
When title is being used, url can be used to specify an external link.
Hidden categories
This template places articles into a hidden category with sub-categories to aid maintenance:
See also
{{AmCyc}}— for use in a Wikipedia article that includes text copied from the AmCyc article{{AmCyc poster}}— display an AmCyc article in a top box on the right.- Wikimedia sister projects
Notes
| The above documentation is transcluded from Template:Cite AmCyc/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |