Templat:Speciesbox: Perbezaan antara semakan

Kandungan dihapus Kandungan ditambah
Amir Hamzah 2008 (bincang | sumb.)
Tiada ringkasan suntingan
Tiada ringkasan suntingan
Baris 1:
<includeonlynoinclude><!--
-====================================================================
 
- Template:Speciesbox - Generate a taxobox infobox for species
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.
-====================================================================
 
--
-->{{Taxobox/core
-- This template chooses parameters to send to {Taxobox/core}, to
| edit link = {{{edit link|{{{edit_link|e}}} }}}<!--
-- generate a right-side taxobox infobox. Most parameters are just
 
-- passed directly; some are explained with a comment. When run as
FOSSIL RANGE:
-- stand-alone, the template shows Acacia aemula as sample output.
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.
--
Otherwise, just pass on the stated parameter.
-- The genus name of the species is found by looking in order at
 
-- (1) the genus parameter
-->
-- (2) the first word of the taxon parameter
| temporal_range = {{#if:{{{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|{{{oldest_fossil|}}} }}}|{{geological range|{{{oldest fossil|{{{oldest_fossil}}} }}}|{{{youngest fossil|{{{youngest_fossil|Recent}}} }}} }} }} }}<!--
-- (3) the first word of the page name.
PARENT: this parameter ought really be called "taxon", not "parent" -->
-- The species name/specific epithet is found by looking in order at
| parent = {{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}} }}<!--
-- (1) the species parameter
-- (2) the rest of the taxon parameter after removing the first word
-- (3) the rest of the page name after removing any final part in
-- parentheses and then removing the first word.
--
-- The genus name is then the entry into the taxonomic hierarchy.
--
-- A complication is that if the taxonomy template for the genus needs
-- disambiguation (i.e. is "Template:Taxonomy/GENUS (DISAMBIG)") then
-- the parameters will be genus=GENUS (DISAMBIG) | species=EPITHET
-- Can also have genus=GENUS/QUALIFIER
--
-------------------------------- Invoke {Taxobox/core}
The nowiki that follows is needed because of parser bug T18700--></noinclude><nowiki/>{{Taxobox/core<includeonly>
| edit link = {{{edit link|{{{edit_link|s}}} }}}</includeonly><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 in template {geological range}, but checking
-- to display properly. Otherwise, just passes parameter.
--></noinclude>
| temporal_range = {{#if:{{{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|{{{oldest_fossil|}}} }}}|{{geological range|{{{oldest fossil|{{{oldest_fossil}}} }}}|{{{youngest fossil|{{{youngest_fossil|Kini}}} }}} }} }} }}<noinclude><!--
PARENT: this is the taxon whose taxonomy template is used to find the taxonomic hierarchy; if
not supplied as a parameter value, it defaults to the genus name.
Template:Taxonomy/PARENT must exist. --></noinclude>
| parent = {{{parent|{{{genus|{{first word|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}}}}}}}}}<noinclude><!--
DISPLAY PARENTS:
Number of immediate parents to display. Defaults to 1 toabove givespecies, normally the taxongenus (which is somedisplayed context.as
a major rank, anyway).
-->
--></noinclude>
| display_taxa = {{#expr:{{{display parents|{{{display_parents|1}}} }}}-1}}<!--
| display_taxa = {{#expr:{{{display parents|{{{display_parents|1}}} }}}-1}}<noinclude><!--
AUTHORITY (etc):
In the format "author, year".
--><!-- Species-authority is redundant to binomial_authority; we'll just list it the once. (This avoids reference-duplication errors, too.
| species_authority = {{{authority|{{{binomial authority|{{{binomial_authority|}}} }}} }}}--></noinclude>
| subgenus_authority = {{#if:{{{subgenus|}}}|{{{parent authority|{{{parent_authority|}}} }}} }}
| authority = {{#if:{{{subgenus|}}}|{{{grandparent authority|{{{grandparent_authority|}}} }}} |{{{parent authority|{{{parent_authority|}}} }}} }}
Baris 27 ⟶ 54:
| grandparent_authority = {{#if:{{{subgenus|}}}|{{{greatgreatgrandparent authority|{{{greatgreatgrandparent_authority|}}} }}} |{{{greatgrandparent authority|{{{greatgrandparent_authority|}}} }}} }}
| greatgrandparent_authority = {{#if:{{{subgenus|}}}|{{{greatgreatgreatgrandparent authority|{{{greatgreatgreatgrandparent_authority|}}} }}} |{{{greatgreatgrandparent authority|{{{greatgreatgrandparent_authority|}}} }}} }}
| greatgreatgrandparent_authority = {{#if:{{{subgenus|}}}|{{{greatgreatgreatgreatgrandparent authority|{{{greatgreatgreatgreatgrandparent_authority|}}} }}} |{{{greatgreatgreatgrandparent authority|{{{greatgreatgrandparent_authority|}}} }}} }}<noinclude><!--
NAME :
{{Speciesbox/name}} both determines the taxobox name and whether the page title should be italicized by
Genus + species.
adding the {{italic title}} template.
If the page title should be italicized, then {{italic title}} is included in the name parameter. This will be the case whenever the genus + species (or just the genus) matches the page name; if unspecified, these parameters are generated from the page name itself.
--></noinclude>
-->
| name = {{Speciesbox/name|{{{name|<noinclude>''Acacia aemula''</noinclude>}}}|{{{taxon|}}}|{{{genus|}}}|{{{species|}}}|{{PAGENAMEBASE}}|{{{italic_title|{{{italic title|yes}}}}}}}}<noinclude><!--
| name = {{#switch:
-- colour: (Note UK spelling here) There are three cases:
{{PAGENAMEBASE}}
1) the parameter color_as has a value – the colour is found directly using {{Taxobox colour|color_as}}
<!-- Redundant line?? |{{{genus|}}} {{{species|}}} -->
2) the deprecated parameter color has a value – an actual colour is expected
|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}}}} {{select species|{{{species|}}}|{{{taxon|}}}|{{PAGENAMEBASE}}}}
3) neither of these parameters have a value – Module:Autotaxobox|taxoboxColour searches up the taxonomic hierarchy
|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}}}}={{Italic title}}}}{{{name|''{{#if:{{select species|{{{species|}}}|{{{taxon|}}}|}}|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}}}} {{select species|{{{species|}}}|{{{taxon|}}}|}}|{{PAGENAMEBASE}} }}''}}}<!--
to try to find a taxon which determines the taxobox colour
COLOUR:
--></noinclude>
(Note the UK spelling here)
| colour = {{#if:{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}|{{Taxobox colour|{{{color_as|{{{colour_as|{{{color as|{{{colour as|}}}}}}}}}}}}}}|{{#if:{{{color|{{{colour|}}} }}}|{{{color|{{{colour}}} }}}|{{#invoke:Autotaxobox|taxoboxColour|{{{parent|{{{genus|{{first word|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}}}}}}}}} }} }} }}
Generated by Template:Taxobox colour, a switch-template that should be fed the taxon name.
-->
| colour = {{#if:{{{color|{{{colour|}}} }}}|{{{color|{{{colour}}} }}}|{{taxobox colour|taxon={{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}} }} }} }}
| status = {{{status|}}}
| status_system = {{{status system|{{{status_system|}}} }}}
Baris 48 ⟶ 73:
| status2_system = {{{status2 system|{{{status2_system|}}} }}}
| status2_ref = {{{status2 ref|{{{status2_ref|}}} }}}
| trend = {{{trend|}}}
| image = {{{image|}}}
| upright = {{{image_upright|{{{image upright|}}} }}}
| image_width = {{{image_width|{{{image width|}}} }}}
| image_alt = {{{image alt|{{{image_alt|}}} }}}
| image_caption = {{{image caption|{{{image_caption|}}} }}}
| image_caption_align = {{{image caption align|{{{image_caption_align|center}}} }}}
| image2 = {{{image2|}}}
| upright2 = {{{image2_upright|{{{image2 upright|}}} }}}
| image2_width = {{{image2 width|{{{image2_width|}}} }}}
| image2_alt = {{{image2 alt|{{{image2_alt|}}} }}}
Baris 58 ⟶ 87:
| classification_status = {{{classification status|{{{classification_status|}}} }}}
| diversity = {{{diversity|}}}
| diversity_ref = {{{diversity ref|{{{diversity_ref|}}} }}}
| diversity_link = {{{diversity link|{{{diversity_link|}}} }}}
| extinct = {{{extinct|}}}
| subgenus = {{#if:{{{subgenus|}}}|''{{{subgenus}}}''}}
| species = {{#if:{{{extinct|}}}|&dagger;|{{Taxon info|{{{parent|{{{genus|{{first word|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}}}}}}}}}|dagger}} }}<!--
| species = {{#if:{{{extinct|}}}
-->'''''{{str left|{{{genus|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}}}}|1}}. {{{species|{{remove first word|{{{taxon|<includeonly>{{PAGENAMEBASE}}</includeonly><noinclude>Acacia aemula</noinclude>}}}}}}}}'''''
|&dagger;<!--
| binomial = ''{{Str letter/trim|{{{genus|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><noinclude>Acacia</noinclude>}}}}}}}} {{{species|{{remove first word|{{{taxon|<includeonly>{{PAGENAMEBASE}}</includeonly><noinclude>Acacia aemula</noinclude>}}}}}}}}''
-->|{{get dagger
|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}} }} }} }}'''''{{str left|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}} }}|1}}. {{select species|{{{species|}}}|{{{taxon|}}}|{{PAGENAMEBASE}}}}'''''
| binomial = ''{{first word|{{select genus|{{{genus|}}}|{{{taxon|}}}|{{PAGENAME}} }} }} {{select species|{{{species|}}}|{{{taxon|}}}|{{PAGENAMEBASE}}}}''
| binomial_authority = {{{authority|{{{binomial authority|{{{binomial_authority|}}} }}} }}}
| trinomial = {{{trinomial|}}}
| trinomial_authority = {{{trinomial authority|{{{trinomial_authority|}}} }}}<!--
| subdivision = {{{subdivision|}}}
 
| subdivision_ranks = {{{subdivision ranks|{{{subdivision_ranks|Subspecies}}} }}}
SUBDIVISION:
Can be overridden manually.
If not, "display children" will include a list generated by Taxobot.
Passing "depth=display children" determines the level of nesting; note the option "2 collapse".
If in main/talkspace, the list will be generated using templates "Auto taxon list {{{display children}}}". (Otherwise, "auto" is replaced with "edit", to allow editable lists, e.g. at template:taxonomy/xxx)
 
-->
| subdivision = {{{subdivision|{{#if:{{{display children|{{{display_children|}}}}}}|{{Child taxa/{{{taxon|}}}|depth={{{display children|{{{display_children}}}}}} }} }} }}}<!--
 
SUBDIVISION RANKS:
Displayed above the subdivision, and generated automatically from the taxon's rank if unspecified.
 
-->
| subdivision_ranks = {{{subdivision ranks|{{{subdivision_ranks|Subspesies }}} }}}
| 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|}}} }}}
Baris 91 ⟶ 108:
| 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|}}} }}}
Baris 97 ⟶ 115:
| 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|}}} }}}
Baris 103 ⟶ 122:
| 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|}}} }}}
Baris 108 ⟶ 128:
| synonyms_ref = {{{synonyms ref|{{{synonyms_ref|}}} }}}
| synonyms = {{{synonyms|}}}
}}</includeonly><noinclude>
{{documentation}}</noinclude>