Difference between revisions of "Template:Cite HOT"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user mou89p43twvqcvm8ut9w3
(tfd closed as keep)
imported>Trappist the monk
(sync from sandbox;)
 
Line 1: Line 1:
−
{{cite encyclopedia
+
{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
 +
  |_exclude=id, name, _debug
 +
  |_reuse=title <!-- these are reused -->
  
 
  <!-- set some default parameters  -->
 
  <!-- set some default parameters  -->
−
  |encyclopedia = {{{encyclopedia|[[Handbook of Texas]]}}}
+
  |encyclopedia = [[Handbook of Texas]]
−
  |edition = {{{edition|online}}}
+
  |edition = online
−
  |publisher = {{{publisher|[[Texas State Historical Association]]}}}
+
  |publisher = [[Texas State Historical Association]]
  
 
  <!-- set some default parameters with override options -->  
 
  <!-- set some default parameters with override options -->  
Line 11: Line 13:
 
  <!--If ID is set, use URL specified by ID. Otherwise, use url= value in the template. -->
 
  <!--If ID is set, use URL specified by ID. Otherwise, use url= value in the template. -->
 
  |url={{#if: {{{id|}}} |https://www.tshaonline.org/handbook/online/articles/{{{1|{{{id}}}}}} |{{{url|}}} }}
 
  |url={{#if: {{{id|}}} |https://www.tshaonline.org/handbook/online/articles/{{{1|{{{id}}}}}} |{{{url|}}} }}
−
 
−
|date = {{{date|}}}
 
−
|origyear = {{{origyear|}}}
 
−
|orig-year = {{{orig-year|}}}
 
−
 
−
<!-- Set optional parameters only if they are passed in otherwise don't set them to empty-->
 
−
|{{#if:{{{last|}}}  |last  |HIDE_PARAMETER6}}={{{last|}}}
 
−
|{{#if:{{{last1|}}} |last1 |HIDE_PARAMETER7}}={{{last1|}}}
 
−
|{{#if:{{{last2|}}} |last2 |HIDE_PARAMETER8}}={{{last2|}}}
 
−
|{{#if:{{{last3|}}} |last3 |HIDE_PARAMETER9}}={{{last3|}}}
 
−
|{{#if:{{{last4|}}} |last4 |HIDE_PARAMETER10}}={{{last4|}}}
 
−
 
−
|{{#if:{{{first|}}}  |first  |HIDE_PARAMETER11}}={{{first|}}}
 
−
|{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER12}}={{{first1|}}}
 
−
|{{#if:{{{first2|}}} |first2 |HIDE_PARAMETER13}}={{{first2|}}}
 
−
|{{#if:{{{first3|}}} |first3 |HIDE_PARAMETER14}}={{{first3|}}}
 
−
|{{#if:{{{first4|}}} |first4 |HIDE_PARAMETER15}}={{{first4|}}}
 
−
 
−
|{{#if:{{{author|}}} |author  |HIDE_PARAMETER16}}={{{author|}}}
 
−
|{{#if:{{{author1|}}} |author1  |HIDE_PARAMETER17}}={{{author1|}}}
 
−
|{{#if:{{{author2|}}} |author2  |HIDE_PARAMETER18}}={{{author2|}}}
 
−
|{{#if:{{{author3|}}} |author3  |HIDE_PARAMETER19}}={{{author3|}}}
 
−
|{{#if:{{{author4|}}} |author4  |HIDE_PARAMETER20}}={{{author4|}}}
 
−
 
−
|{{#if:{{{authorlink|}}} |authorlink  |HIDE_PARAMETER21}}={{{authorlink|}}}
 
−
|{{#if:{{{authorlink1|}}} |authorlink1  |HIDE_PARAMETER22}}={{{authorlink1|}}}
 
−
|{{#if:{{{authorlink2|}}} |authorlink2  |HIDE_PARAMETER23}}={{{authorlink2|}}}
 
−
|{{#if:{{{authorlink3|}}} |authorlink3  |HIDE_PARAMETER24}}={{{authorlink3|}}}
 
−
|{{#if:{{{authorlink4|}}} |authorlink4  |HIDE_PARAMETER25}}={{{authorlink4|}}}
 
−
 
−
|{{#if:{{{author-link|}}} |author-link  |HIDE_PARAMETER26}}={{{author-link|}}}
 
−
|{{#if:{{{author-link1|}}} |author-link1  |HIDE_PARAMETER27}}={{{author-link1|}}}
 
−
|{{#if:{{{author-link2|}}} |author-link2  |HIDE_PARAMETER28}}={{{author-link2|}}}
 
−
|{{#if:{{{author-link3|}}} |author-link3  |HIDE_PARAMETER29}}={{{author-link3|}}}
 
−
|{{#if:{{{author-link4|}}} |author-link4  |HIDE_PARAMETER30}}={{{author-link4|}}}
 
−
 
−
|{{#if:{{{ref|}}}  |ref  |HIDE_PARAMETER31}}={{{ref|}}}
 
−
 
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 11:24, 11 October 2020

"Template:PAGENAMEBASE". Handbook of Texas (online ed.). Texas State Historical Association.

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

Usage

This template is a wrapper around {{cite encyclopedia}}. It is intended to format a link to the online edition to the Handbook of Texas Online so that it appears as a standard citation, while filling in common cite parameters and the url based on the fixed identification number.

For example (from the Citation section at the bottom of each page):

Handbook of Texas Online, Eugene C. Barker, "Austin, Stephen Fuller," accessed June 21, 2016, https://tshaonline.org/handbook/online/articles/fau14
Uploaded on June 9, 2010. Modified on May 10, 2016. Published by the Texas State Historical Association.

Can be formatted with the following parameters:

  • id=id — for example: id=fau14 (the last few characters of the url, after the last "/")
  • title=title of article — for example: title=Austin, Stephen Fuller
  • last=last name of author — for example: last=Barker
  • first=first name and initial. of author — for example: first=Eugene C.
  • author-link=title of Wikipedia article about the author — for example: author-link=Eugene C. Barker
  • date=modified date if it exists, otherwise uploaded date — for example: date=May 10, 2016
  • orig-year=uploaded date if modified date exists, otherwise omit — for example: orig-year=June 9, 2010
  • This template can be used as a general reference and linked to a short citation.

Alternative parameters:

  • last=last name (or last1, last2, ...)
  • first=first name (or first1, first2, ...)
  • author=first-name initial last-name (or author1, author2, ...)
  • authorlink=title of Wikipedia article about the author (or authorlink1, authorlink2, ...)
  • origyear=origyear

An example of a entry:

{{Cite HOT |id=fau14 |last=Barker |first=Eugene C. |author-link=Eugene C. Barker |title=Austin, Stephen Fuller |date=May 10, 2016 |orig-year=June 9, 2010}}

produces the following link item:

Barker, Eugene C. (May 10, 2016) [June 9, 2010]. "Austin, Stephen Fuller". Handbook of Texas (online ed.). Texas State Historical Association.

See also

{{Handbook of Texas}} for non-ref use