« Geoloc » : différence entre les versions
De Wikimanche
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
<includeonly> | <includeonly> | ||
{| style="float:right; border:1px solid grey; margin-left:15px; margin-top:0px; margin-bottom:15px; margin-right:0px;" | {| style="float:right; border:1px solid grey; margin-left:15px; margin-top:0px; margin-bottom:15px; margin-right:0px;" | ||
|{{coord|{{{latitude}}}|{{{longitude}}} | |{{coord|{{{latitude}}}|{{{longitude}}}|display={{{display|}}}|format=dms long}} | ||
|- | |- | ||
|align="center"| | |align="center"| | ||
{{#display_map:{{{latitude}}}, {{{longitude}}}~'''{{{titre|{{PAGENAME}}}}}''' | {{#display_map:{{{latitude}}}, {{{longitude}}}~'''{{{titre|{{PAGENAME}}}}}''' | ||
|center={{{latitude|}}}, {{{longitude|}}} | | center={{{latitude|}}}, {{{longitude|}}} | ||
|lines={{#if: {{{lines|}}} | {{{lines}}}~ ~{{PAGENAME}}~#FFA500~0.75~8 | }} | | lines={{#if: {{{lines|}}} | {{{lines}}}~ ~{{PAGENAME}}~#FFA500~0.75~8|}} | ||
|polygons={{#if: {{{polygons|}}} | {{{polygons}}}~{{PAGENAME}}~ ~#FFA500~ ~6~#FFA500~0.5~| }} | | polygons={{#if: {{{polygons|}}} | {{{polygons}}}~{{PAGENAME}}~ ~#FFA500~ ~6~#FFA500~0.5~| }} | ||
|circles={{#if: {{{circles|}}} | {{{circles}}}:21~{{PAGENAME}}~{{#if: {{{texte|}}}|{{{texte}}}|}}~#FFA500~ ~6~#FFA500~0.5| }} | | circles={{#if: {{{circles|}}} | {{{circles}}}:21~{{PAGENAME}}~{{#if: {{{texte|}}}|{{{texte}}}|}}~#FFA500~ ~6~#FFA500~0.5| }} | ||
|service=openlayers | | service=openlayers | ||
<!-- | <!-- | ||
|layers=osm | | layers=osm | ||
--> | --> | ||
|zoom={{{zoom|14}}} | | zoom={{{zoom|14}}} | ||
|type={{{type|}}} | | type={{{type|}}} | ||
|width={{{largeur}}} | | width={{{largeur}}} | ||
|height={{{hauteur}}} | | height={{{hauteur}}} | ||
}} | }} | ||
<!-- | <!-- | ||
{{#if: {{{latitude|}}} {{{longitude|}}}|{{#kml.placemark:Point({{{latitude|0}}},{{{longitude|0}}})}} | {{#if: {{{latitude|}}} {{{longitude|}}}|{{#kml.placemark:Point({{{latitude|0}}},{{{longitude|0}}})}} | ||
--> | --> | ||
[[Catégorie:Article géolocalisé]] [[Catégorie:Article géolocalisé sur une carte]] | |||
<!-- | [[Catégorie:Article géolocalisé]] | ||
[[Catégorie:Article géolocalisé sur une carte]] | |||
<!-- | |||
|}} | |}} | ||
--> | --> | ||
<small>''Localisation {{#if: {{{localisation|}}}|{{{localisation}}}|{{PAGENAME}}}}''</small> | <small>''Localisation {{#if: {{{localisation|}}}|{{{localisation}}}|{{PAGENAME}}}}''</small> | ||
|} | |}& | ||
amp; | |||
lt;/includeonly> | |||
<noinclude><br clear="all" /> | <noinclude><br clear="all" /> | ||
; Syntaxe | ; Syntaxe | ||
Pour insérer dans une page ce modèle, il suffit de copier coller le code ci-dessous, en complétant les champs ('''javascript doit être activé''') : | Pour insérer dans une page ce modèle, il suffit de copier coller le code ci-dessous, en complétant les champs ('''javascript doit être activé''') : | ||
Ligne 49 : | Ligne 60 : | ||
}} | }} | ||
</pre> | </pre> | ||
'''Exemple''' | '''Exemple''' | ||
<!--{| class="wikitable" width="260px" height="380" align="right" style="border:1px solid grey;" | <!-- {| class="wikitable" width="260px" height="380" align="right" style="border:1px solid grey;" | ||
|align="center"|--> | |align="center"| --> | ||
{{Geoloc | {{Geoloc | ||
|largeur =300 | |largeur =300 | ||
Ligne 62 : | Ligne 72 : | ||
|localisation =du centre de la [[Manche]] | |localisation =du centre de la [[Manche]] | ||
|icône = | |icône = | ||
|icônes = | |icônes = | ||
|zoom =8 | |zoom =8 | ||
|type =terrain | |type =terrain | ||
Ligne 71 : | Ligne 81 : | ||
|unités =meters | |unités =meters | ||
|layers=traffic, bicycling}} | |layers=traffic, bicycling}} | ||
<!--|}--> | <!-- |} --> | ||
<pre style=overflow:auto> | <pre style=overflow:auto> | ||
{{Geoloc | {{Geoloc | ||
Ligne 93 : | Ligne 103 : | ||
[[Catégorie:Modèle pour commune de la Manche| ]] | [[Catégorie:Modèle pour commune de la Manche| ]] | ||
[[Catégorie:Article géolocalisé| ]] | [[Catégorie:Article géolocalisé| ]] | ||
</noinclude> | </noinclude> |