Template:Infobox tree/doc: Difference between revisions

Content deleted Content added
website description
documenting module param i added
 
(32 intermediate revisions by 14 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
}}
 
== UsageBlank template ==
<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 individual tree
; name : Name of the tree
; image :
; image : Image of the tree, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:"
; alt :
; image_size : Specify a pixel width for the image.<br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>).
; image_caption :
; alt : [[WP:ALT|Alt text]] for image, for people who can't see the image
; native_name : Name in non-English language
; image_caption : Image caption
; native_name_lang : ISO code
; 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]].
; species : The vernacular name of the species
; map_alt : [[WP:ALT|Alt text]] for image.
; binominal : The scientific name of the species
; map_size : Specify a pixel width for the map image.<br /> Example: <code>map_size=230</code> (not <code>map_size=230px</code>).
; ___location : Place
; map_caption : Text displayed below the map image. <br /> Example: FooTown
; coordinates : Use {{tl|coord}}
; 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]].
; seeded : use {{tl|Start date}} if after XXXX
; 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.
; felled : use {{tl|End date}}
; map_image : Image of a map of the tree, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:"
; custodian : The owner or manager of the site
; 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}}
; website : An official or definitive record of the tree
; 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 Blank map===
A [[Template:Mapframe|Mapframe]] map is automatically included if:
 
* There are coordinates specified on the page's Wikidata item
<pre><nowiki>
* It has not been turned off by setting {{para|mapframe|no}}
{{Infobox tree
* Either another type of map has not been set, or {{para|mapframe|yes}} is set
| name =
The following parameters are available for adjusting the mapframe map:
| image =
{{Infobox mapframe/doc/parameters
| alt =
|mapframe={{kbd|no}} if a pushpin map or map image is specified, {{kbd|yes}} otherwise
| image_caption =
|mapframe-marker={{kbd|museum}}
| native_name =
| native_name_lang =
| species =
| binominal =
| ___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}} or {{URL|example.com|description}} -->
}}
 
</nowiki></pre>
==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 ==
<includeonly>
* {{clc|Pages using infobox tree with unknown parameters}}
<!-- Categories go here, and interwikis go in Wikidata -->
 
</includeonly>{{Sandbox other||
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Templates that add a tracking category]]
}}</includeonly>