Difference between revisions of "PsyCrit:Code/lib/smw"
(smw.let.echo() - not tested) |
(forgot to echo the SMW code) |
||
Line 19: | Line 19: | ||
<let name=out append copy=val /> | <let name=out append copy=val /> | ||
<let name=out append>}}</let> | <let name=out append>}}</let> | ||
<echo><get name=out /></echo> | |||
</func> | </func> |
Latest revision as of 01:59, 8 August 2012
smw.let.echo(key, val)
Action: sets a SMW property and echoes the value This is useful as an alternative for the [[key::val]] syntax, which can't deal with brackets in the value. <func name="smw.let.echo" key val>
{{#set:=}}
</func>
smw.let.var(key, val)
Action: sets a SMW property and a W3TPL variable. This allows the edited value to be used in a preview, rather than only looking up the last saved value. <func name="smw.let.var" key val>
{{#set:=}}
</func>