Jump to content

Module:Science redirect/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 16:17, 2 June 2017 (alpha→beta, other documentation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This module is designed to serve as a back end for {{R from alternative scientific name}}, {{R to scientific name}}, {{R from scientific name}}, {{R to monotypic taxon}} and {{R from monotypic taxon}}.

The template parameters and recognized categories are set in Module:Science redirect/conf.

Usage

{{#invoke:Science redirect|R|template name excluding 'R'}}

For example, for {{R to scientific name}}, you would use {{#invoke:Science redirect|R|to scientific name}} to produce:

Adding or modifying supported templates

The template parameters and recognized categories are set in Module:Science redirect/conf. Instructions on how to add data are in the comments of that file.

For debugging, add parameter |debug=true, e.g. {{#invoke:Science redirect|R|to scientific name|debug=true}} produces:

{{Redirect template
| name = To scientific name of an organism
| from = a vernacular ("common") name
| id = R_to_scientific_name
| printworthy = yes
| main category = Redirects to scientific names
| to = the scientific name of an organism (or group of organisms)
}}

Tracking categories

RCats

Invalid parameters