Difference between revisions of "Template:CondMap"
m (Testing - trying to get the map to default to the correct layers when another map has been transcluded) |
m (Try again - put the | in the wrong place) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq: {{{contentonly}}}|yes|{{{1}}} | + | <includeonly>{{#ifeq: {{{contentonly}}}|yes|{{{1}}} |
dlayer overlay | dlayer overlay | ||
mlayer markers | mlayer markers | ||
− | {{#tag:emap|{{{1}}} | + | |{{#tag:emap|{{{1}}} |
dlayer overlay | dlayer overlay | ||
mlayer markers | mlayer markers |
Revision as of 20:24, 1 March 2018
This template is intended to be used to allow a single reference source for map objects. This template is still being actively worked on ans is as yet undocumented. If in doubt, don't use it yet.
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
- 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:
Shape | Color | Icon | Image |
---|---|---|---|
Dot | Rd | ||
Cir | Rd | ||
Cir | Vi | A | File:MarkerCirViA.png |
Cir | Or | 1 | File:MarkerCirOr1.png |
Cir | Bl | diamond | File:MarkerBldiamond.png |
Cir | Pu | star | File:MarkerCirPustar.png |
Cir | Lb | Cir | |
Cir | Br | fish | |
Cir | Gr | pollution | File:MarkerCirGrpollution.png |
Cir | (blank) | triangle | File:MarkerCirtriangle.png |
Dp | Ye | (blank) | File:MarkerDPYe.png |
Pin | Wh | Z | File:MarkerPinWhZ.png |
GH | Pk | (blank) | File:MarkerGHPk.png |
Mp | Ti (element) | (blank) | File:MarkerMpTi.png |
altar2 | (blank) | (blank) | File:Markeraltar2.png |
For a whole lot of other options, go to: http://www.atitd.org/wiki/tale6/images/markers/