Template:Infobox tree/doc: Difference between revisions

Content deleted Content added
m add links to module used and tracking category
documenting module param i added
 
(10 intermediate revisions by 5 users not shown)
Line 22:
 
== Blank template ==
<presyntaxhighlight lang="wikitext" style="width: 48em;">
{{Infobox tree
| name=
Line 36:
| label_position=
| map_image=
| native_name=<!-- {{native name}} or {{native name list}} -->
| native_name_lang=
| species=
| binomial=
Line 50 ⟶ 49:
| custodian=
| website=<!-- {{URL|example.com}} -->
| module=<!-- Other templates can be embedded here -->
}}
</syntaxhighlight>
 
== Parameters ==
; name : Name of the tree
; image : Image of the tree, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:"
; image_size : Specify a pixel width for the image.<br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>).
; alt : [[WP:ALT|Alt text]] for image, for people who can't see the image
; image_caption : Image caption
; map : The name of the map template used to construct ___location map, see [[Template:Location map#Available map templates]] <br /> Example: [[Module:Location map/data/USA Alabama|USA Alabama]].
; map_alt : [[WP:ALT|Alt text]] for image.
; map_size : Specify a pixel width for the map image.<br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>).
; map_caption : Text displayed below the map image. <br /> Example: FooTown
; relief : Set this to <code>y</code> or any non-blank value to use a [[relief mapping (computer graphics)|relief map]] image provided by the selected ___location map template (if a relief map is available). For additional information, see [[Template:Location map#Relief parameter]].
; label_position : The position of the label on the pushpin ___location map relative to the pushpin mark. Valid values are left, right, top and bottom. This defaults to either left or right, depending on the coordinates of the marker and its position relative to the right border of the map image.
; map_image : Image of a map of the tree, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:"
; native_name : Name of the tree in the local language, if different from '''name''' – use {{tl|native name}} or, for multiple names, use {{tl|native name list}}
; species : The common name of the [[List of trees and shrubs by taxonomic family|tree's species]]<br /> Example: "Giant sequoia"
; binomial : The scientific name of the tree's species. Please also include ''italic'' wiki markup and wikilink brackets<br /> Example: <code><nowiki>''[[Sequoiadendron giganteum]]''</nowiki></code>
; ___location : Location of the tree
; height : The [[tree height measurement]]. Use {{Tl|Convert}} to list both metres and feet<br /> Example: <code><nowiki>{{convert|10|m|ft|abbr=on}}</nowiki></code>
; girth : The [[tree girth measurement]]<br/>Example: <code><nowiki>{{convert|10|m|ft|abbr=on}}</nowiki></code>
; diameter : The diameter<br /> Example: <code><nowiki>{{convert|10|m|ft|abbr=on}}</nowiki></code>
; volume : The [[tree volume measurement]]. Use {{Tl|Convert}} to list both cubic metres and cubic feet<br /> Example: <code><nowiki>{{Convert|10|m3|ft3|abbr=on}}</nowiki></code>
; coordinates : Latitude and longitude. Use {{Tl|Coord}}; see that template's documentation for usage information.
; seeded : Date seeded. Use {{Tl|Start date}} if after XXXX
; felled : Date felled, if applicable
; custodian : Custodian of the tree
; website : Official or primary website. Use the template {{tl|URL}}. <br /> Example: <nowiki>{{URL|example.org}}</nowiki>
; module : Other templates can be embedded here.
 
===Mapframe map===
A [[Template:Mapframe|Mapframe]] map is automatically included if:
* There are coordinates specified on the page's Wikidata item
* It has not been turned off by setting {{para|mapframe|no}}
* Either another type of map has not been set, or {{para|mapframe|yes}} is set
The following parameters are available for adjusting the mapframe map:
{{Infobox mapframe/doc/parameters
|mapframe={{kbd|no}} if a pushpin map or map image is specified, {{kbd|yes}} otherwise
|mapframe-marker={{kbd|museum}}
}}
</pre>
 
==TemplateData==
Line 59 ⟶ 98:
"params": {
"name": {},
"image": {"type": "wiki-file-name"},
"image_caption": {},
"image_size": {},
Line 69 ⟶ 108:
"diameter": {},
"volume": {},
"seeded": {},
"example": "{{Start date|YYYY|MM|DD|df=y}}"
},
"relief": {},
"coordinates": {},
"example": "{{coord|LAT|LON|type:landmark_region:XX|display=inline,title}}"
"felled": {},
},
"felled": {},
"example": "{{End date|YYYY|MM|DD|df=y}}"
},
"custodian": {},
"website": {},
"example": "{{URL|example.com}}"
},
"map_alt": {},
"map_caption": {},
"alt": {},
"native_name": {},
"native_name_lang": {},
"___location": {},
"girth": {},
"label": {},
"label_position": {},
"map_image": {}
},
"format": "block"
Line 94 ⟶ 143:
* {{clc|Pages using infobox tree with unknown parameters}}
 
<includeonly>{{Sandbox other||
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Templates that add a tracking category]]
}}</includeonly>