Template:Infobox tree: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{infobox
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
| bodyclass = vcard
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
| abovestyle = background-color:#2db92d
| aboveclass = fn org
| above    = {{{name|}}}


For ''individual'' trees.
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=264px|maxsize=296px|alt={{{alt|}}}}}
{{Infobox tree
| caption  = {{{image_caption|}}}
|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
}}


== Blank template ==
| image2      = {{#if:{{{map|}}} | {{location map|{{{map}}}
<syntaxhighlight lang="wikitext" style="width: 48em;">
                | border = infobox | float = center
{{Infobox tree
                | alt = {{{map_alt|}}}
| name=
                | width = {{{map_size|}}}
| image=
                | default_width = 264
| image_size=
                | max_width = 296
| alt=
                | caption = {{if empty|{{{map_caption|}}}|{{{location|}}} }}
| image_caption=
                | relief = {{{relief|}}}
| map=
                | label = {{if empty|{{{label|}}}|{{{name|}}} }}
| map_alt=
                | position = {{{label_position|}}}
| map_size=
                | coordinates = {{{coordinates|}}}}}
| map_caption=
          | {{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|}}}|sizedefault=264px|maxsize=296px|alt={{{map_alt|}}}}}
| relief=
          }}
| label_position=
|caption2 = {{#if:{{{map|}}} || {{{map_caption|}}} }}
| 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}} -->
}}
</syntaxhighlight>


== Parameters ==
| image3      = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}|mapframe-marker=park|<!--
; name : Name of the tree
                      -->mapframe-width={{#if:{{{mapsize|}}}|{{min|{{{map_size}}}|296}}|264}}}}
; image : Image of the tree, omitting the [[Help:Link|wikilink brackets]] and the "file:" or "image:"
| caption3    = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{map|}}}{{{map_image|}}}|no|yes}}}}
; 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>


===Mapframe map===
| class1 = nickname
A [[Template:Mapframe|Mapframe]] map is automatically included if:
| label1  = Native name
* There are coordinates specified on the page's Wikidata item
| data1  = {{native name checker|{{{native_name|}}}}}
* 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==
| class2 = biota
{{TemplateData header}}
| label2 = [[List of tree species|Species]]
<templatedata>
| data2  = {{#if:{{{species|}}}|<!--
{
            -->{{#if:{{{binomial|}}}|<!--
"params": {
                --><span class="vernacular">{{{species}}}</span> (<span class="binominal"><i>{{{binomial}}}</i></span>)|<!--
"name": {},
                --><span class="vernacular">{{{species}}}</span>}}|<!--
"image": {"type": "wiki-file-name"},
            -->{{#if:{{{binomial|}}}|<span class="binominal"><i>{{{binomial}}}</i></span>}}}}
"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 ==
| label3 = Location
{{UF-hcard-geo}}
| data3  = {{#if:{{{map|}}}|{{#if:{{{map_caption|}}}|{{{location|}}}}}|{{{location|}}}}}
{{UF-species}}
| class3 = label


== Tracking category ==
| label4 = Coordinates
* {{clc|Pages using infobox tree with unknown parameters}}
| data4  = {{{coordinates|}}}


<includeonly>{{Sandbox other||
| label5 = [[Tree height measurement|Height]]
<!-- Categories go here, and interwikis go in Wikidata -->
| data5  = {{{height|}}}
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
| label6 = [[Tree girth measurement|Girth]]
| data6 = {{{girth|}}}
 
| label7 = Diameter
| data7 = {{{diameter|}}}
 
| label8 = [[Tree volume measurement|Volume of trunk]]
| data8 = {{{volume|}}}
 
| label9 = Date seeded
| data9  = {{{seeded|}}}
 
| label10 = Date felled
| data10  = {{{felled|}}}
 
| label11 = Custodian
| data11  = {{{custodian|}}}
 
| label12 = Website
| data12  = {{{website|}}}
 
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox tree with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox tree]] with unknown parameter "_VALUE_"|ignoreblank=y|name|image|image_size|alt|image_caption|map|map_alt|map_size|map_width|relief|label|label_position|coordinates|map_image|map_caption|native_name|species|binomial|location|height|girth|diameter|volume|seeded|felled|custodian|website | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-frame-width | mapframe-width | mapframe-frame-height | mapframe-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher }}<noinclude>{{documentation}}</noinclude>

Latest revision as of 03:19, 27 May 2023

Native nameTemplate:Native name checker