Difference between revisions of "Template:Infobox tree/doc"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(add example)
imported>Plantdrew
Line 61: Line 61:
 
{
 
{
 
"params": {
 
"params": {
"name": {
+
"name": {},
                        "description": "Name of tree",
+
"image": {},
"type": "string",
+
"image_caption": {},
"required": true
+
"image_size": {},
},
+
"map": {},
"image": {
+
"map_size": {},
                        "description": "Image file name (no File: prefix)",
+
"species": {},
"type": "wiki-file-name",
+
"binomial": {},
"suggested": true
+
"height": {},
},
+
"diameter": {},
                "image_size": {
+
"volume": {},
                        "description": "Width of image (no px required)",
+
"seeded": {}
                        "type": "string"
 
                },
 
"alt": {
 
                        "description": "Alt string for image",
 
"type": "string"
 
},
 
"image_caption": {
 
                        "description": "Caption for image",
 
"type": "string"
 
},
 
                "map": {
 
                        "description": "Location map for display (e.g., 'Indiana' or 'Russia)",
 
                        "type": "string"
 
                },
 
                "map_alt": {
 
                        "description": "Alt string for map",
 
                        "type": "string"
 
                },
 
                "map_size": {
 
                        "description": "Width of map (no px required)",
 
                        "type": "string"
 
                },
 
                "map_caption": {
 
                        "description": "Caption for map",
 
                        "type": "string"
 
                },
 
                "relief": {
 
                        "description": "Use relief map (1 for yes)",
 
                        "type": "string"
 
                },
 
                "label_position": {
 
                        "description": "Position of label near map dot (e.g., 'upper right')",
 
                        "type": "string"
 
                },
 
                "map_image": {
 
                        "description": "If locator map not used, file name for map image",
 
                        "type": "wiki-file-name"
 
                },
 
"native_name": {
 
                        "description": "Native (non-English) name of tree",
 
"type": "string"
 
},
 
"native_name_lang": {
 
                        "description": "ISO 639 language code for non-native name (e.g., 'es' for Spanish)",
 
                        "type": "string"
 
                },
 
"species": {
 
                        "description": "Vernacular name for species",
 
"type": "string",
 
"suggested": true
 
},
 
                "binomial": {
 
                        "description": "Latin name for genus+species",
 
                        "type": "string"
 
                },
 
"location": {
 
                        "description": "Location of tree",
 
"type": "string"
 
},
 
"coordinates": {
 
                        "description": "coordinate template for location",
 
"type": "wiki-template-name",
 
"suggested": true
 
},
 
                "height": {
 
                        "description": "height (use convert template)",
 
                        "type": "wiki-template-name",
 
                },
 
                "diameter": {
 
                        "description": "diameter (1.3m off ground, use convert template)",
 
                        "type": "wiki-template-name",
 
                },
 
                "volume": {
 
                        "description": "volume of trunk (use convert template)",
 
                        "type": "wiki-template-name",
 
                },
 
"seeded": {
 
                        "description": "date of tree germination",
 
"type": "wiki-template-name"
 
},
 
"felled": {
 
                        "description": "date of tree felling",
 
"type": "wiki-template-name"
 
},
 
"custodian": {
 
                        "description": "custodial organization for tree",
 
"type": "string"
 
},
 
"website": {
 
                        "description": "website URL template",
 
                        "type": "wiki-template-name"
 
                },     
 
 
},
 
},
"paramOrder": [
+
"format": "block"
"name",
 
"image",
 
                "image_size",
 
"alt",
 
"image_caption",
 
                "map",
 
                "map_alt",
 
                "map_size",
 
                "map_caption",
 
                "relief",
 
                "label_position",
 
                "map_image",
 
"native_name",
 
"native_name_lang",
 
"species",
 
"binomial",
 
"location",
 
"coordinates",
 
                "height",
 
                "diameter",
 
                "volume",
 
"seeded",
 
"felled",
 
"custodian",
 
"website"
 
]
 
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 21:46, 6 August 2019

For individual trees.

General Sherman
United States - California - Sequoia National Park - General Sherman Tree - Panorama.jpg
A view of the General Sherman, the largest single stem tree in the world
Lua error in Module:Location_map at line 399: Malformed coordinates value.
SpeciesGiant sequoia (Sequoiadendron giganteum)
CoordinatesLua error: callParserFunction: function "#coordinates" was not found.
Height83.8 m (275 ft)
Diameter7.7 m (25 ft)
Volume of trunk1,487 m3 (52,500 cu ft)
Date seeded700BC – 300BC

Blank template

{{Infobox tree
| name=
| image=
| image_size=
| alt=
| image_caption=
| map=
| map_alt=
| map_size=
| map_caption=
| relief=
| label_position=
| map_image=
| native_name=
| native_name_lang=
| species=
| binomial=
| location=
| height=
| girth=
| diameter=
| volume=
| coordinates=<!-- {{coord|LAT|LON|type:landmark_region:XX|display=inline,title}} -->
| seeded=<!-- {{Start date|YYYY|MM|DD|df=y}} if after XXXX -->
| felled=<!-- {{End date|YYYY|MM|DD|df=y}} -->
| custodian=
| website=<!-- {{URL|example.com}}  -->
}}

Microformats

Template:UF-hcard-geo Template:UF-species

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 Infobox tree

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Unknownoptional
Imageimage

no description

Unknownoptional
Image_captionimage_caption

no description

Unknownoptional
Image_sizeimage_size

no description

Unknownoptional
Mapmap

no description

Unknownoptional
Map_sizemap_size

no description

Unknownoptional
Speciesspecies

no description

Unknownoptional
Binomialbinomial

no description

Unknownoptional
Heightheight

no description

Unknownoptional
Diameterdiameter

no description

Unknownoptional
Volumevolume

no description

Unknownoptional
Seededseeded

no description

Unknownoptional