Template:Taxonomy key: Difference between revisions

Created page with "<includeonly><noinclude><!-- ****** First show the RIGHT-HAND table, with the correct taxobox colour, showing parent taxa with "edit" links --></noinclude>{{#invoke:Autotaxob..."
m (1 revision imported)
en>Vivaporius
(Created page with "<includeonly><noinclude><!-- ****** First show the RIGHT-HAND table, with the correct taxobox colour, showing parent taxa with "edit" links --></noinclude>{{#invoke:Autotaxob...")
Line 1:
<includeonly><noinclude><!--
The template must be supplied with ALL of the parameters: parent, link_target, link, rank,
extinct, always_display, refs. In normal use this happens because it's called from
Module:Autotaxobox|callTaxonomyKey.
When testing from a page that is not a taxonomy template, pgname = Taxonomy/TAXON must be
supplied to supply the value of TAXON.
 
****** First show the RIGHT-HAND table, with the correct taxobox colour, showing parent taxa with "edit" links
 
--></noinclude>{{#invoke:Autotaxobox|taxonomyList|{{{taxon}}}}}<noinclude><!--Now check whether the parent taxonomy template or link target article need to be created;
--></noinclude>{| class="infobox biota" style="text-align: left; font-size:100%"
|-
! colspan=2 style="text-align: center; background-color: {{#invoke:Autotaxobox|taxoboxColour|{{#titleparts:{{{pgname|{{PAGENAME}}}}}||2}} }}" | Ancestral taxa
|-
{{#invoke:Autotaxobox|taxonomyList|{{#titleparts:{{{pgname|{{PAGENAME}}}}}||2}} }}
|}<noinclude><!--Now check whether the parent taxonomy template or link target article need to be created;
use #titleparts: to remove any #section part in the link target
--></noinclude>
{{#ifexist:Template:Taxonomy/{{{parent|}}}
|{{#if:{{{link_target|}}}|{{#ifexist:{{#titleparts:{{{link_target}}}||}}|__NOINDEX__<noinclude><!-- then it looks like we're in the clear. Google can show the article, rather than this page. --></noinclude>
|Wikipedia does not yet have an article about [[{{{link_target}}}]]. You can help by [{{Create taxonomy/link|{{{link_target}}} }} creating it]. The page that you are currently viewing contains information about [[{{{link_target}}}]]'s taxonomy.[[Category:Taxonomy templates with red-linked taxa|{{SUBPAGENAME}}]]}}}}
|{{error|Making progress.}} If the table below looks correct, then the necessary taxonomic information for the target taxon exists.
 
Line 27 ⟶ 16:
 
--></noinclude>
Not sure why you're here? [[Wikipedia:Automated taxobox system/intro|Get started]] with Wikipediathe automated taxobox taxonomysystem.
{| class="wikitable"
|-
Line 34 ⟶ 23:
|-
|Rank:
|<code>{{{rank|}}}</code> (displays as <code>{{anglicise rank|{{{rank|}}}|check=yes}}</code>){{#if:{{{rank|}}}||{{error|– a rank must be supplied}}}}
|-
|Link:
|<code>{{#invoke:Autotaxobox|taxonLink
|taxon={{{pgname|{{#titleparts:{{PAGENAME}}||2}}taxon}}}
|extinct={{{extinct}}}
|link_target={{{link_target}}}
Line 47 ⟶ 36:
|-
|Extinct:
|{{#if:{{{extinct|}}}|<code>{{{extinct|}}}</code>|no}}{{#ifeq:{{{extinct_error|}}}|yes| <span style="background-color:#FCC">parent is marked as extinct</span>}}
|-
|Always displayed:
Line 57 ⟶ 46:
|-
|Taxonomic references:
|{{#invoke:Autotaxobox|showRefs|{{{taxon}}}|{{{refs|}}}}}
|{{#if:{{{refs|}}}|{{{refs}}}|{{#ifeq:{{#titleparts:{{{pgname|{{PAGENAME}}}}}|1|2}}|Incertae sedis|not applicable (''incertae sedis'')|–}}}}
|-
|Parent's taxonomic references:
|{{#ifinvoke:{{Taxon infoAutotaxobox|showRefs|{{{parent|}}}|refs}}|{{Taxon info|{{{parent|}}}|refs}}|{{#ifeq:{{#titleparts:{{{parent|}}}|1|2}}|Incertae sedis|not applicable (''incertae sedis'')|–}}}}
|-
{{#if:{{{same_as|{{{same as|}}}}}}|
Line 66 ⟶ 55:
{{!}}-
}}
{{#if:{{Str endswith|{{{pgname|{{PAGENAME}}taxon}}}|/skip}}|
{{!}} colspan=2 {{!}}For the suffix "/skip", see [[Wikipedia:Automated_taxobox_system/advanced_taxonomy#Skip_taxonomy_templates|Skip taxonomy templates]].<br>For the skipped taxa, see [[Template:Taxonomy/{{Str crop|{{{pgname|{{PAGENAME}}taxon}}}|5}}]].|
{{#if:{{Str endswith|{{{pgname|{{PAGENAME}}taxon}}}|/?}}|
{{!}} colspan=2 {{!}}For the suffix "/?", see [[Wikipedia:Automated_taxobox_system/advanced_taxonomy#Questionable_assignments|Questionable assignments]].|
{{#ifeq:{{#titleparts:{{{pgname|{{PAGENAME}}taxon}}}|1|2}}|Incertae sedis|
{{!}} colspan=2 {{!}}For taxon names with "Incertae sedis", see [[Wikipedia:Automated_taxobox_system/advanced_taxonomy#Incertae_sedis_taxonomy_templates|''Incertae sedis'' taxonomy templates]].|
}}}}}}
}}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
|}{{#ifeq:{{{extinct_error|}}}|yes|[[Category:Taxonomy templates with inconsistent extinct values]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
Anonymous user