Template:Infobox tree
| Infobox tree |
|---|
| This template uses Lua: |
Usage
[edit]| {{{name}}} | |
|---|---|
| [[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]] {{{image_caption}}} | |
| [[File:{{{map_image}}}|{{{map_size}}}]] | |
| Native name | {{{native_name}}} Error {{native name checker}}: parameter value is malformed (help) |
| Species | {{{species}}} ({{{binomial}}}) |
| Location | {{{location}}} |
| Coordinates | 36°35′N 118°45′W / 36.58°N 118.75°W |
| Height | {{{height}}} |
| Girth | {{{girth}}} |
| Diameter | {{{diameter}}} |
| {{{volume}}} | |
| Date seeded | {{{seeded}}} |
| Date felled | {{{felled}}} |
| Custodian | {{{custodian}}} |
| Website | {{{website}}} |
| {{{module}}} | |
{{Infobox tree
| name =
| image =
| image_size =
| alt =
| image_caption =
| pushpin_map =
| pushpin_caption =
| pushpin_relief =
| 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 -->
}}
Parameters
[edit]- name
- Name of the tree
- image
- Image of the tree, omitting the wikilink brackets and the "file:" or "image:"
- image_size
- Specify a pixel width for the image.
Example:map_size=230(notmap_size=230px). - alt
- Alt text for image, for people who can't see the image
- image_caption
- Image caption
- pushpin_map
- The name of the map template used to construct location map, see Template:Location map#Available map templates
Example: USA Alabama. - map_image
- Image of a map of the tree, omitting the wikilink brackets and the "file:" or "image:"
- native_name
- Name of the tree in the local language, if different from name – use {{native name}} or, for multiple names, use {{native name list}}
- species
- The common name of the tree's species
Example: "Giant sequoia" - binomial
- The scientific name of the tree's species. Please also include italic wiki markup and wikilink brackets
Example:''[[Sequoiadendron giganteum]]'' - location
- Location of the tree
- height
- The tree height measurement. Use {{Convert}} to list both metres and feet
Example:{{convert|10|m|ft|abbr=on}} - girth
- The tree girth measurement
Example:{{convert|10|m|ft|abbr=on}} - diameter
- The diameter
Example:{{convert|10|m|ft|abbr=on}} - volume
- The tree volume measurement. Use {{Convert}} to list both cubic metres and cubic feet
Example:{{Convert|10|m3|ft3|abbr=on}} - coordinates
- Latitude and longitude. Use {{Coord}}; see that template's documentation for usage information.
- seeded
- Date seeded. Use {{Start date}} if after XXXX
- felled
- Date felled, if applicable
- custodian
- Custodian of the tree
- website
- Official or primary website. Use the template {{URL}}.
Example: {{URL|example.org}} - module
- Other templates can be embedded here.
Pushpin map
[edit]Below are the parameters used by Module:Location map to produce the pushpin map in this Infobox. These parameters are available for editors to set in articles that use this infobox.
| Parameter | Description | Default |
|---|---|---|
|pushpin_map= |
The map(s) to display. For example, specifying England will use the values for England in Module:Location map/data/England.Multiple maps can be shown by providing a list of map names separated by #. For multiple maps, the first is shown by default. A reader can select the others with radio buttons. |
N/A |
|pushpin_caption= |
The text of a caption to be displayed below the map. If not provided a default caption will be generated. Multiple captions can be shown when separated by ## (that's two). |
Location within MAPNAME |
|pushpin_relief= |
0/false/off will cause the template to display the map defined as image (generally not a relief map). 1/true/on will cause the template to display the map defined as image1 (generally a relief map). Any non-zero numeric value such as 2 or 3 will display image2 or image3, if those images are defined. Any other non-empty value will cause display of image1. See the example at Location map+/relief. |
0 |
|pushpin_label= |
The text of the label to display next to the identifying mark; a wikilink can be used. You can enclose the label inside of {{nowrap}} if you want to make sure that it stays on a single line. | N/A |
|pushpin_label_size= |
The font size to use for the label, given as a percentage of the normal font size (<100=smaller, >100=larger); the default size is 90. Do not include %. For example, use |pushpin_label_size=80, not |pushpin_label_size=80%. If set to 0, the label is only displayed when the user hovers over the mark. |
90 |
|pushpin_label_position= |
The position of the label relative to the identifying mark; valid values are left, right, top, bottom and none. 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. When |pushpin_label_position=none, any defined label will not be displayed with the mark, but it will be used to create the default caption. |
N/A |
|pushpin_mark= |
The name of an image file to display as the identifying mark; the default is Red pog.svg |
Red pog.svg |
|pushpin_mark_size= |
The size of the identifying mark in pixels. Do not include px | 8 |
|pushpin_alt= |
Alt text for map; used by screen readers. See WP:ALT. | N/A |
|pushpin_background= |
The background color to use for the label; see Web colors. The default is no background color, which shows the map image behind the label. | N/A |
|pushpin_map_size= |
Determines the width of the map in pixels, overriding any default values; do not include px. | N/A |
Mapframe map
[edit]A Mapframe map is automatically included if:
- There are coordinates specified on the page's Wikidata item
- It has not been turned off by setting
|mapframe=no - Either another type of map has not been set, or
|mapframe=yesis set
The following parameters are available for adjusting the mapframe map:
- Basic {{Infobox mapframe}} parameters:
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no if a pushpin map or map image is specified, yes otherwise
- Internal onByDefault parameter: not specified
- mapframe-coordinates or mapframe-coord or coordinates or coord – Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template, e.g.
|coord=. Default: coordinates from Wikidata d:Property:P625{{Coord|12.34|N|56.78|E}} - mapframe-caption – Caption for the map. Default: blank (or if
|mapframe-geomask=is set, "Location in geomask's label") - mapframe-custom – Use a custom map instead of the automatic mapframe. Specify either a
{{maplink}}template, or another template that generates a mapframe map, or an image name. If used, most mapframe parameters will be ignored. Default: not specified - mapframe-id or id or qid – Id (Q-number) of Wikidata item to use. Default: item for current page
- mapframe-wikidata – Set to
yesto show all shape/line features from OpenStreetMap. Default: not specified
- mapframe – Specify yes or no to show or hide the map, overriding the default. Default: no if a pushpin map or map image is specified, yes otherwise
- Customise which features are displayed:
- mapframe-point – Turn off display of point feature by setting to
none. Force point marker to be displayed by setting toon. Default: not specified - mapframe-shape – Turn off display of shape feature by setting to
none. Force display of shape by setting toon. Use an inverse shape (geomask) instead of a regular shape by setting toinverse. Default: not specified - mapframe-line – Turn off display of line feature by setting to
none. Force display of line by setting toon. Default: not specified - mapframe-geomask – Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g.
P17for country (P17),P131for located in the administrative territorial entity (P131)). Default: not specified - mapframe-switcher – set to
autoorgeomasksorzoomsto enable Template:Switcher-style switching between multiple mapframes. Default: not specifiedauto– switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country.geomasks– switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameterzooms– switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of3), "zoomed out" is1, and "zoomed midway" is the average
- mapframe-point – Turn off display of point feature by setting to
- Other optional parameters:
- mapframe-frame-width or mapframe-width – Frame width. Default: 270
- mapframe-frame-height or mapframe-height – Frame height. Default: 200
- mapframe-shape-fill – Color used to fill shape features. Default: #606060
- mapframe-shape-fill-opacity – Opacity level of shape fill, a number between 0 and 1. Default: 0.1
- mapframe-stroke-color or mapframe-stroke-colour – Color of line features, and outlines of shape features. Default: #ff0000
- mapframe-line-stroke-color or mapframe-line-stroke-colour – Color of line features. Default: #ff0000
- mapframe-shape-stroke-color or mapframe-shape-stroke-colour – Color of outlines of shape features. Default: #ff0000
- mapframe-stroke-width – Width of line features, and outlines of shape features. Default: 2
- mapframe-shape-stroke-width – Width of outlines of shape features. Default: 2
- mapframe-line-stroke-width – Width of line features. Default: 5
- mapframe-marker – Marker symbol to use for coordinates; see mw:Help:Extension:Kartographer/Icons for options. Default: museum
- Can also be set to
blankto override any default marker symbol
- Can also be set to
- mapframe-marker-color or mapframe-marker-colour – Background color for the marker. Default: #5E74F3
- mapframe-geomask-stroke-color or mapframe-geomask-stroke-colour – Color of outline of geomask shape. Default: #555555
- mapframe-geomask-stroke-width – Width of outline of geomask shape. Default: 1
- mapframe-geomask-fill – Color used to fill outside geomask features. Default: #606060
- mapframe-geomask-fill-opacity – Opacity level of fill outside geomask features, a number between 0 and 1. Default: 0.25
- mapframe-zoom – Set the zoom level, from "1" (map of earth) to "18" (maximum zoom in), to be used if the zoom level cannot be determined automatically from object length or area. Default: 10
- mapframe-length_km or mapframe-length_mi or mapframe-area_km2 or mapframe-area_mi2 – Determine zoom level by passing in object's length (in kilometres or miles) or area (in square kilometres or square miles). Default: not specified / not specified / not specified / not specified
- mapframe-frame-coordinates or mapframe-frame-coord – Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}. Default: derived from item coordinates
- mapframe-type – Set the type of the object, with the same usage as {{coord}}. Default: not specified
- mapframe-population – Set the population, useful with type="city", for {{Infobox dim}}. Default: not specified
Template data
[edit]TemplateData documentation used by VisualEditor and other tools | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See a monthly parameter usage report for Template:Infobox tree in articles based on its TemplateData.
TemplateData for Infobox tree No description.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||