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

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

Revision as of 23:54, 20 April 2019

For individual trees.

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=
| 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

Syntax error in JSON.