Difference between revisions of "Template:Ichnobox"

From blackwiki
Jump to navigation Jump to search
imported>Peter coxhead
(updated as per Automatic taxobox)
imported>Peter coxhead
(as all articles use Ichnobox/short, move that version of the code to here)
Line 1: Line 1:
<includeonly><div style='display:none; visibility:hidden'>{{Taxobox/taxon}}<!-- This template has to be "warmed up" before it can be used, for some reason --></div><!--
+
<noinclude><!--
 
+
-==================================================================
This template sends parameters to taxobox/core, which generates the output HTML.  Most parameters are just passed directly; interesting ones are noted with a comment.
+
- Template:Ichnobox/short - Show shorter infobox of ichno data
 
+
-==================================================================
-->{{Taxobox/core
+
--
 +
--  This template sends parameters to taxobox/core, which generates
 +
--  the output HTML.  Most parameters are just passed directly;
 +
--  some are noted with a comment.
 +
--
 +
--></noinclude>{{Taxobox/core
 
| edit link = {{{edit link|e}}}
 
| edit link = {{{edit link|e}}}
| ichnos = true<!--  
+
| ichnos = true<noinclude><!--
 
+
--
FOSSIL RANGE:
+
-- fossil range: If the specified fossil range is a period supported
If the specified fossil range is a period supported by templates "period start" and "next period", then incorporate the specified range into template:Fossil range, having checked that it will display correctly.
+
-- by templates {period start} and {next period}, then incorporate
Otherwise, just pass on the stated parameter.
+
-- the specified range into Template:Fossil_range, having checked to
 
+
-- display correctly. Otherwise, just pass on the stated parameter.
-->  
+
--></noinclude>
| temporal_range =  {{#if:{{{temporal_range|{{{temporal range|{{{fossil_range|{{{fossil range|}}} }}} }}} }}}|{{#iferror:{{geological range|{{{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|}}}|{{geological range|{{{oldest fossil}}}|{{{youngest fossil|Recent}}} }} }} }}<!--  
+
| temporal_range =  {{#if:{{{temporal_range|{{{fossil_range|}}} }}}|{{#iferror:{{geological range|{{{temporal_range|{{{fossil_range|}}} }}} }}|{{{temporal_range|{{{fossil_range|}}} }}}|{{geological range|{{{temporal_range|{{{fossil_range|}}} }}} }} }} | {{#if:{{{oldest fossil|}}}|{{geological range|{{{oldest fossil}}}|{{{youngest fossil|Recent}}} }} }} }}<!--  
PARENT: this parameter ought really be called "taxon", not "parent" -->
+
--  parent: this parameter should be called "taxon", not "parent" -->
| parent = {{Taxobox/taxon|{{{taxon|}}}|{{{1|}}} }}<!--
+
| parent = {{Taxobox/taxon|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Agrestipus</noinclude>|}}}|{{{1|}}} }}<!--
DISPLAY PARENTS:
+
--  display_parents: Number of immediate parents to display.
Number of immediate parents to display. Defaults to 1 to give the taxon some context.
+
--  Defaults to 1 to give the taxon some context. -->
-->
 
 
| display_taxa = {{{display parents|{{{display_parents|1}}}}}}<!--
 
| display_taxa = {{{display parents|{{{display_parents|1}}}}}}<!--
AUTHORITY (etc):
+
--  authority, parent_authority (etc.): In format "author, year".   
In the format "author, year".   
 
 
-->
 
-->
 
| authority = {{{authority|}}}
 
| authority = {{{authority|}}}
| parent_authority = {{{parent authority|{{{parent_authority|}}} }}}
+
| parent_authority = {{{parent_authority|}}}
| grandparent_authority = {{{grandparent authority|{{{grandparent_authority|}}} }}}
+
| grandparent_authority = {{{grandparent_authority|}}}
| greatgrandparent_authority = {{{greatgrandparent authority|{{{greatgrandparent_authority|}}} }}}<!--
+
| greatgrandparent_authority = {{{greatgrandparent_authority|}}}<noinclude><!--
| greatgreatgrandparent_authority = {{{greatgreatgrandparent authority|{{{greatgreatgrandparent_authority|}}} }}}
+
--  name:  Works out whether the name should be italicized (as
NAME :
+
--  genera, species, etc); if so, passes the italicized result.
  Works out whether the name should be italicized (think genera, species, etc); if so, passes the appropriately italicized result.
+
--  There should be no punctuation in the "name" parameter, which
There should be no punctuation in the "name" parameter, which is intended only for cases where the taxobox name does not match that displayed or linked to by the taxon in question.  Italics are generated automatically.
+
--  is intended only for cases where the taxobox name does not
 
+
--  match that displayed or linked to by the taxon in question.
ITALIC_NAME :
+
-- Italics are generated automatically.
This parameter is still supported (just in case), but shows up in Category:Automatic taxobox cleanup because the template ''should'' be able to italicize things itself in all cases.
+
--
-->
+
--  italic_name: This parameter is still supported (just in case),
| name = {{#ifeq:'|{{str rightmost|1='{{{name|}}}|2=1}}|{{#if:{{{italic name|}}}|[[Category:Automatic taxobox cleanup|&iota;]]{{DISPLAYTITLE:{{
+
--  but links to Category:Automatic_taxobox_cleanup because the
   #if:{{NAMESPACE}}
+
--  template should be able to italicize for all cases.
  | {{NAMESPACE}}:
+
--></noinclude>
  }}''{{{italic_name}}}''}}''{{{italic name}}}''|{{taxobox name
+
| name = {{{italic name|{{{name|}}} }}}{{
    |1={{{binomial|}}}
+
   #ifeq:'|{{padleft:|1|{{{italic name|{{{name|}}} }}} }}
    |2={{taxobox/italics|{{Taxobox/taxon|{{{taxon|}}}|{{{1|}}} }} }}
+
     |{{DISPLAYTITLE:{{{italic name|{{{name|}}}}}} }}
     |3={{taxobox/italics|{{taxon info|{{{taxon|{{PAGENAME}}}}}|parent}} }}
 
    |4={{taxobox/italics|{{taxon info|{{taxon info|{{{taxon|{{PAGENAME}}}}}|parent}}|parent}} }}
 
 
   }}
 
   }}
}}|{{{name}}} }}
 
 
| colour = rgb(215,240,210)
 
