Difference between revisions of "Template:FishBase/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(handle subspecies parameter)
imported>Jts1882
(add family and order handling)
Line 1: Line 1:
<noinclude>*{{Fishbase|Danio|rerio}}
+
<noinclude>*{{Fishbase|Danio|rerio}}  
*{{FishBase/sandbox|Danio|rerio|year=2018}}
+
*{{FishBase/sandbox|Danio|rerio|year=2018}} [with positional parameters]
*{{FishBase/sandbox|Emmelichthys|nitidus|cyanescens}}
+
*{{FishBase/sandbox|Emmelichthys|nitidus|cyanescens}} [subspecies with position parameters]
*{{FishBase/sandbox|genus=Danio|species=rerio}}
+
*{{FishBase/sandbox|genus=Danio|species=rerio}} [with named parameters]
*{{FishBase/sandbox|genus=Emmelichthys|species=nitidus|subspecies=cyanescens}}
+
*{{FishBase/sandbox|genus=Emmelichthys|species=nitidus|subspecies=cyanescens}} [subspecies with named parameters]
 +
*{{FishBase/sandbox|genus=Emmelichthys}}
 +
*{{FishBase/sandbox|family=Percidae}}
 +
*{{FishBase/sandbox|order=Perciformes}}
 +
 
 
</noinclude><includeonly>{{cite web
 
</noinclude><includeonly>{{cite web
 
|editor1-last=Froese |editor1-first=Rainer |editor2-last=Pauly |editor2-first=Daniel
 
|editor1-last=Froese |editor1-first=Rainer |editor2-last=Pauly |editor2-first=Daniel
 
|year={{{year|2006}}}
 
|year={{{year|2006}}}
|url=http://www.fishbase.org/Summary/SpeciesSummary.php?{{#if: {{{id|}}} |id={{{id}}}  
+
|website=[[FishBase]] |version={{{month|April}}} {{{year|2006}}} version.
 +
|url={{#if:{{{order|}}}|http://www.fishbase.org/Summary/OrdersSummary.php?order={{{order}}}|}}<!--
 +
-->{{#if:{{{family|}}}|http://www.fishbase.org/Summary/FamilySummary.php?family={{{family}}}|}}<!--
 +
-->{{#if:{{{genus|{{{1|}}}}}}|
 +
http://www.fishbase.org/Summary/SpeciesSummary.php?{{#if: {{{id|}}} |id={{{id}}}  
 
|genusname={{{genus|{{{1}}}}}}&speciesname={{{species|{{{2}}}}}}{{#if:{{{subspecies|{{{3|}}}}}}|+{{{subspecies|{{{3}}}}}}|}}  
 
|genusname={{{genus|{{{1}}}}}}&speciesname={{{species|{{{2}}}}}}{{#if:{{{subspecies|{{{3|}}}}}}|+{{{subspecies|{{{3}}}}}}|}}  
}}
+
}}}}
|title=''{{{genus|{{{1}}}}}} {{{species|{{{2}}}}}}{{#if:{{{subspecies|{{{3|}}}}}}|&nbsp;{{{subspecies|{{{3}}}}}}|}}''  
+
|title={{#if:{{{order|}}}|Order {{{order}}}|}}<!--
|website=[[FishBase]] |version={{{month|April}}} {{{year|2006}}} version.
+
-->{{#if:{{{family|}}}|Family {{{family}}}|}}<!--
 +
-->{{#if:{{{genus|{{{1|}}}}}}|''{{{genus|{{{1}}}}}} {{{species|{{{2}}}}}}{{#if:{{{subspecies|{{{3|}}}}}}|&nbsp;{{{subspecies|{{{3}}}}}}|}}'' }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 08:55, 11 November 2018

  1. REDIRECT Template:FishBase
  • Froese, Rainer; Pauly, Daniel, eds. (2018). "Danio rerio". FishBase. April 2018 version. [with positional parameters]
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Emmelichthys nitidus cyanescens". FishBase. April 2006 version. [subspecies with position parameters]
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Danio rerio". FishBase. April 2006 version. [with named parameters]
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Emmelichthys nitidus cyanescens". FishBase. April 2006 version. [subspecies with named parameters]
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Emmelichthys {{{2}}}". FishBase. April 2006 version.
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Family Percidae". FishBase. April 2006 version.
  • Froese, Rainer; Pauly, Daniel, eds. (2006). "Order Perciformes". FishBase. April 2006 version.


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

Usage

When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed.

All parameters, horizontal layout

{{FishBase |genus= |species= |id= |month= |year= }}

All parameters, vertical layout
{{FishBase
|genus=
|species=
|id=
|month=
|year=
}}

The usage of the parameters:

  • |genus= the genus name (e.g., Cepola)
  • |species= the species name (e.g., macrophthalma)
  • |id= (optional) the id number given for the article; this links straight to the FishBase article
  • |month= the month in which the article was accessed, which gives the version of FishBase
  • |year= similarly, the year

See also

Citation templates:

External link templates:

The equivalent for SeaLifeBase, a database of marine species other than fish:

On other projects: