Difference between revisions of "Template:Infobox cultivar/sandbox"
imported>Peter coxhead |
imported>Peter coxhead |
||
| Line 18: | Line 18: | ||
| label2 = [[Species]] | | label2 = [[Species]] | ||
| class2 = binominal | | class2 = binominal | ||
| − | | data2 = {{#if:{{{species|}}}|''{{str left|{{replace|{{{genus}}}|''|}}|1}}. {{{species| | + | | data2 = {{#if:{{{species|}}}|''{{str left|{{replace|{{{genus}}}|''|}}|1}}. {{replace|{{{species}}}|''|}}''}} |
| label3 = [[Hybrid (biology)#Hybrid plants|Hybrid parentage]] | | label3 = [[Hybrid (biology)#Hybrid plants|Hybrid parentage]] | ||
| Line 24: | Line 24: | ||
| label4 = [[Subspecies]] | | label4 = [[Subspecies]] | ||
| − | | data4 = {{#if:{{{subspecies|}}}|''{{str left|{{replace|{{{genus|}}}|''|}}|1}}. {{str left|{{{species}}}|1}}.'' subsp. ''{{{subspecies|}}}''}} | + | | data4 = {{#if:{{{subspecies|}}}|''{{str left|{{replace|{{{genus|}}}|''|}}|1}}. {{str left|{{replace|{{{species}}}|''|}}|1}}.'' subsp. ''{{{subspecies|}}}''}} |
| label5 = [[Variety (botany)|Variety]] | | label5 = [[Variety (botany)|Variety]] | ||
| − | | data5 = {{#if:{{{variety|}}}|''{{str left|{{replace|{{{genus|}}}|''|}}|1}}. {{str left|{{{species}}}|1}}.'' var. ''{{{variety|}}}''}} | + | | data5 = {{#if:{{{variety|}}}|''{{str left|{{replace|{{{genus|}}}|''|}}|1}}. {{str left|{{replace|{{{species}}}|''|}}|1}}.'' var. ''{{{variety|}}}''}} |
| label7 = [[Cultivar group]] | | label7 = [[Cultivar group]] | ||
Revision as of 16:43, 23 February 2015
| Genus | ' |
|---|
- {{{genus}}}
| This is the template sandbox page for Template:Infobox cultivar (diff). |
- redirect Template:Parameter names example
This template creates an infobox for a plant cultivar.
Contents
Usage
Most parameters are optional.
{{Infobox cultivar
| name =
| image =
| image_size =
| image_caption =
| image_alt =
| genus =
| species =
| hybrid =
| subspecies =
| variety =
| group =
| cultivar =
| marketing_names =
| breeder =
| origin =
| subdivision =
}}
Examples
These examples are neither definitive nor exhaustive. Actual uses of the template would include at least one image, where available, and also references for names, origin, etc. Where possible (i.e. sources exist) names should follow the International Code of Nomenclature for Cultivated Plants. For more details and examples, see Wikipedia:WikiProject Tree of Life/Cultivar infobox.
| Cultivar of a species | Template:Pre2 |
| ||||||||||||||
| Cultivar of a named hybrid | Template:Pre2 |
| ||||||||||||||
| Cultivar of an unnamed hybrid, but of known parentage |
Template:Pre2 |
| ||||||||||||||
| Cultivar of an unnamed hybrid of unknown parentage |
Template:Pre2 |
| ||||||||||||||
| Cultivar group | Template:Pre2 |
| ||||||||||||||
| Cultivar within a cultivar group | Template:Pre2 |
| ||||||||||||||
| Cultivar with a marketing name | Template:Pre2 |
| ||||||||||||||
Microformat
Template Data
TemplateData for Infobox cultivar
An infobox for plant cultivars
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | Unknown | optional |
| Image | image | no description | File | suggested |
| Image_size | image_size | no description | Unknown | optional |
| Image_caption | image_caption | no description | Unknown | optional |
| Image_alt | image_alt | no description | Unknown | optional |
| Genus | genus | no description | Unknown | optional |
| Species | species | no description | Unknown | optional |
| Hybrid | hybrid | no description | Unknown | optional |
| Subspecies | subspecies | no description | Unknown | optional |
| Variety | variety | no description | Unknown | optional |
| Group | group | no description | Unknown | optional |
| Cultivar | cultivar | no description | Unknown | optional |
| Marketing_names | marketing_names | no description | Unknown | optional |
| Breeder | breeder | no description | Unknown | optional |
| Origin | origin | no description | Unknown | optional |
| Subdivision | subdivision | no description | Unknown | optional |
| The above documentation is transcluded from Template:Infobox cultivar/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |