The Wiki for Tale 8 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Template:CondMap"

From A Wiki in the Desert
Jump to navigation Jump to search
m (Testing - trying to get the map to default to the correct layers when another map has been transcluded)
m (replaced: https://wiki.desert-nomad.com/maps/markers/ → https://static.atitd.wiki/maps/markers/)
 
(6 intermediate revisions by 2 users not shown)
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}}}|iconsize="32x32"|showregion="yes"|showposition="yes"|mouseoverpopup={{{mouseoverpopup|yes}}}|lat={{{lat|1024}}}|lon={{{lon|0}}}|zoom={{{zoom|2}}}|width={{{width|512}}}|height={{{height|1024}}}|tale={{{tale|8}}}|maxzoom={{{maxzoom|8}}}|icons="maps/markers/marker{label}.png"}}
dlayer overlay
 
mlayer markers
 
|iconsize="32x32"|showregion="yes"|showposition="yes"|mouseoverpopup={{{mouseoverpopup|yes}}}|lat={{{lat|1024}}}|lon={{{lon|0}}}|zoom={{{zoom|2}}}|width={{{width|512}}}|height={{{height|1024}}}|tale={{{tale|8}}}|icons="maps/markers/marker{label}.png"}}
 
 
This map uses the [[Template:CondMap|CondMap]] template, if this map imports data from other maps please edit those. Please see [[Maps]] for further details and links to all raw data pages}}</includeonly><noinclude>
 
This map uses the [[Template:CondMap|CondMap]] template, if this map imports data from other maps please edit those. Please see [[Maps]] for further details and links to all raw data pages}}</includeonly><noinclude>
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.
+
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
 
By default the generated map is 512x1024 pixels, at zoom level 2
Line 20: Line 17:
 
*width
 
*width
 
*height
 
*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
 
*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
  
Line 30: Line 29:
 
!width="100px" | Image
 
!width="100px" | Image
 
|-
 
|-
| Dot  || Rd  ||  || [[Image:markerDotRd.png]]
+
| Dot  || Rd  ||  || https://static.atitd.wiki/maps/markers/markerDotRd.png
 
|-
 
|-
| Cir  || Rd  ||  || [[Image:markerCirRd.png]]
+
| Cir  || Rd  ||  || https://static.atitd.wiki/maps/markers/markerCirRd.png
 
|-
 
|-
| Cir  || Vi  || A || [[Image:markerCirViA.png]]
+
| Cir  || Vi  || A || https://static.atitd.wiki/maps/markers/markerCirViA.png
 
|-
 
|-
| Cir  || Or  || 1 || [[Image:MarkerCirOr1.png‎]]
+
| Cir  || Or  || 1 || https://static.atitd.wiki/maps/markers/markerCirOr1.png
 
|-
 
|-
| Cir  || Bl  || diamond || [[Image:MarkerBldiamond.png]]
+
| Cir  || Bl  || diamond || https://static.atitd.wiki/maps/markers/markerBldiamond.png
 
|-
 
|-
| Cir  || Pu  || star || [[Image:markerCirPustar.png]]
+
| Cir  || Pu  || star || https://static.atitd.wiki/maps/markers/markerCirPustar.png
 
|-
 
|-
| Cir  || Lb  || Cir || [[Image:MarkerCirLbcircle.png]]
+
| Cir  || Lb  || Cir || https://static.atitd.wiki/maps/markers/markerCirLbcircle.png
 
|-
 
|-
| Cir  || Br  || fish || [[Image:MarkerBrfish.png]]
+
| Cir  || Br  || fish || https://static.atitd.wiki/maps/markers/markerBrfish.png
 
|-
 
|-
| Cir  || Gr  || pollution || [[Image:MarkerCirGrpollution.png]]
+
| Cir  || Gr  || pollution || https://static.atitd.wiki/maps/markers/markerCirGrpollution.png
 
|-
 
|-
| Cir  || (blank) || triangle || [[Image:MarkerCirtriangle.png]]
+
| Cir  || (blank) || triangle || https://static.atitd.wiki/maps/markers/markerCirtriangle.png
 
|-
 
|-
| Dp  || Ye || (blank) || [[Image:MarkerDPYe.png]]
+
| Dp  || Ye || (blank) || https://static.atitd.wiki/maps/markers/markerDPYe.png
 
|-
 
|-
| Pin  || Wh || Z || [[Image:MarkerPinWhZ.png]]
+
| Pin  || Wh || Z || https://static.atitd.wiki/maps/markers/markerPinWhZ.png
 
|-
 
|-
| GH  || Pk || (blank) || [[Image:MarkerGHPk.png]]
+
| GH  || Pk || (blank) || https://static.atitd.wiki/maps/markers/markerGHPk.png
 
|-
 
|-
| Mp  || Ti (element) || (blank) || [[Image:markerMpTi.png]]
+
| Mp  || Ti (element) || (blank) || https://static.atitd.wiki/maps/markers/markerMpTi.png
 
|-
 
|-
| altar2  || (blank) || (blank) || [[Image:markeraltar2.png]]
+
| altar2  || (blank) || (blank) || https://static.atitd.wiki/maps/markers/markeraltar2.png
 
|-
 
|-
 
|}
 
|}
 
 
  
 
----
 
----
  
For a whole lot of other options, go to: http://www.atitd.org/wiki/tale6/images/markers/
+
For a whole lot of other options, go to: https://static.atitd.wiki/maps/markers/
 
</noinclude>
 
</noinclude>

Latest revision as of 03:32, 26 September 2018

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:

Shape Color Icon Image
Dot Rd markerDotRd.png
Cir Rd markerCirRd.png
Cir Vi A markerCirViA.png
Cir Or 1 markerCirOr1.png
Cir Bl diamond markerBldiamond.png
Cir Pu star markerCirPustar.png
Cir Lb Cir markerCirLbcircle.png
Cir Br fish markerBrfish.png
Cir Gr pollution markerCirGrpollution.png
Cir (blank) triangle markerCirtriangle.png
Dp Ye (blank) markerDPYe.png
Pin Wh Z markerPinWhZ.png
GH Pk (blank) markerGHPk.png
Mp Ti (element) (blank) markerMpTi.png
altar2 (blank) (blank) markeraltar2.png

For a whole lot of other options, go to: https://static.atitd.wiki/maps/markers/