W3TPL/tag/let: Difference between revisions

From Woozle Writes Code
< W3TPL‎ | tag
Jump to navigation Jump to search
(Created page with '==About== * '''Action''': Assigns a value to a variable. * '''Options''': ** '''echo''': replace the tag with the resulting value ** '''index'''= treats ''name'' as an array, and…')
 
No edit summary
Line 8: Line 8:
** '''oparse''': parse the output (only has an effect if "echo" is present)
** '''oparse''': parse the output (only has an effect if "echo" is present)
** '''self''': takes starting value from same variable, to allow unary operations
** '''self''': takes starting value from same variable, to allow unary operations
Currently unsupported:
** '''load''' (should probably be "fetch"): retrieve starting value from the current page's properties
** '''save''' (should probably be "store"): store the result in the properties for the current page

Revision as of 19:23, 1 November 2017

About

  • Action: Assigns a value to a variable.
  • Options:
    • echo: replace the tag with the resulting value
    • index= treats name as an array, and specifies the element to use
    • name= name of variable to set
    • null: set the variable to NULL
    • oparse: parse the output (only has an effect if "echo" is present)
    • self: takes starting value from same variable, to allow unary operations

Currently unsupported:

    • load (should probably be "fetch"): retrieve starting value from the current page's properties
    • save (should probably be "store"): store the result in the properties for the current page