Difference between revisions of "Template:Automatic taxobox"

From Eat Every Plant
Jump to navigation Jump to search
m (1 revision: 'Asparagales')
m (1 revision: Nauclea)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude><!--
+
<includeonly>{{#invoke:Automated taxobox|automaticTaxobox}}</includeonly><noinclude>
-====================================================================
+
{{documentation}}</noinclude>
-  Template:Automatic_taxobox - Auto-generate a taxobox infobox
 
-====================================================================
 
--
 
--  This template chooses parameters to send to {Taxobox/core}, to
 
--  generate a right-side taxobox infobox.  Most parameters are just
 
--  passed directly; some are explained with a comment.  When run as
 
--  stand-alone, template shows genus "Acacia" as a sample output.
 
--
 
-------------------------------- Check for taxonomy template
 
--></noinclude>{{#ifexist:Template:Taxonomy/{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}
 
|<noinclude><!--do nothing if it exists--></noinclude>
 
|{{Automatic taxobox/floating intro|taxon={{{taxon|{{PAGENAME}}}}} }}<!--
 
-->}}<noinclude><!--
 
-------------------------------- Invoke {Taxobox/core}
 
The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core
 
| edit link = {{{edit link|{{{edit_link|e}}} }}}<noinclude><!--
 
  --
 
  -- fossil_range:  If the specified fossil range is a period supported
 
  -- by templates {period_start} and {next_period}, then it incorporates
 
  -- the specified range into template {Fossil range}, but checking to
 
  -- display properly. Otherwise, just passes parameter. --></noinclude>
 
| temporal_range = {{#if:{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}}|{{#iferror:{{period start|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}} }}|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}}|{{geological range|{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}} }} }} | {{#if:{{{oldest fossil|{{{oldest_fossil|}}} }}}|{{geological range|{{{oldest fossil|{{{oldest_fossil}}}}}}|{{{youngest fossil|{{{youngest_fossil|Recent}}}}}} }} }} }}<!--
 
  -- parent: this parameter should be called "taxon", not "parent" -->
 
| parent = {{{taxon|<noinclude>Acacia</noinclude><includeonly>{{PAGENAME}}</includeonly>}}}<!--
 
  -- display_parents:  number of parent taxons to display
 
  -- (default: 1, to give the taxon some context). -->
 
| display_taxa = {{{display parents|{{{display_parents|1}}}}}}<!--
 
  -- authority:  in the format "author, year".  -->
 
| authority = {{{authority|}}}
 
| parent_authority = {{{parent authority|{{{parent_authority|}}} }}}
 
| grandparent_authority = {{{grandparent authority|{{{grandparent_authority|}}} }}}
 
| greatgrandparent_authority = {{{greatgrandparent authority|{{{greatgrandparent_authority|}}} }}}
 
| greatgreatgrandparent_authority = {{{greatgreatgrandparent authority|{{{greatgreatgrandparent_authority|}}} }}}<noinclude><!--
 
  -- name:  checks for whether the name should be italicized
 
  -- (for: genera, species, etc); if so, passes the appropriately
 
  -- italicized result.
 
  -- There should be no punctuation in the "name" parameter, which is
 
  -- intended only for cases where the taxobox name does not match the
 
  -- name displayed or linked to by the taxon in question.  Italics are
 
  -- generated automatically.
 
  --
 
  -- italic_name: This parameter is still supported (just in case),
 
  -- but links "Category:Automatic taxobox cleanup" because the
 
  -- template 'should' be able to italicize in all cases. --></noinclude>
 
| name = {{{name|{{#if:{{{italic name|{{{italic_name|}}}}}}|[[Category:Automatic taxobox cleanup|&iota;]]{{DISPLAYTITLE:{{#if:{{NAMESPACE}} | {{NAMESPACE}}:}}''{{{italic_name}}}''}}''{{{italic name}}}''|{{taxobox name
 
    |1={{{binomial|}}}
 
    |2={{taxobox/italics|{{{taxon|{{PAGENAME}}}}} }}
 
    |3={{taxobox/italics|{{taxon info|{{{taxon|{{PAGENAME}}}}}|parent}} }}
 
    |4={{taxobox/italics|{{taxon info|{{taxon info|{{{taxon|{{PAGENAME}}}}}|parent}}|parent}}  }}
 
  }} }} }}}<noinclude><!--
 
-- colour:  (Note UK spelling here) There are two cases:
 
1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}}
 
