Content deleted Content added
url template can't be used with description |
Grapesurgeon (talk | contribs) documenting module param i added |
||
(31 intermediate revisions by 13 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
For ''individual'' trees.
{{Infobox tree
|name = General Sherman
|image = United States - California - Sequoia National Park - General Sherman Tree - Panorama.jpg
|image_caption = A view of the General Sherman, the largest single stem tree in the world
|image_size = 128
|map = California
|map_size = 160
|relief = 1
|species = Giant sequoia
|binomial = ''[[Sequoiadendron giganteum]]''
|coordinates = {{coord|36|34|54|N|118|45|05.5|W|region:US_type:landmark|display=inline|format=dms}}
|height = {{Convert|83.8|m|ft|abbr=on}}
|diameter = {{Convert|7.7|m|ft|abbr=on}}
|volume = {{Convert|1487|m3|ft3|abbr=on}}
|seeded = 700–300 BC
}}
==
<syntaxhighlight lang="wikitext" style="width: 48em;">
{{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}} or {{native name list}} -->
| 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}} -->
| 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
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}}
}}
==TemplateData==
{{TemplateData header}}
<templatedata>
{
"params": {
"name": {},
"image": {"type": "wiki-file-name"},
"image_caption": {},
"image_size": {},
"map": {},
"map_size": {},
"species": {},
"binomial": {},
"height": {},
"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": {
"example": "{{End date|YYYY|MM|DD|df=y}}"
},
"custodian": {},
"website": {
"example": "{{URL|example.com}}"
},
"map_alt": {},
"map_caption": {},
"alt": {},
"native_name": {},
"___location": {},
"girth": {},
"label": {},
"label_position": {},
"map_image": {}
},
"format": "block"
}
</templatedata>
== Microformats ==
Line 46 ⟶ 140:
{{UF-species}}
== Tracking category ==
* {{clc|Pages using infobox tree with unknown parameters}}
<
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Templates that add a tracking category]]
}}</includeonly>
|