Template:Layer

From OpenStreetMap Wiki
Jump to: navigation, search
{{{name}}}
None yet.jpg
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

Common template

{{Layer
|name=Sample Layer
|author=Author1;[[User:Author2|Author2]]
|screenshot=NameToFile.ext
|screenshot_caption=City, Country
|slippy_web=[[https://example.com/linkToSlippyMap example.com]]
}}

Complete template

{{Layer
|name=
|discontinued=
|alt_name=
|author=
|screenshot=
|screenshot_caption=
|based_on=
|slippy_web=
|usage_policy=
|tiles_languages=
|tiles_languagesurl=
|tiles_license=
|style_web=
|style=license=
|description=
|repo=
|bugtracker_web=
|notlayer=
}}

Parameters

No description.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Template languagelang

no description

Default
empty
Example
en
Auto value
empty
Stringsuggested
Layer discontinued?discontinued

no description

Default
empty
Example
empty
Auto value
empty
Booleanoptional
Namename

Official name of the layer, otherwise most common one

Default
empty
Example
empty
Auto value
empty
Stringrequired
Alternative namesalt_name

Other names under which this layer is known. Multiple values shall be seperated by semicolons (;)

Default
empty
Example
Name 1;Name 2;Name 3
Auto value
empty
Stringoptional
Screenshotscreenshot

no description

Default
empty
Example
empty
Auto value
empty
Filesuggested
Screenshot captionscreenshot_caption

Text displayed below the screenshot. Normally location of screenshot

Default
empty
Example
Paris, France
Auto value
empty
Stringsuggested
Authorauthor

Name of the author or a link to their OSM-wiki user page

Default
empty
Example
empty
Auto value
empty
Stringsuggested
Based onbased_on

Template on which this layer is based on. Multiple values shall be seperated by semicolons (;)

Default
empty
Example
[[Layer 1]];[[Layer 2]];Layer 3
Auto value
empty
Stringoptional
Slippy_webslippy_web

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Usage policyusage_policy

Usage policy of slippy map, tile or style

Default
empty
Example
[https://operations.osmfoundation.org/policies/tiles/ operations.osmfoundation.org/policies/tiles/]
Auto value
empty
Stringoptional
Tiles_webtiles_web

In most cases shall slippy_web be used

Default
empty
Example
empty
Auto value
empty
Stringdeprecated
Tiles_languagestiles_languages

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Tiles_languagesurltiles_languagesurl

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Tiles_licensetiles_license

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Style_webstyle_web

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Style_licensestyle_license

no description

Default
empty
Example
empty
Auto value
empty
Stringoptional
Source coderepo

Link to source code of the layer. If applicable style_web shall be preferred

Default
empty
Example
empty
Auto value
empty
Stringoptional
Descriptiondescription

Description of the layer. For example purpose or highlighted elements

Default
empty
Example
empty
Auto value
empty
Stringsuggested
Not layer?notlayer

If the article doesn't describe alayer and shouldn't be tagged as such

Default
empty
Example
empty
Auto value
empty
Booleanoptional
URL of bug trackerbugtracker_web

no description

Default
empty
Example
empty
Auto value
empty
URLoptional

Categories

Category:Slippy map
Added to every article, if slippy_web is set
Category:Tiles layer
Added to every article which includes this template. Can be disabled by setting notlayer = yes
Category:Maintenance/Template:Layer
Added, if a deprecated parameter is used