"साँचा:Automatic taxobox": अवतरणों में अंतर

No edit summary
No edit summary
पंक्ति 9:
-- stand-alone, template shows genus "Acacia" as a sample output.
--
-------------------------------------------- Check for taxonomytaxon page template
--></noinclude>{{
--></noinclude>{{#ifexist:Template:Taxonomy/{{{Taxobox/taxon|<includeonly>{{PAGENAME}}</includeonly>{taxon|<noinclude>Acacia</noinclude>}}}
|<noinclude><!--do nothing if it exists--></noinclude>
</noinclude><includeonly>{{PAGENAME}}</includeonly>}}}|{{{1|}}} }}
|{{Automatic taxobox/floating intro|taxon={{{taxon|{{PAGENAME}}}}} }}<!--
|
-->}}<noinclude><!--
|{{Automatic taxobox/floating intro|taxon={{Taxobox/taxon|{{{taxon|{{PAGENAME}}|}}}|{{{1|}}} }} }} }}<noinclude><!--
-------------------------------------------- Invoke {Taxobox/core}
The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core
-->}}</noinclude><!--div>{{Taxobox/core
| edit link = {{{edit link|{{{edit_link|e}}} }}}<noinclude><!--
--
Line 24 ⟶ 25:
| 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 = {{Taxobox/taxon|{{{taxon|<noinclude>बबूलAcacia
</noinclude><includeonly>{{PAGENAME}}</includeonly>|}}}|{{{1|}}} }}<!--
-- display_parents: number of parent taxons to display
-- (default: 1, to give the taxon some context). -->
Line 47 ⟶ 49:
| 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|{{Taxobox/taxon|{{{taxon|{{PAGENAME}}|}}}|{{{1|}}} }} }}
|3={{taxobox/italics|{{t^|{{Taxobox/taxon info|{{{taxon|{{PAGENAME}}|}}}|parent{{{1|}}} }} }} }}
|4={{taxobox/italics|{{taxon infot^^|{{Taxobox/taxon info|{{{taxon|{{PAGENAME}}|}}}|parent{{{1|}}|parent} }} }} }}
}} }} }}}<noinclude><!--
-- colour: (Note UK spelling here) ThereGenerated areby two casesTemplate:Taxobox_colour,
-- a switch-template that should be fed the taxon name. --></noinclude>
1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}}
| colour = {{#if:{{{color|{{{colour|}}} }}}|{{{color|{{{colour}}} }}}|{{taxobox colour|taxon={{Taxobox/taxon|1={{{taxon|{{PAGENAME}}|}}}|2={{{1|}}} }} }} }}
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|}}} }}}
Line 63 ⟶ 62:
| 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|}}}
Line 87 ⟶ 81:
| type_genus_authority = {{{type genus authority|{{{type_genus_authority|}}} }}}
| type_species = {{{type species|{{{type_species|}}} }}}
| type_species_authority = {{{type species authority|{{{type_species_authority|}}} }}}<noinclude><!--
-- subdivision: can be overridden manually.
| subdivision = {{{subdivision|}}}<noinclude><!--
-- If not, "display_children" will include a list generated by Taxobot.
-- If subdivision has a value, subdivision_ranks provides a section heading in the taxobox. A default will be
-- Passing "depth={display_children}" determines the level of nesting;
-- generated from the target taxon's rank if no value is given. --></noinclude>
-- note the option "2 collapse".
| subdivision_ranks = {{#if:{{{subdivision ranks|}}}|{{{subdivision ranks}}}|{{#if:{{{subdivision_ranks|}}}|{{{subdivision_ranks}}}|{{children_rank|{{taxonomy/{{{taxon|{{PAGENAME}}}}}|machine code=rank}} }} }} }}
-- If in main/talkspace, the list will be generated using the
-- templates "Auto taxon list {{{display children}}}" (Otherwise,
-- "auto" is replaced with "edit", to allow editable lists, e.g.
-- at template:taxonomy/xxx). --></noinclude>
| subdivision = {{{subdivision|{{#if:{{{display children|}}}|{{Child taxa/{{Taxobox/taxon|{{{taxon|{{PAGENAME}}|}}}|{{{1|}}} }}|depth={{{display children|}}} }} }} }}}<!--
-- subdivision_ranks: the taxon ranks are displayed above the
-- name of the subdivision, and generated automatically from the
-- taxon's rank if unspecified. -->
| subdivision_ranks = {{#if:{{{subdivision ranks|}}}|{{{subdivision ranks}}}|{{#if:{{{subdivision_ranks|}}}|{{{subdivision_ranks}}}|{{children_rank|{{taxonomy/{{Taxobox/taxon|{{{taxon|{{PAGENAME}}|}}}|machine{{{1|}}} 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|}}} }}}
Line 101 ⟶ 103:
| 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|}}} }}}
Line 108 ⟶ 109:
| 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|}}} }}}
पंक्ति 115:
| 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|}}} }}}
Line 121 ⟶ 120:
| synonyms_ref = {{{synonyms ref|{{{synonyms_ref|}}} }}}
| synonyms = {{{synonyms|}}}
}}</div><noinclude><!--
}}{{#if:{{{binomial|}}}|[[Category:Automatic taxoboxes using binomial parameter]]}}<noinclude><!--
---------------------------------------------------------------------------
--NOTES
Line 145 ⟶ 144:
--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.
--
-->{{Documentationdocumentation}}</noinclude>
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>