Template:Taxonomy key: Difference between revisions
Content added Content deleted
Vivaporius (talk | contribs) 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: | Line 1: | ||
<includeonly><noinclude><!-- |
<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 |
****** First show the RIGHT-HAND table, with the correct taxobox colour, showing parent taxa with "edit" links |
||
⚫ | |||
--></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}} }} |
|||
⚫ | |||
use #titleparts: to remove any #section part in the link target |
use #titleparts: to remove any #section part in the link target |
||
--></noinclude> |
--></noinclude> |
||
{{#ifexist:Template:Taxonomy/{{{parent|}}} |
{{#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> |
|{{#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.}}}} |
|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. |
|{{error|Making progress.}} If the table below looks correct, then the necessary taxonomic information for the target taxon exists. |
||
Line 27: | Line 16: | ||
--></noinclude> |
--></noinclude> |
||
Not sure why you're here? [[Wikipedia:Automated taxobox system|Get started]] |
Not sure why you're here? [[Wikipedia:Automated taxobox system/intro|Get started]] with the automated taxobox system. |
||
{| class="wikitable" |
{| class="wikitable" |
||
|- |
|- |
||
Line 34: | Line 23: | ||
|- |
|- |
||
|Rank: |
|Rank: |
||
|<code>{{{rank|}}}</code> (displays as <code>{{anglicise rank|{{{rank|}}}|check=yes}}</code>) |
|<code>{{{rank|}}}</code> (displays as <code>{{anglicise rank|{{{rank|}}}|check=yes}}</code>){{#if:{{{rank|}}}||{{error|– a rank must be supplied}}}} |
||
|- |
|- |
||
|Link: |
|Link: |
||
|<code>{{#invoke:Autotaxobox|taxonLink |
|<code>{{#invoke:Autotaxobox|taxonLink |
||
|taxon={{{ |
|taxon={{{taxon}}} |
||
|extinct={{{extinct}}} |
|extinct={{{extinct}}} |
||
|link_target={{{link_target}}} |
|link_target={{{link_target}}} |
||
Line 47: | Line 36: | ||
|- |
|- |
||
|Extinct: |
|Extinct: |
||
|{{#if:{{{extinct|}}}|<code>{{{extinct|}}}</code>|no}} |
|{{#if:{{{extinct|}}}|<code>{{{extinct|}}}</code>|no}}{{#ifeq:{{{extinct_error|}}}|yes| <span style="background-color:#FCC">parent is marked as extinct</span>}} |
||
|- |
|- |
||
|Always displayed: |
|Always displayed: |
||
Line 57: | Line 46: | ||
|- |
|- |
||
|Taxonomic references: |
|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: |
|Parent's taxonomic references: |
||
|{{# |
|{{#invoke:Autotaxobox|showRefs|{{{parent|}}}|{{Taxon info|{{{parent|}}}|refs}}}} |
||
|- |
|- |
||
{{#if:{{{same_as|{{{same as|}}}}}}| |
{{#if:{{{same_as|{{{same as|}}}}}}| |
||
Line 66: | Line 55: | ||
{{!}}- |
{{!}}- |
||
}} |
}} |
||
{{#if:{{Str endswith|{{{ |
{{#if:{{Str endswith|{{{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:{{Str crop|{{{ |
{{!}} 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|{{{taxon}}}|5}}]].| |
||
{{#if:{{Str endswith|{{{ |
{{#if:{{Str endswith|{{{taxon}}}|/?}}| |
||
{{!}} colspan=2 {{!}}For the suffix "/?", see [[Wikipedia:Automated_taxobox_system/advanced_taxonomy#Questionable_assignments|Questionable assignments]].| |
{{!}} colspan=2 {{!}}For the suffix "/?", see [[Wikipedia:Automated_taxobox_system/advanced_taxonomy#Questionable_assignments|Questionable assignments]].| |
||
{{#ifeq:{{#titleparts:{{{ |
{{#ifeq:{{#titleparts:{{{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]].| |
{{!}} 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> |