Template:SaintMapSimple and Template:SaintMapSimple/sandbox: Difference between pages

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
No edit summary
 
No edit summary
 
Line 1: Line 1:
{{#display_map:
{{#cargo_compound_query:
{{#cargo_query:
tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,SaintBirthCoordinates,SaintBirthPlace=Birth location;icon=Birth Location icon.svg
|tables=Saints
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,SaintDeathCoordinates,DeathPlace=Death location;icon=Death Location icon.svg
|fields=SaintBirthCoordinates__full=Coordinates,CONCAT('Birth location: ', SaintBirthPlace)=Label
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,NotableCoordinates1,NotableLabel1=NotableLabel1;icon=Notable Location 1 icon.svg
|where=SaintName='{{PAGENAME}}' AND SaintBirthCoordinates__full IS NOT NULL AND SaintBirthPlace IS NOT NULL
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,NotableCoordinates2,NotableLabel2=NotableLabel2;icon=Notable Location 2 icon.svg
|format=template
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,NotableCoordinates3,NotableLabel3=NotableLabel3;icon=Notable Location 3 icon.svg
|template=SaintMapPoint
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,NotableCoordinates4,NotableLabel4=NotableLabel4;icon=Notable Location 4 icon.svg
|default=
|tables=Saints;where=SaintName='{{PAGENAME}}';fields=_pageName,NotableCoordinates5,NotableLabel5=NotableLabel5;icon=Notable Location 5 icon.svg
|icon=Birth Location icon.svg
}};{{#cargo_query:
|tables=Saints
|fields=SaintDeathCoordinates__full=Coordinates,CONCAT('Death location: ', DeathPlace)=Label
|where=SaintName='{{PAGENAME}}' AND SaintDeathCoordinates__full IS NOT NULL AND DeathPlace IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}};{{#cargo_query:
|tables=Saints
|fields=NotableCoordinates1__full=Coordinates,CONCAT(NotableLabel1, ' (', NotableAddress1, ')')=Label
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates1__full IS NOT NULL AND NotableLabel1 IS NOT NULL AND NotableAddress1 IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}};{{#cargo_query:
|tables=Saints
|fields=NotableCoordinates2__full=Coordinates,CONCAT(NotableLabel2, ' (', NotableAddress2, ')')=Label
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates2__full IS NOT NULL AND NotableLabel2 IS NOT NULL AND NotableAddress2 IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}};{{#cargo_query:
|tables=Saints
|fields=NotableCoordinates3__full=Coordinates,CONCAT(NotableLabel3, ' (', NotableAddress3, ')')=Label
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates3__full IS NOT NULL AND NotableLabel3 IS NOT NULL AND NotableAddress3 IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}};{{#cargo_query:
|tables=Saints
|fields=NotableCoordinates4__full=Coordinates,CONCAT(NotableLabel4, ' (', NotableAddress4, ')')=Label
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates4__full IS NOT NULL AND NotableLabel4 IS NOT NULL AND NotableAddress4 IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}};{{#cargo_query:
|tables=Saints
|fields=NotableCoordinates5__full=Coordinates,CONCAT(NotableLabel5, ' (', NotableAddress5, ')')=Label
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates5__full IS NOT NULL AND NotableLabel5 IS NOT NULL AND NotableAddress5 IS NOT NULL
|format=template
|template=SaintMapPoint
|default=
}}
|width=600
|height=400
|zoom=3
|format=leaflet
|format=leaflet
|cluster=no
|cluster=no
}}
}}


=== Legend ===
=== Birth and Death Legend ===
* [[File:Birth Location icon.svg|20px|alt=Birth location icon]] Birth location: {{#cargo_query:
* [[File:Birth Location icon.svg|20px|alt=Birth location icon]] Birth location
|tables=Saints
* [[File:Death Location icon.svg|20px|alt=Death location icon]] Death location
|fields=SaintBirthPlace
* [[File:Notable Location 1 icon.svg|20px|alt=Notable location 1 icon]] Notable location 1
|where=SaintName='{{PAGENAME}}' AND SaintBirthCoordinates__full IS NOT NULL AND SaintBirthPlace IS NOT NULL
* [[File:Notable Location 2 icon.svg|20px|alt=Notable location 2 icon]] Notable location 2
|default=None
* [[File:Notable Location 3 icon.svg|20px|alt=Notable location 3 icon]] Notable location 3
}}
* [[File:Notable Location 4 icon.svg|20px|alt=Notable location 4 icon]] Notable location 4
* [[File:Death Location icon.svg|20px|alt=Death location icon]] Death location: {{#cargo_query:
* [[File:Notable Location 5 icon.svg|20px|alt=Notable location 5 icon]] Notable location 5
|tables=Saints
|fields=DeathPlace
|where=SaintName='{{PAGENAME}}' AND SaintDeathCoordinates__full IS NOT NULL AND DeathPlace IS NOT NULL
|default=None
}}
* [[File:Notable Location 1 icon.svg|20px|alt=Notable location 1 icon]] Notable location: {{#cargo_query:
|tables=Saints
|fields=CONCAT(NotableLabel1, ' (', NotableAddress1, ')')
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates1__full IS NOT NULL AND NotableLabel1 IS NOT NULL AND NotableAddress1 IS NOT NULL
|default=
}}
* [[File:Notable Location 2 icon.svg|20px|alt=Notable location 2 icon]] Notable location: {{#cargo_query:
|tables=Saints
|fields=CONCAT(NotableLabel2, ' (', NotableAddress2, ')')
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates2__full IS NOT NULL AND NotableLabel2 IS NOT NULL AND NotableAddress2 IS NOT NULL
|default=
}}
* [[File:Notable Location 3 icon.svg|20px|alt=Notable location 3 icon]] Notable location: {{#cargo_query:
|tables=Saints
|fields=CONCAT(NotableLabel3, ' (', NotableAddress3, ')')
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates3__full IS NOT NULL AND NotableLabel3 IS NOT NULL AND NotableAddress3 IS NOT NULL
|default=
}}
* [[File:Notable Location 4 icon.svg|20px|alt=Notable location 4 icon]] Notable location: {{#cargo_query:
|tables=Saints
|fields=CONCAT(NotableLabel4, ' (', NotableAddress4, ')')
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates4__full IS NOT NULL AND NotableLabel4 IS NOT NULL AND NotableAddress4 IS NOT NULL
|default=
}}
* [[File:Notable Location 5 icon.svg|20px|alt=Notable location 5 icon]] Notable location: {{#cargo_query:
|tables=Saints
|fields=CONCAT(NotableLabel5, ' (', NotableAddress5, ')')
|where=SaintName='{{PAGENAME}}' AND NotableCoordinates5__full IS NOT NULL AND NotableLabel5 IS NOT NULL AND NotableAddress5 IS NOT NULL
|default=
}}<noinclude>{{Doc}}</noinclude>