Module:Science redirect/doc: Difference between revisions
categories |
alpha→beta, other documentation |
||
Line 1: | Line 1: | ||
{{Module rating | |
{{Module rating |beta}} |
||
{{lua|Module:Science redirect/conf}} |
|||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> |
||
This module is designed to serve as a back end for {{tlx|R from alternative scientific name}}, {{tlx|R to scientific name}}, {{tlx|R from scientific name}}, {{tlx|R to monotypic taxon}} and {{tlx|R from monotypic taxon}}. |
This module is designed to serve as a back end for {{tlx|R from alternative scientific name}}, {{tlx|R to scientific name}}, {{tlx|R from scientific name}}, {{tlx|R to monotypic taxon}} and {{tlx|R from monotypic taxon}}. |
||
Line 9: | Line 10: | ||
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|R|''template name excluding {{'}}R{{'}}''}}</code> |
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|R|''template name excluding {{'}}R{{'}}''}}</code> |
||
For example, for {{tl|R to scientific name}}, you would use <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|R|to scientific name}}</code> |
For example, for {{tl|R to scientific name}}, you would use <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|R|to scientific name}}</code> to produce: |
||
{{#invoke:{{BASEPAGENAME}}|R|to scientific name}} |
|||
=== 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 {{para|debug|true}}, e.g. <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|R|to scientific name|debug=true}}</code> produces: |
|||
{{#invoke:{{BASEPAGENAME}}|R|to scientific name|debug=true}} |
|||
== Tracking categories == |
== Tracking categories == |
Revision as of 16:17, 2 June 2017
![]() | This module depends on the following other modules: |
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:
- To scientific name of an organism: This is a redirect from a vernacular ("common") name to the scientific name of an organism (or group of organisms).
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
- Category:Redirects from alternative scientific names
- Category:Redirects to scientific names
- Category:Redirects from scientific names
- Category:Redirects to monotypic taxa
- Category:Redirects from monotypic taxa
- Category:Redirects from alternative scientific names of plants
- Category:Redirects to scientific names of plants
- Category:Redirects from scientific names of plants
- Category:Redirects to monotypic taxa of plants
- Category:Redirects from monotypic taxa of plants
- Category:Redirects from alternative scientific names of fish
- Category:Redirects to scientific names of fish
- Category:Redirects from scientific names of fish
- Category:Redirects to monotypic taxa of fish
- Category:Redirects from monotypic taxa of fish
- Category:Redirects from alternative scientific names of fungi
- Category:Redirects to scientific names of fungi
- Category:Redirects from scientific names of fungi
- Category:Redirects to monotypic taxa of fungi
- Category:Redirects from monotypic taxa of fungi
- Category:Redirects from alternative scientific names of spiders
- Category:Redirects to scientific names of spiders
- Category:Redirects from scientific names of spiders
- Category:Redirects to monotypic taxa of spiders
- Category:Redirects from monotypic taxa of spiders
- Category:Redirects from alternative scientific names of crustaceans
- Category:Redirects to scientific names of crustaceans
- Category:Redirects from scientific names of crustaceans
- Category:Redirects to monotypic taxa of crustaceans
- Category:Redirects from monotypic taxa of crustaceans
- Category:Redirects from alternative scientific names of reptiles
- Category:Redirects to scientific names of reptiles
- Category:Redirects from scientific names of reptiles
- Category:Redirects to monotypic taxa of reptiles
- Category:Redirects from monotypic taxa of reptiles
- Category:Redirects from alternative scientific names of insects
- Category:Redirects to scientific names of insects
- Category:Redirects from scientific names of insects
- Category:Redirects to monotypic taxa of insects
- Category:Redirects from monotypic taxa of insects
Invalid parameters
- Category:Redirects from alternative scientific names using unknown values for parameter 1
- Category:Redirects to scientific names using unknown values for parameter 1
- Category:Redirects from scientific names using unknown values for parameter 1
- Category:Redirects to monotypic taxa using unknown values for parameter 1
- Category:Redirects from monotypic taxa using unknown values for parameter 1