| colour = rgb(215,240,210)
 
| image = {{{image|}}}
 
| image = {{{image|}}}
| upright = {{{image_upright|{{{image upright|}}} }}}
+
| image_width = {{{image_width|}}}
| image_width = {{{image_width|{{{image width|}}} }}}
+
| image_alt = {{{image alt|}}}
| image_alt = {{{image alt|{{{image_alt|}}} }}}
+
| image_caption = {{{image caption|}}}
| image_caption = {{{image caption|{{{image_caption|}}} }}}
 
 
| image2 = {{{image2|}}}
 
| image2 = {{{image2|}}}
| upright2 = {{{image2_upright|{{{image2 upright|}}} }}}
+
| image2_width = {{{image2 width|}}}
| image2_width = {{{image2 width|{{{image2_width|}}} }}}
+
| image2_alt = {{{image2 alt|}}}
| image2_alt = {{{image2 alt|{{{image2_alt|}}}}}}
+
| image2_caption = {{{image2 caption|}}}
| image2_caption = {{{image2 caption|{{{image2_caption|}}}}}}
 
 
| diversity = {{{diversity|}}}
 
| diversity = {{{diversity|}}}
| diversity_link = {{{diversity link|{{{diversity_link|}}} }}}
+
| diversity_link = {{{diversity link|}}}
 
| binomial = {{{binomial|}}}
 
| binomial = {{{binomial|}}}
| binomial_authority = {{{binomial authority|{{{binomial_authority|}}} }}}
+
| binomial_authority = {{{binomial authority|}}}
 
| trinomial = {{{trinomial|}}}
 
| trinomial = {{{trinomial|}}}
| trinomial_authority = {{{trinomial authority|{{{trinomial_authority|}}} }}}
+
| trinomial_authority = {{{trinomial authority|}}}
| type_ichnogenus = {{{type_ichnogenus|{{{type ichnogenus|}}}}}}
+
| type_ichnogenus = {{{type_ichnogenus|}}}
| type_ichnogenus_authority = {{{type_ichnogenus_authority|{{{type ichnogenus authority|}}}}}}
+
| type_ichnogenus_authority = {{{type_ichnogenus_authority|}}}
| type_ichnospecies = {{{type_ichnospecies|{{{type ichnospecies|}}}}}}
+
| type_ichnospecies = {{{type_ichnospecies|}}}
| type_ichnospecies_authority = {{{type_ichnospecies_authority|{{{type ichnospecies authority|}}}}}}
+
| type_ichnospecies_authority = {{{type_ichnospecies_authority|}}}
| subdivision = {{{subdivision|}}}
+
<noinclude><!--
| subdivision_ranks = {{{subdivision ranks|{{{subdivision_ranks|{{children_rank|{{taxonomy/{{Taxobox/taxon|{{{taxon|}}}|{{{1|}}} }}|machine code=rank}} }} }}}}}}
+
--
| possible_subdivision = {{{possible_subdivision|{{{possible subdivision|}}}}}}
+
--  subdivision:  Can be overridden. If not, "display_children" will
| possible_subdivision_ranks = {{{possible_subdivision_ranks|{{{possible subdivision ranks}}}}}}<!--
+
--  include a list from Taxobot.  Passing "depth=display children"
 
+
--  determines the level of nesting; note the option "2 collapse".
POSSIBLE SUBDIVISIONS AND RANKS:
+
--  If in main/talkspace, the list will be generated using
Displayed below the known subdivisions; this should be reserved for non-ichnos taxa-- i.e., taxa from the tree of life and/or Veterovata
+
--  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:  Displayed above 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/{{{taxon|{{PAGENAME}}}}}|machine code=rank}} }}  }} }}<!--{{{subdivision_ranks|{{children_rank|{{taxonomy/{{Taxobox/taxon|{{{taxon|{{PAGENAME}}|}}}|{{{1|}}} }}|rank}} }} }}}-->
 +
