Share to:

Predloga:Infopolje mapframe/dok

This template generates a mapframe map, suitable for infoboxes, with minimal user input. This template only works with single features (points, lines, or shapes); use {{maplink}} if more advanced options, such as displaying multiple features, are required.

Note that a point feature marker is displayed at the item's coordinates, unless the item has an oznaka relacije OpenStreetMap (P402) specified.

Usage

Note: When in mainspace, parameter |id= is not required (except to use a different page's data)

Basic

{{Infopolje mapframe}}

When used without parameters, or with only |id=, the map will display shape/line features, if they are available at OpenStreet Map.

Basic usage examples

Point feature (Wikidata coordinates):

{{Infopolje mapframe |id=Q7270550}}

Zemljevid Line feature:

{{Infopolje mapframe |id=Q1318331}}

Zemljevid Shape feature:

{{Infopolje mapframe |id=Q61}}

Zemljevid

Using specified coordinates instead of Wikidata

Point feature only, no shapes or lines:

{{Infopolje mapframe |coord=}}

Point feature and shape/line feature if available:

{{Infopolje mapframe |wikidata=yes |coord=}}

Specify coordinates using the {{Coord}} templates, e.g. |coord={{Coord|32.1|S|116.2|E}}

  • If |coord= is specified, then a point marker will always been shown and shape/line features will be shown only if the Wikidata item has an oznaka relacije OpenStreetMap (P402) or a geografska oblika (P3896).
  • If |coord= is specified and |wikidata=yes is used, then the point marker and any shape/line features will always be shown (if available on OpenStreetMap).
Specified coordinates examples

Point feature (with coordinates specified, no shape/line feature from Wikidata item):

{{Infopolje mapframe |coord={{coord|31|56|S|115|58|E}} }}

Zemljevid Point feature (with coordinates specified, along with shape/line feature from Wikidata item):

{{Infopolje mapframe |wikidata=yes |coord={{coord|31|56|S|115|58|E}} }}

Zemljevid

Customizing which features are displayed

Inverse shape

{{Infopolje mapframe |shape=inverse}}

Replace the shape with an inverse-shape (geomask) by setting |shape=inverse

Inverse shape example
{{Infopolje mapframe |id=Q61 |shape=inverse}}

Zemljevid

Zemljevid

Turn point marker on or off

Force point marker to be displayed:

{{Infopolje mapframe |point=on}}

Prevent point marker from being displayed:

{{Infopolje mapframe |point=none}}

Turn shape feature off

Prevent shape feature from being displayed:

{{Infopolje mapframe |shape=none}}

Turn line feature off

Prevent line feature from being displayed:

{{Infopolje mapframe |line=none}}
{{Infopolje mapframe |geomask=}}

Set |geomask= to a Wikidata item id (Q-number), or property id (P-number) such as država (P17)

Geomask examples

Use the item linked from the država (P17) statement as a geomask:

{{Infopolje mapframe |id=Q3239281 |geomask=P17}}

Zemljevid Use the item Hessen (Q1199) as a geomask:

{{Infopolje mapframe |id=Q3239281 |geomask=Q1199}}

Zemljevid

Setting the zoom level

The zoom level of the map can always be set by an editor via |zoom=. If not explicitly set, the zoom is determined automatically:

  • If the Wikidata item has an oznaka relacije OpenStreetMap (P402) or geografska oblika (P3896), then the center and zoom of the image is set to nicely frame the shape/line.
  • If the Wikidata item has an raven povečave OpenStreetMap (P6592), it will be used as the zoom level
  • Any of the following parameters will specify a zoom level:
    • |length_km=
    • |length_mi=
    • |width_km=
    • |width_mi=
    • |area_km2=
    • |area_mi2=
    • |area_ha=
    • |area_acre=
  • The zoom will be set by specifying the |type= of the object, with the same usage as {{coord}}. For example, |type=city. In the case of a city, the population can determine the zoom by specifying |population=.
Zoom examples

Set zoom manually

{{Infopolje mapframe|coord={{coord|37|45|N|119|32|W}}|zoom=8}}

Zemljevid

Determine zoom from object length in kilometres or miles

{{Infopolje mapframe |id=Q1318331 |length_km=5.6}}
{{Infopolje mapframe |id=Q1318331 |length_mi=3.5}}

Zemljevid

Determine zoom from object area in square kilometres or square miles

{{Infopolje mapframe |id=Q100 |area_km2=232.14}}
{{Infopolje mapframe |id=Q100 |area_mi2=89.63}}

Zemljevid

Parameters

prikaži · pogovor · uredi · zgodovina

  • Osnovni parametri {{Infopolje mapframe}}:
    • id – Id (Q-number) predmeta v Wikipodatkih, ki naj se uporabi. Privzeto: item for current page
    • wikidata – Nastavite na yes za prikaz vseh oblik/črt iz OpenStreetMap. Privzeto: not specified
  • Prilagodite, katere funkcije naj se prikažejo:
    • point – Izklopite prikaz točkovne funkcije tako, da jo nastavite na none. Prisilite prikaz točkovne oznake tako, da jo nastavite na on. Privzeto: not specified
    • shape – Izklopite prikaz oblikovne funkcije tako, da jo nastavite na none. Prisilite prikaz oblike tako, da jo nastavite na on. Uporabite inverzno obliko (geomask) namesto običajnega lika tako, da ga nastavite na inverse. Privzeto: not specified
    • line – Izklopite prikaz črtne funkcije tako, da jo nastavite na none. Prisilite prikaz črte tako, da jo nastavite na on. Privzeto: not specified
    • geomask – Predmet v Wikipodatkih, ki služi kot geomaska (območje izven določene meje se osenči temneje). Lahko navedete specifičen predmet v Wikipodatkih (Q-number) ali pa lastnost, ki določa ta predmet (e.g. P17 za država (P17), P131 za je v (P131)). Privzeto: not specified
    • switcher – Nastavite na auto ali geomasks ali zooms, da omogočite preklapljanje med več okvirji mapframe v Predloga:Switcher-slogu. Default: not specified
      • auto – Samodejno preklaplja med geomaskami, ki so vpisane v lastnostih kraj (P276) in je v (P131) na strani predmeta v Wikipodatkih (iskanje poteka rekurzivno; npr. najprej mesto predmeta, nato zvezna država tega mesta in na koncu država te zvezne države).
      • geomasks – Preklaplja med geomaskami, ki so navedene kot z vejico ločen seznam predmetov v Wikipodatkih (Q-numbers) v parametru geomask
      • zooms – Preklaplja med stopnjami približanja "zoomed in"/"zoomed midway"/"zoomed out". Pri tem je "zoomed in" privzeta raven (z najmanj 3), "zoomed out" ima vrednost 1, "zoomed midway" pa predstavlja povprečje obeh vrednosti.
  • Ostali izbirni parametri:
    • frame-width ali width – Širina okvirja. Privzeto: 270
    • frame-height ali height – Višina okvirja. Privzeto: 200
    • shape-fill – Barva, uporabljena za polnjenje oblikovnih funkcij Default: #606060
    • shape-fill-opacity – Raven prosojnosti polnila lika, število med 0 in 1 Privzeto: 0.1
    • stroke-color ali stroke-colour – Barva črtnih funkcij in obrob oblikovnih funkcij. Privzeto: #ff0000
      • line-stroke-color ali line-stroke-colour – Barva črtnih funkcij. Privzeto: #ff0000
      • shape-stroke-color ali shape-stroke-colour – Barva obrob oblikovnih funkcij. Privzeto: #ff0000
    • stroke-width – Debelina črtnih funkcij in obrob oblikovnih funkcij. Privzeto: 2
      • shape-stroke-width – Debelina obrob oblikovnih funkcij. Privzeto: 2
      • line-stroke-width – Debelina črtnih funkcij. Default: 5
    • marker – Simbol označbe, ki se uporabi za koordinate; za možnosti glejte mw:Help:Extension:Kartographer/Icons. Privzeto: not specified (i.e. blank)
      • Lahko se nastavi tudi na blank, da se prepiše kateri koli privzeti simbol označbe.
    • marker-color ali marker-colour – Barva ozadja za označbo. Privzeto: #5E74F3
    • geomask-stroke-color ali geomask-stroke-colour – Barva obrobe za lik geomaske. Privzeto: #555555
    • geomask-stroke-width – Debelina obrobe za lik geomaske. Privzeto: 1
    • geomask-fill – Barva, uporabljena za polnjenje območja izven funkcij geomaske. Privzeto: #606060
    • geomask-fill-opacity – Raven prosojnosti polnila izven funkcij geomaske, število med 0 in 1. Privzeto: 0.25
    • zoom – Nastavitev ravni približanja, od "1" (zemljevid Zemlje) do "18" (največja povečava), ki se uporabi, če ravni približanja ni mogoče samodejno določiti iz dolžine ali površine objekta. Privzeto: 10
    • length_km or length_mi or area_km2 or area_mi2 – Določanje ravni približanja s posredovanjem dolžine objekta (v kilometrih ali miljah) ali površine (v kvadratnih kilometrih ali kvadratnih miljah). Default: not specified / not specified / not specified / not specified
    • frame-coordinates ali frame-coord – Alternativne koordinate zemljepisne širine in dolžine za začetno postavitev zemljevida z uporabo predloge {{coord}}. Privzeto: izpeljano iz koordinat predmeta
    • type – Nastavitev vrste objekta z enako uporabo kot pri predlogi {{coord}}. Privzeto: not specified
    • population – Nastavitev števila prebivalcev, uporabno pri type="city", za predlogo {{Infobox dim}}. Privzeto: not specified

  • Zastareli/nezaželeni parametri
    • frame-lat ali frame-latitude – Alternativna koordinata zemljepisne širine za začetno postavitev zemljevida; privzeto je izpeljana iz koordinat predmeta
    • frame-long ali frame-longitude – Alternativna koordinata zemljepisne dolžine za začetno postavitev zemljevida; privzeto je izpeljana iz koordinat predmeta

Template Data

To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za Infopolje mapframe

TemplateData documentation used by VisualEditor and other tools

Ni opisa.

Parametri predloge[Urejanje podatkov predloge]

ParameterOpisVrstaStanje
Show mapframe mapmapframe

Specify yes or no to show or hide the map, overriding the default

Privzeto
no
Zgled
yes
Nizpredlagano
Mapframe captioncaption

Caption for the map. If geomask is set, then the default is "Location in <<geomask's label>>"

Nizneobvezno
Custom mapframecustom

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, other mapframe parameters will be ignored.

Predloganeobvezno
Mapframe Wikidata itemid id qid

Id (Q-number) of Wikidata item to use.

Privzeto
(item for current page)
Nizneobvezno
Mapframe coordinates coordinates coord coordinates coord

Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.

Privzeto
(coordinates from Wikidata)
Zgled
{{Coord|12.34|N|56.78|E}}
Predloganeobvezno
Mapframe shapes from Wikidatawikidata

et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter

Zgled
yes
Nizneobvezno
Mapframe point featurepoint

Override display of mapframe point feature. Turn off display of point feature by setting to "none". Force point marker to be displayed by setting to "on"

Nizneobvezno
Mapframe shape featureshape

Override display of mapframe shape feature. Turn off by setting to "none". Use an inverse shape (geomask) instead of a regular shape by setting to "inverse"

Nizneobvezno
Mapframe widthframe-width width

Frame width in pixels

Privzeto
270
Številkaneobvezno
Mapframe heightframe-height height

Frame height in pixels

Privzeto
200
Številkaneobvezno
Mapframe shape fillshape-fill

Color used to fill shape features

Privzeto
#606060
Nizneobvezno
Mapframe shape fill opacityshape-fill-opacity

Opacity level of shape fill, a number between 0 and 1

Privzeto
0.1
Številkaneobvezno
Mapframe stroke colorstroke-color stroke-colour

Color of line features, and outlines of shape features

Privzeto
#ff0000
Nizneobvezno
Mapframe stroke widthstroke-width

Width of line features, and outlines of shape features

Privzeto
2
Številkaneobvezno
Mapframe line stroke colorline-stroke-color line-stroke-colour

Color of line features

Privzeto
#ff0000
Nizneobvezno
Mapframe line stroke widthline-stroke-width

Width of line features

Privzeto
5
Številkaneobvezno
Mapframe shape stroke colorshape-stroke-color shape-stroke-colour

Color of outlines of shape features

Privzeto
#ff0000
Nizneobvezno
Mapframe shape stroke widthshape-stroke-width

Width of outlines of shape features

Privzeto
2
Številkaneobvezno
Mapframe markermarker

Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options

Zgled
museum
Nizneobvezno
Mapframe marker colormarker-color marker-colour

Background color for the marker

Privzeto
#5E74F3
Nizneobvezno
Mapframe geomaskgeomask

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 for country, or P131 for located in the administrative territorial entity)

