Difference between revisions of "User:Frantik/Winter test"
From The 3geez Wiki
Line 23: | Line 23: | ||
*x /= 2: {{#x /= 2}} | *x /= 2: {{#x /= 2}} | ||
*x .= 2: {{#x .= 2}} | *x .= 2: {{#x .= 2}} | ||
− | *y []= | + | *y []= 4: {{#y []= 4}} |
*y [foo]= 2: {{#y [foo]= 2}} | *y [foo]= 2: {{#y [foo]= 2}} | ||
− | #formula | + | #formula |
+ | {{#formula | #x }} | ||
#substr | #substr | ||
+ | {{#substr abcd 2 2 }} | ||
#strpos | #strpos | ||
+ | {{#strpos abcd c }} | ||
#str_replace | #str_replace | ||
+ | {{#str_replace abcd bc xy }} | ||
#strlen | #strlen | ||
+ | {{#strlen abcd}} | ||
#preg_replace | #preg_replace | ||
+ | {{#preg_replace | %\s% | . | x y z }} | ||
#nocache | #nocache | ||
+ | {{#nocache}} | ||
#define | #define | ||
+ | {{#define if IF?! }} | ||
#default | #default | ||
− | + | {{{foo}}} | |
+ | {{#set_param_default | foo | bar}} | ||
+ | {{{foo}}} | ||
#null | #null | ||
+ | {{#null HELLO!}} | ||
#debug | #debug | ||
+ | {{#debug}} | ||
#rand | #rand | ||
+ | {{#rand 9}} | ||
+ | {{#rand 10 100}} | ||
+ | |||
#array | #array | ||
+ | {{#array | test | best | crest }} | ||
#count | #count | ||
+ | {{#count | test }} | ||
#array_rand | #array_rand | ||
− | + | {{#array_rand | test }} | |
− | + | {{#debug}} | |
Revision as of 21:32, 15 June 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: {{#y [foo]= 2}}
#formula
{{#formula | #x }}
#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?! }}
#default
{{{foo}}} {{#set_param_default | foo | bar}} {{{foo}}}
#null
{{#null HELLO!}}
#debug
{{#debug}}
#rand
{{#rand 9}} {{#rand 10 100}}
#array
{{#array | test | best | crest }}
#count
{{#count | test }}
#array_rand
{{#array_rand | test }} {{#debug}}
#while #repeat #for #foreach #function #define #eval #noeval #setvar #var'