टेम्पलेट:Get regnum()/doc: रिवीजन सभ के बीचा में अंतर

विकिपीडिया से
Content deleted Content added
imported>Smith609
छो moved Template:Get regnum/doc to Template:Get regnum()/doc: Clarify that this is a function, not a "template" per se
copy instead of redirect, to be modified
लाइन 1: लाइन 1:
{{Documentation subpage}}
#REDIRECT [[Template:Is reg/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===

Input: {{para|1|Taxon name}}

Output:
* If Taxon is a [[Kingdom (biology)|regnum]] (or equivalent higher category), <pre>[[{{{1}}}]]</pre>
* Else: Null.

Intended use: Call repeatedly for each taxon in a taxobox (using {{tl|Get regnum()}}). Because a null string is returned for all non-regna, all that remains will be the regnum. Pass this output to {{tl|Taxobox colour}} to generate colours for a taxobox.

===Examples===
*{{xpsoc|get regnum|Columbidae}}

=== See also ===

<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->

</includeonly>

08:11, 2 जनवरी 2011 तक ले भइल बदलाव

Usage

Input: |1=Taxon name

Output:

  • If Taxon is a regnum (or equivalent higher category),
    [[{{{1}}}]]
  • Else: Null.

Intended use: Call repeatedly for each taxon in a taxobox (using {{Get regnum()}}). Because a null string is returned for all non-regna, all that remains will be the regnum. Pass this output to {{Taxobox colour}} to generate colours for a taxobox.

Examples

See also