Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Infobox mapframe/doc/parameters

From Wikipedia, the free encyclopedia
<Template:Infobox mapframe |doc
Template documentation[view] [edit] [history] [purge]

Parameter documentation for{{Infobox mapframe}}, and infoboxes usingModule:Infobox mapframe (auto function).

Usage

[edit]

In thedocumentation page of the target template (could be the infobox), add{{Infobox mapframe/doc/parameters}}.

Parameter options are:
  • Set|noprefix=yes to show without the "mapframe-" prefix – for use onTemplate:Infobox mapframe/doc.
  • Set alternate default values by passing in parameters of the formparameter-name=value e.g.|mapframe-marker=building.
  • Set|deprecated=yes to show deprecated parameters

Example

[edit]
{{Infobox museum/doc}} has:
{{Infobox mapframe/doc/parameters|mapframe-marker={{kbd|museum}}}}
Shows documentation text:
mapframe-marker – Marker symbol to use for coordinates; see [...] for options. Default: museum
Corresponding with its template code:
| image4 ={{#invoke:Infobox mapframe| ...|mapframe-marker=museum}}

Parameters

[edit]
Parameter list
<!-- Infobox mapframe: all parameters, no aliases (29) --><!-- Basic parameters: -->| mapframe = | mapframe-caption = | mapframe-custom = | qid = | mapframe-coordinates = | mapframe-wikidata =<!-- Customise features displayed: -->| mapframe-shape = | mapframe-point = | mapframe-line = | mapframe-geomask = | mapframe-switcher =<!-- Other optional parameters: -->| mapframe-frame-width = | mapframe-frame-height = | mapframe-line-stroke-color = | mapframe-line-stroke-width = | mapframe-shape-fill = | mapframe-shape-fill-opacity = | mapframe-shape-stroke-color = | mapframe-shape-stroke-width = | mapframe-stroke-color = | mapframe-stroke-width = | mapframe-marker = | mapframe-marker-color = | mapframe-geomask-stroke-color = | 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-type =
<!-- Infobox mapframe: parameters, including aliases (40) --><!-- Basic parameters: -->| mapframe = | mapframe-caption = | mapframe-custom = | id = | mapframe-id = | qid = | mapframe-coordinates = | mapframe-coord = | coordinates = | coord = | mapframe-wikidata =<!-- Customise features displayed: -->| mapframe-shape = | mapframe-point = | mapframe-line = | mapframe-geomask = | mapframe-switcher =<!-- Other optional parameters: -->| mapframe-frame-width = | mapframe-width = | mapframe-frame-height = | mapframe-height = | mapframe-line-stroke-color = | mapframe-line-stroke-width = | mapframe-shape-fill = | mapframe-shape-fill-opacity = | mapframe-shape-stroke-color = | mapframe-shape-stroke-width = | mapframe-stroke-color = | mapframe-stroke-colour = | mapframe-stroke-width = | mapframe-marker = | mapframe-marker-color = | mapframe-marker-colour = | 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-type =

Deprecated

[edit]
Deprecated parameters
  • mapframe-frame-lat ormapframe-frame-latitude – Alternate latitude coordinate for initial placement of map; default is derived from item coordinates
  • mapframe-frame-long ormapframe-frame-longitude – Alternate longitude coordinate for initial placement of map; default is derived from item coordinates
The abovedocumentation istranscluded fromTemplate:Infobox mapframe/doc/parameters/doc.(edit |history)
Editors can experiment in this template's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
  • Basic parameters:
    • mapframe – Specify yes or no to show or hide the map, overriding the default.Default: no
      • InternalonByDefault parameter:not specified
    • mapframe-caption – Caption for the map.Default:blank (or if|mapframe-geomask= is set, "Location ingeomask'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, the subsequent mapframe parameters will be ignored.Default:not specified
    • mapframe-id orid orqid – Id (Q-number) of Wikidata item to use.Default:item for current page
    • mapframe-coordinates ormapframe-coord orcoordinates orcoord – Coordinates to use, instead of any on Wikidata. Use the{{Coord}} template, e.g.|coord={{Coord|12.34|N|56.78|E}}.Default:coordinates from Wikidatad:Property:P625
    • mapframe-wikidata – Set toyes to show shape/line features from the wikidata item, if any, when|coord= is set.Default:not specified
  • Customise which features are displayed:
    • mapframe-point – Turn off display of point feature by setting tonone. Force point marker to be displayed by setting toon.Default:not specified
    • mapframe-shape – Turn off display of shape feature by setting tonone. 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 tonone. 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.P17 forcountry(P17),P131 forlocated in the administrative territorial entity(P131)).Default:not specified
    • mapframe-switcher – set toauto orgeomasks orzooms to enableTemplate:Switcher-style switching between multiple mapframes.Default:not specified
      • auto – switch geomasks found inlocation(P276) andlocated 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 themapframe-geomask parameter
      • zooms – 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
  • Other optional parameters:
    • mapframe-frame-width ormapframe-width – Frame width.Default: 270
    • mapframe-frame-height ormapframe-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 ormapframe-stroke-colour – Color of line features, and outlines of shape features.Default: #ff0000
      • mapframe-line-stroke-color ormapframe-line-stroke-colour – Color of line features.Default: #ff0000
      • mapframe-shape-stroke-color ormapframe-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; seemw:Help:Extension:Kartographer/Icons for options.Default:not specified (i.e. blank)
      • Can also be set toblank to override any default marker symbol
    • mapframe-marker-color ormapframe-marker-colour – Background color for the marker.Default: #5E74F3
    • mapframe-geomask-stroke-color ormapframe-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_kmor mapframe-length_mior mapframe-area_km2or 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 ormapframe-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
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Infobox_mapframe/doc/parameters&oldid=1318077169"

[8]ページ先頭

©2009-2025 Movatter.jp