Difference between revisions of "Template:Cite AmCyc"

From blackwiki
Jump to navigation Jump to search
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|}}}||[[File:{{#if:{{{wstitle|{{{1|}}}<!-- -->}}}|wikisource-logo.svg{{!}}alt=Wikisource|PD-icon.svg{{!}}alt=public domain}}|12px|link=]]&nbsp;}}<!--
+
-->{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|alt=public domain|12px|link=]]&nbsp;}}}}<!--
 
  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]]:&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;|}}<!--
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
-->{{cite encyclopedia
+
-->{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
    <!--pass in other standard parameters-->
+
  |_exclude=display, inline, no-icon, noicon, short, wstitle, vb, _debug
    |first={{{first|}}}
+
  |_reuse=title <!-- these are reused -->
    |first1={{{first1|}}}
 
    |first2={{{first2|}}}
 
  
     |last={{{last|}}}
+
     |encyclopedia=[[The American Cyclopædia]]
    |last1={{{last1|}}}
 
    |last2={{{last2|}}}
 
 
 
    |author={{{author|}}}
 
    |author1={{{author1|}}}
 
    |author2={{{author2|}}}
 
    |authors={{{authors|}}}
 
    |authorlink={{{authorlink|}}}
 
    |coauthors={{{coauthors|}}}
 
 
 
    |volume={{{volume|}}}
 
    |page={{{page|}}}
 
    |pages={{{pages|}}}
 
    |ref= {{{ref|}}}
 
    |mode= {{{mode|}}}
 
    |1={{{1|}}}
 
  
 
     <!-- set defaults for some parameters-->
 
     <!-- set defaults for some parameters-->
     |editor-first={{{editor-first|{{#if:{{{short|}}}||George}}}}}
+
     |editor-first={{#if:{{{short|}}}||George}}
     |editor-last={{{editor-last|{{#if:{{{short|}}}||Ripley}}}}}
+
     |editor-last={{#if:{{{short|}}}||Ripley}}}
     |editor2-first={{{editor2-first|{{#if:{{{short|}}}||Charles A.}}}}}
+
     |editor2-first={{#if:{{{short|}}}||Charles A.}}
     |editor2-last={{{editor2-last|{{#if:{{{short|}}}||Dana}}}}}
+
     |editor2-last={{#if:{{{short|}}}||Dana}}
     |year={{{year|1879}}}
+
     |year=1879
    |encyclopedia=[[The American Cyclopædia]]
 
  
    <!-- title warn if not set -->
+
     |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|}}}|{{cite wikisource/make link
     |title={{#if:{{{title|}}}|{{{title}}}|{{#if:{{{wstitle|{{{1|}}}<!--ws-->}}}|[[s:The American Cyclopædia ({{{year|1879}}})/{{{wstitle|}}}|{{{display|{{{wstitle|}}}<!--d-->}}}]]|<sup>[[s:The American Cyclopædia ({{{year|1879}}})/|<span style="color:red">article name needed</span>]]</sup> <!--end if wstitle-->}}<!--end if title-->}}
+
                |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)

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

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). "Rotteck, Karl von" . 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). "Rotteck, Karl von" . 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 domainRipley}, George; Dana, Charles A., eds. (1879). "Rotteck, Karl von" . 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

Notes