Template:SaintMap: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "<noinclude> This template generates a map for a saint's page, displaying birth, death, and notable locations from the Saints table. Usage: {{SaintMap}} </noinclude><includeonly> {{#vardefine:mapdata| {{#cargo_query: |tables=Saints |fields=SaintBirthCoordinates__full=Coordinates,SaintBirthPlace=Label |where=SaintName='{{PAGENAME}}' AND SaintBirthCoordinates__full IS NOT NULL AND SaintBirthPlace IS NOT NULL |format=template |template=SaintMapPoint |default= }}|{{#cargo_que...")
 
No edit summary
Line 13: Line 13:
}}|{{#cargo_query:
}}|{{#cargo_query:
|tables=Saints
|tables=Saints
|fields=CONCAT(CAST((CAST(SUBSTRING_INDEX(SaintDeathCoordinates__full,',',1) AS DECIMAL(10,6)) + 0.0001) AS STRING),',',SUBSTRING_INDEX(SaintDeathCoordinates__full,',',-1))=Coordinates,DeathPlace=Label
|fields=CONCAT(STRING((NUMBER(SUBSTRING(SaintDeathCoordinates__full,1,LOCATE(',',SaintDeathCoordinates__full)-1)) + 0.0001)),',',SUBSTRING(SaintDeathCoordinates__full,LOCATE(',',SaintDeathCoordinates__full)+1))=Coordinates,DeathPlace=Label
|where=SaintName='{{PAGENAME}}' AND SaintDeathCoordinates__full IS NOT NULL AND DeathPlace IS NOT NULL
|where=SaintName='{{PAGENAME}}' AND SaintDeathCoordinates__full IS NOT NULL AND DeathPlace IS NOT NULL
|format=template
|format=template
Line 53: Line 53:
|zoom=3
|zoom=3
|format=leaflet
|format=leaflet
|markercluster=off
}}
}}
</includeonly>
</includeonly>

Navigation menu