On Wed, Jun 18, 2008 at 2:11 AM, S Page <info@skierpage.com> wrote:
Rowan Rodrik van der Molen wrote:
What's the story with the [[SMW::on]] and [[SMW::off occurances in the output? I would like to turn this off to make a template work which doesn't like this.

They're internal magic variables that turn SMW's parsing of semantic annotations on and off.

They are normally not visible in MediaWiki output, SMW's parsing hook should see them, obey them, and remove them.  What versions and what other extensions are you using (check Special;Version)?  Can you reproduce in a testpage on http://sandbox.semantic-mediawiki.org ?

A couple of things that might cause it:  Are you nesting queries in another tag or template?  If you're using <ask> syntax, does  {{#ask:}} syntax make a difference, or vice-versa?

Which reminds me, in the thread "Importing a page ignoring the annotations" no developer replied whether we should document these magic variables.  They're very useful when you're transcluding bits of wiki text and don't want the parent page to pick up the properties.

Ah. That explains. I'm using an {{#ask:}} template whithin a {{#tag:gallery}} template. Because this didn't work I put the {{#ask:}} within a {{#tag:pre}} template to find out what {{#ask:}} was actually returning.

  - Rowan