Andoza:Maplink-road/doc
Qiyofa
Ushbu sahifa Maplink-road andozasining hujjat sahifasidir. Bu yerda andozaning asosiy sahifasidan joy olmagan foydalanish qoidalari, turkumlar va boshqa foydali maʼlumotlar joylashtiriladi. |
Asosiy sahifa: Template:Maplink/doc
This template was created to provide a reduced parameter set and standardized appearance for Template:Maplink when used in Template:Infobox road. Namely the parameters frame = yes | frame-width = 290 | frame-height = 240 | frame-align = center | plain = yes | type = line | stroke-width = 2 | stroke-color = #cc0000
are assumed. By use of the Template wrapper module, these default parameters can be modified to suit specific needs, and additional parameters that are valid in Maplink can be included, such as title
, description
, stroke-color
, etc.
Parameters
[manbasini tahrirlash]Name | Position | Notes | |
---|---|---|---|
zoom | 1 | forwards to {{maplink|zoom=\d+}}
|
These parameters are intentionally in the same order that they appear at the end of OpenStreetMap urls, to ease conversion of anchors such as #map=13/30.2795/-97.7515 to the form {{maplink|13|30.2795|-97.7515}} . Some way to extract all three values from a single parameter with slashes would be good too.
|
lat | 2 | forwards to {{maplink|frame-lat=\-?\d+(?:\.\d+)?}}
| |
long | 3 | forwards to {{maplink|frame-long=\-?\d+(?:\.\d+)?}}
| |
id | 4 | the Wikidata id is optional as the template can determine this from the page on which it is being used. |