Difference between revisions of "Template:AmCyc"

From blackwiki
Jump to navigation Jump to search
blackwiki>PBS
(Category:Wikipedia articles incorporating text from The American Cyclopaedia)
blackwiki>WOSlinker
(dedupe HIDE_PARAMETER to stop adding to Category:Pages using duplicate arguments in template calls)
Line 3: Line 3:
 
     |vb=1
 
     |vb=1
 
     |ref={{{ref|harv}}}
 
     |ref={{{ref|harv}}}
     |{{#if:{{{short|}}}  |HIDE_PARAMETER |long}}=1<!--default to long unless short is set -->
+
     |{{#if:{{{short|}}}  |HIDE_PARAMETER1 |long}}=1<!--default to long unless short is set -->
  
 
     <!-- pass in non standard parameters -->
 
     <!-- pass in non standard parameters -->
     |{{#if:{{{noicon|}}}  |noicon  |HIDE_PARAMETER}}={{{noicon|}}}
+
     |{{#if:{{{noicon|}}}  |noicon  |HIDE_PARAMETER2}}={{{noicon|}}}
     |{{#if:{{{inline|}}}  |inline  |HIDE_PARAMETER}}={{{inline|}}}
+
     |{{#if:{{{inline|}}}  |inline  |HIDE_PARAMETER3}}={{{inline|}}}
     |{{#if:{{{wstitle|}}} |wstitle |HIDE_PARAMETER}}={{{wstitle|}}}
+
     |{{#if:{{{wstitle|}}} |wstitle |HIDE_PARAMETER4}}={{{wstitle|}}}
  
 
     <!--pass in other standard parameters-->
 
     <!--pass in other standard parameters-->
     |{{#if:{{{first|}}}  |first  |HIDE_PARAMETER}}={{{first|}}}
+
     |{{#if:{{{first|}}}  |first  |HIDE_PARAMETER5}}={{{first|}}}
     |{{#if:{{{first1|}}}  |first1 |HIDE_PARAMETER}}={{{first1|}}}
+
     |{{#if:{{{first1|}}}  |first1 |HIDE_PARAMETER6}}={{{first1|}}}
     |{{#if:{{{first2|}}}  |first2 |HIDE_PARAMETER}}={{{first2|}}}
+
     |{{#if:{{{first2|}}}  |first2 |HIDE_PARAMETER7}}={{{first2|}}}
  
     |{{#if:{{{last|}}}    |last  |HIDE_PARAMETER}}={{{last|}}}
+
     |{{#if:{{{last|}}}    |last  |HIDE_PARAMETER8}}={{{last|}}}
     |{{#if:{{{last1|}}}  |last1  |HIDE_PARAMETER}}={{{last1|}}}
+
     |{{#if:{{{last1|}}}  |last1  |HIDE_PARAMETER9}}={{{last1|}}}
     |{{#if:{{{last2|}}}  |last2  |HIDE_PARAMETER}}={{{last2|}}}
+
     |{{#if:{{{last2|}}}  |last2  |HIDE_PARAMETER10}}={{{last2|}}}
  
     |{{#if:{{{author|}}} |author  |HIDE_PARAMETER}}={{{author|}}}
+
     |{{#if:{{{author|}}} |author  |HIDE_PARAMETER11}}={{{author|}}}
     |{{#if:{{{author1|}}} |author1 |HIDE_PARAMETER}}={{{author1|}}}
+
     |{{#if:{{{author1|}}} |author1 |HIDE_PARAMETER12}}={{{author1|}}}
     |{{#if:{{{author2|}}} |author2 |HIDE_PARAMETER}}={{{author2|}}}
+
     |{{#if:{{{author2|}}} |author2 |HIDE_PARAMETER13}}={{{author2|}}}
     |{{#if:{{{authors|}}} |authors |HIDE_PARAMETER}}={{{authors|}}}
+
     |{{#if:{{{authors|}}} |authors |HIDE_PARAMETER14}}={{{authors|}}}
     |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER}}={{{authorlink|}}}
+
     |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER15}}={{{authorlink|}}}
     |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER}}={{{coauthors|}}}
+
     |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER16}}={{{coauthors|}}}
  
     |{{#if:{{{title|}}}  |title  |HIDE_PARAMETER}}={{{title}}}
+
     |{{#if:{{{title|}}}  |title  |HIDE_PARAMETER17}}={{{title}}}
     |{{#if:{{{volume|}}}  |volume |HIDE_PARAMETER}}={{{volume}}}
+
     |{{#if:{{{volume|}}}  |volume |HIDE_PARAMETER18}}={{{volume}}}
     |{{#if:{{{page|}}}    |page  |HIDE_PARAMETER}}={{{page}}}
+
     |{{#if:{{{page|}}}    |page  |HIDE_PARAMETER19}}={{{page}}}
     |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER}}={{{pages}}}
+
     |{{#if:{{{pages|}}}  |pages  |HIDE_PARAMETER20}}={{{pages}}}
  
 
     <!-- if not set, set in American Cyclopædia -->
 
     <!-- if not set, set in American Cyclopædia -->
     |{{#if:{{{editor-first|}}} |editor-first |HIDE_PARAMETER}}={{{editor-first|}}}
+
     |{{#if:{{{editor-first|}}} |editor-first |HIDE_PARAMETER21}}={{{editor-first|}}}
     |{{#if:{{{editor-last|}}}  |editor-last  |HIDE_PARAMETER}}={{{editor-last|}}}
+
     |{{#if:{{{editor-last|}}}  |editor-last  |HIDE_PARAMETER22}}={{{editor-last|}}}
     |{{#if:{{{encyclopedia|}}} |encyclopedia |HIDE_PARAMETER}}={{{encyclopedia|}}}
+
     |{{#if:{{{encyclopedia|}}} |encyclopedia |HIDE_PARAMETER23}}={{{encyclopedia|}}}
     |{{#if:{{{year|}}} |year |HIDE_PARAMETER}}={{{year}}}
+
     |{{#if:{{{year|}}}         |year         |HIDE_PARAMETER24}}={{{year}}}
  
 
     <!--url will not be set in American Cyclopædia unless title is also set-->
 
     <!--url will not be set in American Cyclopædia unless title is also set-->
     |{{#if:{{{url|}}}  |url  |HIDE_PARAMETER}}={{{url}}}
+
     |{{#if:{{{url|}}}  |url  |HIDE_PARAMETER25}}={{{url}}}
 
}}<!-- no white space
 
}}<!-- no white space
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->

Revision as of 20:27, 25 October 2014

public domain This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). The American Cyclopædia. Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Missing or empty |title= (help)CS1 maint: ref=harv (link)

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

Purpose

This template facilitates the attribution of articles from editions of American Cyclopaedia that are in the public domain using the template {{Cite AmCyc}} which in turn calls {{Cite encyclopedia}}.

Usage

{{AmCyc|wstitle=''name of the American Cyclopaedia article here''}}

or with a specification of additional options:

{{AmCyc
 |noicon=''1'' — suppress the leading icon
 |inline=''1'' — changes the prescript and should be used when this template is used as an inline citation
 |short=''1''  — suppresses some of the fields such as editor's name
 |ref=''harv'' — can be overridden (if you need to ask you do not need to change it)
 |wstitle=''AmCyc article'' — if the article is available on Wikisource 
 |display=''alternative name'' — displayed inplace of the wstitle name
 |title=''AmCyc article'' — if the article is not available on Wikisource

 |url=  — will not be set unless the parameter ''title='' is set

 If not set, set in the template Cite AmCyc to default values
 |encyclopedia= —[[American Cyclopaedia]]
 |editor-first= —defaults to "''George Edwin''"
 |editor-last=  —defaults to "''Rines''"
 |{encyclopedia= 
 |year — defaults to 1920

 If set pass in other standard parameters:
 |first=
 |first1=
 |first2=

 |last=
 |last1=
 |last2=

 |author=
 |author1=
 |author2=
 |authors=
 |authorlink=
 |coauthors=

 |volume=
 |page=
 |pages=
}}

Examples

Simple

{{AmCyc|wstitle=Cogniet, Leon}}

displays as:

This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Cogniet, Leon" . The American Cyclopædia. Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link)

With comment

{{AmCyc|wstitle=Cogniet, Leon}} A French history and portrait painter with many famous students.

displays as:

This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Cogniet, Leon" . The American Cyclopædia. Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link) A French history and portrait painter with many famous students.

Using last, first and authorlink

{{AmCyc|last=Cross |first=Wilbur L. |wstitle=David Copperfield}}

displays as:

This article incorporates text from a publication now in the public domainCross, Wilbur L. (1879). "David Copperfield" . In Ripley, George; Dana, Charles A. (eds.). The American Cyclopædia. Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |long= ignored (help)CS1 maint: ref=harv (link)

{{AmCyc|last=Cross |first=Wilbur L. |authorlink=Wilbur L. Cross |wstitle=David Copperfield}}

displays as:

This article incorporates text from a publication now in the public domainCross, Wilbur L. (1879). "David Copperfield" . In Ripley, George; Dana, Charles A. (eds.). The American Cyclopædia. Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |long= ignored (help)CS1 maint: ref=harv (link)

Using volume, pages, page

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

{{AmCyc |title=Pulte, Joseph Hippolyt |volume=22 |page=799 }}

displays as:

public domain This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Pulte, Joseph Hippolyt". The American Cyclopædia. 22. p. 799. Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |long= ignored (help)CS1 maint: ref=harv (link)

Using display

The mechanics of Wikisource will sometimes require that a link have disambiguation information which is not part of the original title. The display parameter allows this information to be hidden for the purpose of the citation. For example:

{{AmCyc|wstitle=Monroe (Louisiana) |display=Monroe, La.}}

displays as:

This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Monroe (Louisiana)" . The American Cyclopædia. Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link)

Using noicon

{{AmCyc|wstitle=Cogniet, Leon|noicon=x}}

displays as:

This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Cogniet, Leon". The American Cyclopædia. Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link)

Using title (no Wikisource link)

{{AmCyc |title=Sterne, Simon}}

displays as:

public domain This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Sterne, Simon". The American Cyclopædia. Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help)CS1 maint: ref=harv (link)

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

{{AmCyc
 |title=Sterne, Simon
 |url=https://books.google.com/books?id=cr9PAAAAMAAJ&pg=PA632
}} At [[Google Books]].

displays as:

public domain This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Sterne, Simon". The American Cyclopædia. Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |long= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link) At Google Books.

Using short

If a shorter citation is desired, containing the editor of the 1920 edition, the long option can be used. For example:

{{AmCyc|wstitle=Schlatter, Michael|short=x}}

displays as:

This article incorporates text from a publication now in the public domainRipley, George; Dana, Charles A., eds. (1879). "Schlatter, Michael" . The American Cyclopædia. Unknown parameter |HIDE_PARAMETER25= ignored (help); Unknown parameter |HIDE_PARAMETER24= ignored (help); Unknown parameter |HIDE_PARAMETER18= ignored (help); Unknown parameter |HIDE_PARAMETER17= ignored (help); Unknown parameter |HIDE_PARAMETER1= ignored (help); Unknown parameter |HIDE_PARAMETER19= ignored (help); Unknown parameter |HIDE_PARAMETER20= ignored (help)CS1 maint: ref=harv (link)

If another edition besides 1920 is being used, the editor name can be customized using editor-first and editor-last. If used, these two items will be displayed whether or not the long option is specified.

Hidden categories

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

See also

  • {{Cite AmCyc}} — Use for citations where the American Cyclopaedia text is summarised but not copied
  • {{AmCyc poster}} — Place in the external links area for topic relevant American Cyclopaedia articles that may be of interest but are not cited by Wikipedia.