Difference between revisions of "User:Frantik/Winter test"
m (Winter test moved to User:Frantik/Winter test) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
*x .= 2: {{#x .= 2}} | *x .= 2: {{#x .= 2}} | ||
*y []= 4: {{#y []= 4}} | *y []= 4: {{#y []= 4}} | ||
− | *y [foo]= 2: | + | *y [foo]= 2: |
+ | 1 {{#y @[][]= 2}} | ||
+ | 2 {{#y |@[fooXYZ][{{#x}}]= | 2}} | ||
+ | 3 {{#y @[][fooY]= 2}} | ||
+ | 4 {{#y @[fooX][fooY]= 2}} | ||
+ | {{#setvar | y | foo1 | xfoobar1 }} | ||
+ | {{#setvar | y | foo2 | zfoo2 | xfoobar}} | ||
+ | |||
+ | math : {{#z | = | {{#op | 1 + {{#x}} }} }} | ||
+ | -->>{{#z + 2}} | ||
+ | |||
+ | {{#debug}} | ||
− | |||
− | |||
#substr | #substr | ||
{{#substr abcd 2 2 }} | {{#substr abcd 2 2 }} | ||
Line 47: | Line 56: | ||
#default | #default | ||
{{{foo}}} | {{{foo}}} | ||
− | {{#set_param_default | | + | {{#set_param_default | poo | bar}} |
{{{foo}}} | {{{foo}}} | ||
#null | #null | ||
Line 115: | Line 124: | ||
#setvar | #setvar | ||
#var | #var | ||
+ | |||
+ | {{#debug}} |
Latest revision as of 10:03, 29 July 2007
{{#nocache}}
- if|1|true|false: {{#if|1|true|false}}
- if|0|true|false: {{#if|0|true|false}}
- if|xyz|true|false: {{#if|xyz|true|false}}
- not|1: {{#not|1}}
- ifeq|1|1|true|false: {{#ifeq|1|1|true|false}}
- ifeq|1|0|true|false: {{#ifeq|1|0|true|false}}
- ifneq|1|1|true|false: {{#ifneq|1|1|true|false}}
- ifneq|1|0|true|false: {{#ifneq|1|0|true|false}}
- setvar|x|1: {{#setvar|x|1}}
- if|{{*isset|x:|isset|isnotset: {{#if|{{#isset|x}}|isset|isnotset}}
- unsetvar|x: {{#unsetvar|x}}
- if|{{*isset|x:|isset|isnotset: {{#if|{{#isset|x}}|isset|isnotset}}
- setvar|x|1: {{#setvar|x|1}}
- x = 2: {{#x = 2}}
- x: {{#x}}
- x = 2: {{#x = 2}}
- x += 2: {{#x += 2}}
- x -= 2: {{#x -= 2}}
- x *= 2: {{#x *= 2}}
- x /= 2: {{#x /= 2}}
- x .= 2: {{#x .= 2}}
- y []= 4: {{#y []= 4}}
- y [foo]= 2:
1 {{#y @[][]= 2}} 2 {{#y |@[fooXYZ][{{#x}}]= | 2}} 3 {{#y @[][fooY]= 2}} 4 {{#y @[fooX][fooY]= 2}}
{{#setvar | y | foo1 | xfoobar1 }} {{#setvar | y | foo2 | zfoo2 | xfoobar}}
math : {{#z | = | {{#op | 1 + {{#x}} }} }} -->>{{#z + 2}}
{{#debug}}
#substr
{{#substr abcd 2 2 }}
#strpos
{{#strpos abcd c }}
#str_replace
{{#str_replace abcd bc xy }}
#strlen
{{#strlen abcd}}
#preg_replace
{{#preg_replace | %\s% | . | x y z }}
#nocache
{{#nocache}}
#define
{{#define if IF?! }} {{#null|{{#str_replace_all if IF?! }} if2 }}
#default
{{{foo}}} {{#set_param_default | poo | bar}} {{{foo}}}
#null
{{#null HELLO!}}
#debug
{{#debug}}
#rand
{{#rand 9}} {{#rand 10 100}}
#array
{{#array | test | best | crest | mest => pest | "threst => smest" | "thres"t => smest" | "bestest" => xyz" | "testest" => "xyzpz" | poo => "pee" }}
#count
{{#count | test }}
#array_rand
{{#array_rand | test }} {{#debug}}
#while
{{#x = 1}} {{#while | {{#x <= 10}} || {{#x ++}} . {{#x != 10}} - }}
#repeat
{{#repeat | 10 || hello - }}
#for
{{#for | {{#setvar i 1}} || {{#i < 10}} || {{#i ++}} || {{#i}} - }}
#foreach
{{#foreach | test ||
{{#_v}}
}} {{#foreach | test || value ||
{{#value}}
}} {{#foreach | test || key || value ||
{{#key}} - {{#value}}
}}
#function
{{#function | tester || testing 123}} {{#tester}}
#define
#eval
{{#eval | {{#tester}} }}
#noeval
{{#noeval| {{#tester}} }}
#setvar #var
{{#debug}}