2) otherwise – Module:Autotaxobox|taxoboxColour searches up the taxonomic hierarchy to try to find a taxon that
 
    determines the taxobox colour
 
--></noinclude>
 
| colour  = {{#if:{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}|{{Taxobox colour|{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}}}|{{#invoke:Autotaxobox|taxoboxColour|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}} }} }}
 
| status  = {{{status|}}}
 
| status_system = {{{status system|{{{status_system|}}} }}}
 
| status_ref = {{{status ref|{{{status_ref|}}} }}}
 
| status2  = {{{status2|}}}
 
| status2_system = {{{status2 system|{{{status2_system|}}} }}}
 
| status2_ref = {{{status2 ref|{{{status2_ref|}}} }}}
 
| trend = {{{trend|}}}
 
| extinct = {{{extinct|}}}
 
| image = {{{image|}}}
 
| image_width = {{{image_width|{{{image width|}}} }}}
 
| upright = {{{image_upright|{{{image upright|}}}}}}
 
| image_alt = {{{image alt|{{{image_alt|}}} }}}
 
| image_caption = {{{image caption|{{{image_caption|}}} }}}
 
| image_caption_align = {{{image caption align|{{{image_caption_align|center}}}}}}
 
| image2 = {{{image2|}}}
 
| image2_width = {{{image2 width|{{{image2_width|}}} }}}
 
| upright2 = {{{image2_upright|{{{image2 upright|}}}}}}
 
| image2_alt = {{{image2 alt|{{{image2_alt|}}}}}}
 
| image2_caption = {{{image2 caption|{{{image2_caption|}}}}}}
 
| classification_status = {{{classification status|{{{classification_status|}}} }}}
 
| diversity = {{{diversity|}}}
 
| diversity_ref = {{{diversity ref|{{{diversity_ref|}}} }}}
 
| diversity_link = {{{diversity link|{{{diversity_link|}}} }}}
 
| binomial = {{{binomial|{{Automatic taxobox/is species|{{{taxon|<includeonly>{{PAGENAME}}</includeonly>}}}}}}}}
 
| binomial_authority = {{{binomial authority|{{{binomial_authority|}}} }}}
 
| trinomial = {{{trinomial|}}}
 
| trinomial_authority = {{{trinomial authority|{{{trinomial_authority|}}} }}}
 
| type_genus = {{{type genus|{{{type_genus|}}}}}}
 
| type_genus_authority = {{{type genus authority|{{{type_genus_authority|}}} }}}
 
| type_species = {{{type species|{{{type_species|}}} }}}
 
| type_species_authority = {{{type species authority|{{{type_species_authority|}}} }}}
 
| subdivision = {{{subdivision|}}}<noinclude><!--
 
  -- If subdivision has a value, subdivision_ranks provides a section heading in the taxobox. A default will be
 
  -- generated from the target taxon's rank if no value is given. --></noinclude>
 
| subdivision_ranks = {{#if:{{{subdivision ranks|}}}|{{{subdivision ranks}}}|{{#if:{{{subdivision_ranks|}}}|{{{subdivision_ranks}}}|{{children_rank|{{taxonomy/{{{taxon|{{PAGENAME}}}}}|machine code=rank}} }}  }} }}
 
| type_strain = {{{type strain|{{{type_strain|}}} }}}
 
| range_map = {{{range map|{{{range_map|}}} }}}
 
| range_map_upright = {{{range_map_upright|{{{range map upright|}}}}}}
 
| range_map_width = {{{range map width|{{{range_map_width|}}} }}}
 
| range_map_alt = {{{range map alt|{{{range_map_alt|}}} }}}
 
| range_map_caption = {{{range map caption|{{{range_map_caption|}}} }}}
 
| binomial2 = {{{binomial2|}}}
 
| binomial2_authority = {{{binomial2 authority|{{{binomial2_authority|}}} }}}
 
| range_map2 = {{{range map2|{{{range_map2|}}} }}}
 
| range_map2_upright = {{{range_map2_upright|{{{range map2 upright|}}}}}}
 
| range_map2_width = {{{range map2 width| {{{range_map2_width|}}}}}}
 
| range_map2_alt = {{{range map2 alt|{{{range_map2_alt|}}} }}}
 
| range_map2_caption = {{{range map2 caption|{{{range_map2_caption|}}} }}}
 
| binomial3 = {{{binomial3|}}}
 
| binomial3_authority = {{{binomial3 authority|{{{binomial3_authority|}}} }}}
 
| range_map3 = {{{range map3|{{{range_map3|}}} }}}
 
| range_map3_upright = {{{range_map3_upright|{{{range map3 upright|}}}}}}
 
| range_map3_width = {{{range map3 width|{{{range_map3_width|}}} }}}
 
| range_map3_alt = {{{range map3 alt|{{{range_map3_alt|}}} }}}
 
| range_map3_caption = {{{range map3 caption|{{{range_map3_caption|}}} }}}
 
| binomial4 = {{{binomial4|}}}
 
| binomial4_authority = {{{binomial4 authority|{{{binomial4_authority|}}} }}}
 
| range_map4 = {{{range map4|{{{range_map4|}}} }}}
 
| range_map4_upright = {{{range_map4_upright|{{{range map4 upright|}}}}}}
 
| range_map4_width = {{{range map4 width|{{{range_map4_width|}}} }}}
 
| range_map4_alt = {{{range map4 alt|{{{range_map4_alt|}}} }}}
 
| range_map4_caption = {{{range map4 caption|{{{range_map4_caption|}}} }}}
 
| synonyms_ref = {{{synonyms ref|{{{synonyms_ref|}}} }}}
 
| synonyms = {{{synonyms|}}}
 
}}{{#if:{{{binomial|}}}|[[Category:Automatic taxoboxes using binomial parameter]]}}<noinclude><!--
 
---------------------------------------------------------------------------
 
--NOTES
 
--
 
-- NOTE A1: This template invokes Template:Taxobox/core, with special
 
--      parameters based on automatic logical settings.
 
--
 
---------------------------------------------------------------------------
 
--HISTORY:
 
--08Jul2010 Created by User:Smith609
 
--08Dec2010 Automated grandparent and great-grandparent authorities.
 
--01Jan2011 Discontinued the automatic authority generation.
 
--04Jan2011 Support "oldest fossil" parameter.
 
--09Jan2011 Removed κ test; to reduce post-expand size.
 
--18Mar2011 Display Help box if seriously misconfigured.
 
--20May2011 Protected Highly visible ([edit=autoconfirmed] (indefinite).
 
--29Jun2011 Add modified initial taxon to fix ghost transclusion issues.
 
--28Jul2011 Stripping whitespace from DISPLAYTITLE {{{italic_name}}}.
 
--08Feb2012 New parameter extinct = {{{extinct|}}}.
 
--01Nov2012 Set default taxon={{PAGENAME}} to fit template expansion depth.
 
--01Nov2012 Put "Acacia" as stand-alone sample display.
 
--01Nov2012 Noincluded top comments & condensed comments about parameters.
 
--01Nov2012 Put NOTES comments to explain template operation.
 
--01Nov2012 Put HISTORY comments to log major changes (not typos).
 
--15Nov2016 (to 20Dec2016) Major changes to the method of determining the taxobox colour.
 
--
 
-->{{Documentation}}
 
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
 
</noinclude>
 

Latest revision as of 00:20, 24 March 2019

Template documentation[create]