Difference between revisions of "User:Frantik/Winter test"

From The 3geez Wiki
Jump to: navigation, search
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
!{{#urlvar|v}}!
+
{{#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}}

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}}