Difference between revisions of "Issuepedia:W3TPL/lib/smw"

From Issuepedia
Jump to navigation Jump to search
(smw.let.echo())
 
m (tidied the documentation a little)
 
Line 1: Line 1:
* function '''smw.let.echo'''(key, val) -- sets SMW properties and echoes the value
+
==smw.let.echo(key, val)==
** This is useful as an alternative for the <nowiki>[[key::val]]</nowiki> syntax, which doesn't handle brackets in the value.
+
'''Action''': sets SMW properties and echoes the value. This is useful as an alternative for the <nowiki>[[key::val]]</nowiki> syntax, which doesn't handle brackets in the value.
 
<func name="smw.let.echo" key val>
 
<func name="smw.let.echo" key val>
 
   <let name=out>{{#set:</let>
 
   <let name=out>{{#set:</let>

Latest revision as of 14:01, 7 August 2012

smw.let.echo(key, val)

Action: sets SMW properties and echoes the value. This is useful as an alternative for the [[key::val]] syntax, which doesn't handle brackets in the value.
> function smw.let.echo() <= ()