Topic on Extension talk:Maps

Heinrich krebs (talkcontribs)

Hi, I want users to use the Mapeditor to create shapes and stuff on the map, then store them in a property.

To show the map, I want to use {{#show: with format=template so that I get all the lines back in a way that the {{#display_map: Parser understands, but it doesn't seem to work - generating the syntax-error [[smw::off].

How come ?

Jeroen De Dauw (talkcontribs)

Can you paste the template?

Heinrich krebs (talkcontribs)

Here you mean. Sure (got the wiki working after again an update error)... So.

This is the "upper" template, doing the semantic search of either "Artikel" or the current page and gives all matching properties to "KarteZurSeite-Zeile". As was suggested, I tried to get rid of the [[SMW::on]] code by using #replace:.

<includeonly>{{#display_map:
{{#replace:{{#replace:{{#show:{{{Artikel|{{PAGENAME}}}}}|?KartenInfo|mainlabel=-|link=none|headers=hide|format=template|template=KarteZurSeite-Zeile}}|[[SMW::off]]|}}|[[SMW::on]]|}}
}}</includeonly><noinclude>[[category:System]]Diese Vorlage soll alle Attribute des Names „[[:Attribut:KartenInfo|KartenInfo]]” auf einer Karte anzeigen.</noinclude>

This is the "lower" Template. Basically adding a | (Pipe) before the property and return it.

<noinclude>[[category:System]] Diese Hilfs-Vorlage ist für „[[Vorlage:KarteZurSeite]]”.</noinclude>|{{{1}}}
Revansx (talkcontribs)

did you ever get a solution for this? -Rich (@Revansx)

Reply to "smw::off ?"