Difference between revisions of "Template:FishBase/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jts1882
(add family and order handling)
imported>Jts1882
(change to test module versiona)
Line 8: Line 8:
 
*{{FishBase/sandbox|order=Perciformes}}
 
*{{FishBase/sandbox|order=Perciformes}}
  
</noinclude><includeonly>{{cite web
+
</noinclude><includeonly>{{#invoke:Catalog of Fishes|fishbase|option=family
|editor1-last=Froese |editor1-first=Rainer |editor2-last=Pauly |editor2-first=Daniel
+
|family={{{1|{{{family|}}}}}}
|year={{{year|2006}}}
+
|access-date={{{2|{{{access-date|}}}}}}}}</includeonly><noinclude>
|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}}}}}}|}}
 
}}}}
 
|title={{#if:{{{order|}}}|Order {{{order}}}|}}<!--
 
-->{{#if:{{{family|}}}|Family {{{family}}}|}}<!--
 
-->{{#if:{{{genus|{{{1|}}}}}}|''{{{genus|{{{1}}}}}} {{{species|{{{2}}}}}}{{#if:{{{subspecies|{{{3|}}}}}}|&nbsp;{{{subspecies|{{{3}}}}}}|}}'' }}
 
}}</includeonly><noinclude>
 
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Revision as of 11:02, 19 November 2018

  1. REDIRECT Template:FishBase
  • Script error: No such module "Catalog of Fishes". [with positional parameters]
  • Script error: No such module "Catalog of Fishes". [subspecies with position parameters]
  • Script error: No such module "Catalog of Fishes". [with named parameters]
  • Script error: No such module "Catalog of Fishes". [subspecies with named parameters]
  • Script error: No such module "Catalog of Fishes".
  • Script error: No such module "Catalog of Fishes".
  • Script error: No such module "Catalog of Fishes".


50px 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: