W3TPL/tag/get: Difference between revisions
Jump to navigation
Jump to search
(Created page with '==About== Tag is replaced by the value of a variable or expression. * '''Options''': ** '''arg'''= name of http argument whose value should be used instead of variable ''name'' …') |
(correction about "arg" usage) |
||
Line 1: | Line 1: | ||
==About== | ==About== | ||
Tag is replaced by the value of a variable or expression. | * '''Action''': Tag is replaced by the value of a variable or expression. | ||
* '''Options''': | * '''Options''': | ||
** '''arg''' | ** '''arg''': get value from [[http request]] named ''name'' instead of using stored variable | ||
*** Retrieves value from $wgRequest | *** Retrieves value from $wgRequest->getVal(''name'', ''default''); | ||
** '''codes''': process with ShowHTML() before output | ** '''codes''': process with ShowHTML() before output | ||
** '''default'''= default value to use if | ** '''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. | *** This may eventually be used to fill in a value in other cases, but for now it doesn't. | ||
** '''index'''= offset into array named ''name'' | ** '''index'''= offset into array named ''name'' |
Revision as of 22:51, 11 September 2010
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);
- 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= offset into array named name
- 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
- arg: get value from http request named name instead of using stored variable