W3TPL/tag/get: Difference between revisions

From Woozle Writes Code
< W3TPL‎ | tag
Jump to navigation Jump to search
m (5 revisions imported: moving my projects here)
m (Woozle moved page W3TPL/tags/get to W3TPL/tag/get without leaving a redirect)
(No difference)

Revision as of 19:19, 15 April 2022

About

  • Action: Tag is replaced by the value of a variable or expression.
  • Options:
    • arg: get value from http request named name instead of using stored variable
      • Retrieves value from $wgRequest->getVal(name, default)
      • This is somewhat obsolete; it is better to use the sysdata syntax
    • codes: process with ShowHTML() before output
    • default= default value to use if argument named arg is not set
      • This may eventually be used to fill in a value in other cases, but for now it doesn't.
    • index= treats name as an array, and specifies the element to use
    • isolate: use extreme isolation to prevent parsing before output
    • lcase: convert to lowercase before output
    • len= maximum number of characters to include; truncate after nth character
    • name= name of variable to retrieve
    • raw: output should not be parsed (usage is restricted)
    • ucase: convert to uppercase before output
    • val= expression to use instead of variable name