| possible_subdivision = {{{possible_subdivision|}}}
 +
| possible_subdivision_ranks = {{{possible_subdivision_ranks|}}}<!--
 +
--
 +
--  possible_subdivision_ranks: Displayed below the known
 +
--  subdivisions; this should be reserved for non-ichnos taxa, i.e.,
 +
--  for taxa from the tree of life and/or Veterovata.
 
-->
 
-->
| range_map = {{{range map|{{{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 width|{{{range_map_width|}}} }}}
+
| range_map_alt = {{{range_map_alt|}}}
| range_map_alt = {{{range map alt|{{{range_map_alt|}}} }}}
+
| range_map_caption = {{{range_map_caption|}}}
| range_map_caption = {{{range map caption|{{{range_map_caption|}}} }}}
 
 
| binomial2 = {{{binomial2|}}}
 
| binomial2 = {{{binomial2|}}}
| binomial2_authority = {{{binomial2 authority|{{{binomial2_authority|}}} }}}
+
| binomial2_authority = {{{binomial2_authority|}}}
| range_map2 = {{{range map2|{{{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 width| {{{range_map2_width|}}}}}}
+
| range_map2_alt = {{{range_map2_alt|}}}
| range_map2_alt = {{{range map2 alt|{{{range_map2_alt|}}} }}}
+
| range_map2_caption = {{{range_map2_caption|}}}
| range_map2_caption = {{{range map2 caption|{{{range_map2_caption|}}} }}}
 
 
| binomial3 = {{{binomial3|}}}
 
| binomial3 = {{{binomial3|}}}
| binomial3_authority = {{{binomial3 authority|{{{binomial3_authority|}}} }}}
+
| binomial3_authority = {{{binomial3_authority|}}}
| range_map3 = {{{range map3|{{{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 width|{{{range_map3_width|}}} }}}
+
| range_map3_alt = {{{range_map3_alt|}}}
| range_map3_alt = {{{range map3 alt|{{{range_map3_alt|}}} }}}
+
| range_map3_caption = {{{range_map3_caption|}}}
| range_map3_caption = {{{range map3 caption|{{{range_map3_caption|}}} }}}
 
 
| binomial4 = {{{binomial4|}}}
 
| binomial4 = {{{binomial4|}}}
| binomial4_authority = {{{binomial4 authority|{{{binomial4_authority|}}} }}}
+
| binomial4_authority = {{{binomial4_authority|}}}
| range_map4 = {{{range map4|{{{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 width|{{{range_map4_width|}}} }}}
+
| range_map4_alt = {{{range_map4_alt|}}}
| range_map4_alt = {{{range map4 alt|{{{range_map4_alt|}}} }}}
+
| range_map4_caption = {{{range_map4_caption|}}}
| range_map4_caption = {{{range map4 caption|{{{range_map4_caption|}}} }}}
+
| synonyms_ref = {{{synonyms_ref|}}}
| synonyms_ref = {{{synonyms ref|{{{synonyms_ref|}}} }}}
 
 
| synonyms = {{{synonyms|}}}
 
| synonyms = {{{synonyms|}}}
}}</includeonly><noinclude>
+
}}<noinclude>
{{Documentation}}
+
{{clear}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
+
{{documentation|Template:Ichnobox/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 12:30, 15 January 2017

Template:Taxobox/core

This template is used to create infoboxes for trace fossil taxa (ichnotaxa). See Trace fossil classification for more information.

Documentation for the automated taxobox system

Taxonomy templates

Taxobox templates

Usage

This template operates in a similar manner to Template:Automatic taxobox. Please see that template for general usage instructions.

There is no equivalent of {{Speciesbox}} for ichnospecies; almost all articles are about ichnogenera and ichnofamilies.

The top-level taxon for ichnotaxa - i.e. the parent for ichnotaxa that have no higher classification - is "Ichnos".

Template Data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Ichnobox

An infobox for ichnotaxa (trace fossils)

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Stringoptional
Fossil_rangefossil_range

no description

Stringsuggested
Imageimage

no description

Fileoptional
Image_captionimage_caption

no description

Stringoptional
Image2image2

no description

Fileoptional
Image2_captionimage2_caption

no description

Stringoptional
Parent_authorityparent_authority

no description

Stringoptional
Taxontaxon

no description

Stringrequired
Authorityauthority

no description

Stringsuggested
Type_ichnospeciestype_ichnospecies

no description

Stringoptional
Type_ichnospecies_authoritytype_ichnospecies_authority

no description

Stringoptional
Subdivision_rankssubdivision_ranks

no description

Stringoptional
Subdivisionsubdivision

no description

Unknownoptional
Synonymssynonyms

no description

Stringoptional