Topic on Extension talk:Maps

Map and SMW error on template

4
Ordovicium (talkcontribs)

This template drives me crazy. Having this infobox, where I display in the last table row the map. It works for reading as planned, but if I start the Visual Editor I get a server error. Any idea?

<noinclude>
{{#template_params:Land (property=Land)|Bundesland (property=Foaf:Bundesland)|Maps (label=Maps Location;property=Foaf:GeoLocaction)|Flughöhe (label=Max. Flughöhe in Meter;property=Foaf:Max Flughöhe)}}
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
|-
! Land
| [[Land::{{{Land|}}}]]
|-
! Bundesland
| [[Foaf:Bundesland::{{{Bundesland|}}}]]
|-
! Maps Location
| [[Foaf:GeoLocaction::{{{Maps|}}}]]
|-
! Max. Flughöhe in Meter
| [[Foaf:Max Flughöhe::{{{Flughöhe|}}}]]
|-
! colspan="2" | {{#ask: [[Foaf:GeoLocaction::{{{Maps}}}]] | format=leaflet | ?Foaf:GeoLocaction | template=Google Maps Link}}
|
! 
|{{#ask:[[Foaf:name::{{SUBJECTPAGENAME}}]]|format=list}}
|}

[[Kategorie:Spots]]
</includeonly>

Cavila (talkcontribs)

Just a general commment first. You're using what's called "in-text annotation", using square bracket/colon notation to set values, but it seems that will stop being supported at some point in the future. I don't think that's the issue at hand, but it is recommended to switch to #set notation regardless.

As for the error messsage I don't know. Does it work in VE if you don't include the Leaflet map?

Ordovicium (talkcontribs)

Thanks for the note. I used PageForms to build the template. I need to change manual, but I see your point. Beside this, googlemaps instead of Leaflet doesn't change the error message.

Cavila (talkcontribs)

What I meant is that you need to establish first whether or not your use of the Maps extension is what's causing the issue in VE, which you can do by removing the query entirely and see what happens. But maybe you tried that already.

Reply to "Map and SMW error on template"