Jump to content

Module:Cite taxon/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jts1882 (talk | contribs) at 13:56, 22 November 2018 (update). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This module was created to generate {{cite web}} references to the Catalog of Fishes database. The capabilities were extended to handle other fish-related references and the module renamed FishRef. Further extension to a more general Bioref system is the long-term goal.

The module provides a wrapper to the cite web system, which means the the references can also include general cite web parameters (e.g. |mode=cs1|2 or |quote=TEXT).

The module is used with {{Catalog of Fishes}}, which was designed to replace a series of templates that were originally written in the Wikipedia template language: {{Cof genus}}, {{Cof family}}, {{Cof species}}, {{Cof record}}.

Other templates using the module: {{FishBase/sandbox}}, {{BioRef}}, {{fossilworks/sandbox}}, "ASM Mammal Diversity Database". ASM Mammal Diversity Database. American Society of Mammalogists.

Usage of module: {{#invoke:FishRef|cof}}, {{#invoke:FishRef|fishbase}}, {{#invoke:FishRef|fossilworks}}, etc.

Examples of Lua module {{Catalog of Fishes}}

Use the templates as follows:

{{Catalog of Fishes |family=Xiphiidae |list=species |access-date=7 June 2018}}
{{Catalog of Fishes |family=Cyprinidae |access-date=7 June 2018}}
{{Catalog of Fishes |family=Salmonidae |list=genus |access-date=7 June 2018}}

{{Catalog of Fishes |genus=Vinagarra |access-date=7 June 2018}}

{{Catalog of Fishes |genus=Vinagarra |species=elongata |access-date=7 June 2018}} 
{{Catalog of Fishes |genus=Abbottina |species=rivularis |access-date=7 June 2018}}
{{Catalog of Fishes |genus=Tylognathus |species=sinensis |access-date=7 June 2018}}

{{Catalog of Fishes |genid=150  |access-date=8 June 2018}} 
{{Catalog of Fishes |genid=150 |title=Syngnathus |access-date=8 June 2018}} 

{{Catalog of Fishes|spid=14756  |access-date=8 June 2018}}
{{Catalog of Fishes |spid=14756 |title=Syngnathus abaster |access-date=8 June 2018}}

Results:




Examples of use of template language versions templates

Use the templates as follows:

{{Cof family |Xiphiidae|7 June 2018}}
{{Cof family |family=Xiphiidae |list=species |access-date=7 June 2018}}
{{Cof family |family=Cyprinidae |access-date=7 June 2018}}
{{Cof family |family=Cyprinidae |list=genus |access-date=7 June 2018}}

{{Cof genus |Garra|7 June 2018}}
{{Cof genus |genus=Vinagarra |access-date=7 June 2018}}

{{Cof species |genus=Vinagarra |species=elongata|access-date=7 June 2018}} 
{{Cof species |Abbottina|rivularis|7 June 2018}}
{{Cof species |Tylognathus|sinensis|7 June 2018}}

{{Cof record |genid=150 |title=Syngnathus |access-date=8 June 2018}} 
{{Cof record |spid=14756 |title=Syngnathus abaster |access-date=8 June 2018}}

{{Cof record |genid=150  |access-date=8 June 2018}} 
{{Cof record |spid=14756  |access-date=8 June 2018}}

Results: