A Wiki in the Desert
Log in

Difference between revisions of "Template:MaatMaps"

From A Wiki in the Desert
Line 10: Line 10:
  
 
<code>
 
<code>
<nowiki>{{Template:MaatMaps}}</nowiki>
+
<nowiki>This template is intended to be used to allow a single reference source for map objects.
 +
 
 +
By default the generated map is 512x1024 pixels, at zoom level 2
 +
 
 +
The reason this template is required is that passing templates into extensions requires use of the #tag: function. In practice this template can probably be simplified somewhat
 +
 
 +
Parameters:
 +
 
 +
*lat
 +
*lon
 +
*zoom
 +
*width
 +
*height
 +
*mouseoverpopup
 +
*tale
 +
*contentonly - The important part of this template. If contentonly=yes then only the first parameter (the map data lines) will be returned from the template. This allows condmaps to be nested so that multiple maps can be merged
 +
 
 +
==Some Marker Options:==
 +
 
 +
{| border="1" class="wikitable sortable"
 +
!width="150px" | Shape
 +
!width="100px" | Color
 +
!width="100px" | Icon
 +
!width="100px" | Image
 +
|-
 +
| Dot  || Rd  ||  || https://static.atitd.wiki/maps/markers/markerDotRd.png
 +
|-
 +
| Cir  || Rd  ||  || https://static.atitd.wiki/maps/markers/markerCirRd.png
 +
|-
 +
| Cir  || Vi  || A || https://static.atitd.wiki/maps/markers/markerCirViA.png
 +
|-
 +
| Cir  || Or  || 1 || https://static.atitd.wiki/maps/markers/markerCirOr1.png
 +
|-
 +
| Cir  || Bl  || diamond || https://static.atitd.wiki/maps/markers/markerBldiamond.png
 +
|-
 +
| Cir  || Pu  || star || https://static.atitd.wiki/maps/markers/markerCirPustar.png
 +
|-
 +
| Cir  || Lb  || Cir || https://static.atitd.wiki/maps/markers/markerCirLbcircle.png
 +
|-
 +
| Cir  || Br  || fish || https://static.atitd.wiki/maps/markers/markerBrfish.png
 +
|-
 +
| Cir  || Gr  || pollution || https://static.atitd.wiki/maps/markers/markerCirGrpollution.png
 +
|-
 +
| Cir  || (blank) || triangle || https://static.atitd.wiki/maps/markers/markerCirtriangle.png
 +
|-
 +
| Dp  || Ye || (blank) || https://static.atitd.wiki/maps/markers/markerDPYe.png
 +
|-
 +
| Pin  || Wh || Z || https://static.atitd.wiki/maps/markers/markerPinWhZ.png
 +
|-
 +
| GH  || Pk || (blank) || https://static.atitd.wiki/maps/markers/markerGHPk.png
 +
|-
 +
| Mp  || Ti (element) || (blank) || https://static.atitd.wiki/maps/markers/markerMpTi.png
 +
|-
 +
| altar2  || (blank) || (blank) || https://static.atitd.wiki/maps/markers/markeraltar2.png
 +
|-
 +
|}
 +
 
 +
----
 +
 
 +
For a whole lot of other options, go to: https://static.atitd.wiki/maps/markers/</nowiki>
 
</code>
 
</code>
  
 
[[Category: Template]]{{DEFAULTSORT:B}}
 
[[Category: Template]]{{DEFAULTSORT:B}}
 
</noinclude>
 
</noinclude>

Revision as of 14:35, 30 August 2019



Utilisation

This template is intended to be used to allow a single reference source for map objects. By default the generated map is 512x1024 pixels, at zoom level 2 The reason this template is required is that passing templates into extensions requires use of the #tag: function. In practice this template can probably be simplified somewhat Parameters: *lat *lon *zoom *width *height *mouseoverpopup *tale *contentonly - The important part of this template. If contentonly=yes then only the first parameter (the map data lines) will be returned from the template. This allows condmaps to be nested so that multiple maps can be merged ==Some Marker Options:== {| border="1" class="wikitable sortable" !width="150px" | Shape !width="100px" | Color !width="100px" | Icon !width="100px" | Image |- | Dot || Rd || || https://static.atitd.wiki/maps/markers/markerDotRd.png |- | Cir || Rd || || https://static.atitd.wiki/maps/markers/markerCirRd.png |- | Cir || Vi || A || https://static.atitd.wiki/maps/markers/markerCirViA.png |- | Cir || Or || 1 || https://static.atitd.wiki/maps/markers/markerCirOr1.png |- | Cir || Bl || diamond || https://static.atitd.wiki/maps/markers/markerBldiamond.png |- | Cir || Pu || star || https://static.atitd.wiki/maps/markers/markerCirPustar.png |- | Cir || Lb || Cir || https://static.atitd.wiki/maps/markers/markerCirLbcircle.png |- | Cir || Br || fish || https://static.atitd.wiki/maps/markers/markerBrfish.png |- | Cir || Gr || pollution || https://static.atitd.wiki/maps/markers/markerCirGrpollution.png |- | Cir || (blank) || triangle || https://static.atitd.wiki/maps/markers/markerCirtriangle.png |- | Dp || Ye || (blank) || https://static.atitd.wiki/maps/markers/markerDPYe.png |- | Pin || Wh || Z || https://static.atitd.wiki/maps/markers/markerPinWhZ.png |- | GH || Pk || (blank) || https://static.atitd.wiki/maps/markers/markerGHPk.png |- | Mp || Ti (element) || (blank) || https://static.atitd.wiki/maps/markers/markerMpTi.png |- | altar2 || (blank) || (blank) || https://static.atitd.wiki/maps/markers/markeraltar2.png |- |} ---- For a whole lot of other options, go to: https://static.atitd.wiki/maps/markers/