Jump to content

Module:Science redirect/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
categories
alpha→beta, other documentation
Line 1: Line 1:
{{Module rating |alpha}}
{{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 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