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

From The 3geez Wiki
Jump to: navigation, search
Line 43: Line 43:
 
{{#nocache}}
 
{{#nocache}}
 
     #define
 
     #define
{{#define if IF?! }}
+
{{#define if IF?! }}
 +
{{#null|{{#str_replace_all if IF?! }} if2 }}
 
     #default
 
     #default
 
{{{foo}}}
 
{{{foo}}}
Line 57: Line 58:
  
 
     #array
 
     #array
{{#array | test | best | crest }}
+
{{#array | test |  
 +
best |  
 +
crest |
 +
mest => pest |
 +
"threst => smest |
 +
"thres"t => smest" |
 +
"bestest" => xyz" |
 +
"testest" => "xyzpz" |
 +
poo => "pee"
 +
}}
 
     #count
 
     #count
 
{{#count | test }}
 
{{#count | test }}
Line 65: Line 75:
  
  
   #while      
+
   #while
   #repeat      
+
{{#x = 1}}
 +
{{#while | {{#x <= 10}} ||
 +
{{#x ++}} . {{#x != 10}}
 +
}}
 +
 
 +
   #repeat    
 +
{{#repeat | 10 ||
 +
hello
 +
}}
 +
 
   #for         
 
   #for         
 +
{{#for | {{#setvar i 1}} || {{#i < 10}} || {{#i ++}} ||
 +
{{#i}}
 +
}}
 
   #foreach       
 
   #foreach       
 
   #function     
 
   #function     

Revision as of 00:36, 16 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?! }} {{#null|{{#str_replace_all if IF?! }} if2 }}

    #default

{{{foo}}} {{#set_param_default | foo | 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      
 #function    
 #define       
 #eval         
 #noeval       
 #setvar 
 #var'