Zgled
Q100
Ime stranineobvezno
Mapframe geomask stroke colorgeomask-stroke-color geomask-stroke-colour

Color of outline of geomask shape

Privzeto
#555555
Nizneobvezno
Mapframe geomask stroke widthgeomask-stroke-width

Width of outline of geomask shape

Privzeto
1
Številkaneobvezno
Mapframe geomask fillgeomask-fill

Color used to fill outside geomask features

Privzeto
#606060
Nizneobvezno
Mapframe geomask fill opacitygeomask-fill-opacity

Opacity level of fill outside geomask features, a number between 0 and 1

Privzeto
0.25
Številkaneobvezno
Mapframe zoomzoom

Set the zoom level, from "1" to "18", to used if the zoom level cannot be determined automatically from object length or area. NB: default may also be set by Kartographer automatically based on the features rendered.

Privzeto
10
Zgled
12
Številkaneobvezno
Mapframe length (km)length_km

Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Številkaneobvezno
Mapframe length (mi)length_mi

Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Številkaneobvezno
Mapframe area (km^2)area_km2

Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Številkaneobvezno
Mapframe area (mi^2)area_mi2

Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area

Številkaneobvezno
Mapframe frame coordinatesframe-coordinates frame-coord

Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}

Zgled
{{Coord|12.35|N|56.71|E}}
Predloganeobvezno
Mapframe switcherswitcher

Set to "auto" or "geomasks" or "zooms" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – 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. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the geomask parameter. IF SET TO zooms – switch between "zoomed in"/"zoomed midway"/"zoomed out", where "zoomed in" is the default zoom (with a minimum of 3), "zoomed out" is 1, and "zoomed midway" is the average.

Nizneobvezno
Mapframe line featureline

Turn off display of line feature by setting to none. Force display of line by setting to on.

Nizneobvezno
Mapframe typetype

Type of the object rendered in the mapframe, like with {{coord}}.

Nizneobvezno

Tracking category


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya