|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
SMW::on / SMW::offWhat'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.
- Rowan -- Morality is usually taught by the immoral. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Semediawiki-user mailing list Semediawiki-user@... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
|
|
Re: SMW::on / SMW::offRowan 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. -- =S Page ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Semediawiki-user mailing list Semediawiki-user@... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
|
|
Re: SMW::on / SMW::offOn Wed, Jun 18, 2008 at 2:11 AM, S Page <info@...> wrote:
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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Semediawiki-user mailing list Semediawiki-user@... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
|
|
Re: SMW::on / SMW::offOn Donnerstag, 19. Juni 2008, Rowan Rodrik van der Molen wrote:
> On Wed, Jun 18, 2008 at 2:11 AM, S Page <info@...> 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. contain SMW syntax that is then printed into a page where the query was stated. The on/off prevent such pulled-in annotations to be read again for the current page, while still preserving all their effects on formatting (e.g. tooltips that are created for annotated values). Other solutions might be possible, and thus "on" and "off" may vanish in some future (which is why they are not documented as features). In general, any output that SMW combines with SMW::on and off may contain arbitrary wiki code, so reusing it in restricted ways may cause problems in any case. -- Markus > > - Rowan -- Markus Krötzsch Semantic MediaWiki http://semantic-mediawiki.org http://korrekt.org markus@... ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Semediawiki-user mailing list Semediawiki-user@... https://lists.sourceforge.net/lists/listinfo/semediawiki-user |
| Free Forum Powered by Nabble | Forum Help |