Last edited 5 days ago
by Max Mustermann

Parser functions

No categories assignedEdit

1 Magic words / variables[edit | edit source]

Name Result
PAGENAME Parser functions
FULLPAGENAME Parser functions
NAMESPACE
NAMESPACENUMBER 0
BASEPAGENAME Parser functions
SUBPAGENAME Parser functions
CURRENTTIME 20:20
CURRENTTIMESTAMP 20260509202036

2 Parser functions / conditionals[edit | edit source]

2.1 #if[edit | edit source]

TRUE branch

NOT EMPTY

2.2 #ifeq[edit | edit source]

Equal

Different

2.3 #ifexpr[edit | edit source]

Five is greater

Math OK


-- ParserFunctions – Expressions & Math ==

  • 2 + 2 = 4
  • 10 / 3 = 3.3333333333333
  • Rounding: Expression error: Unexpected round operator.
  • Random: Expression error: Unrecognized word "rand".

3 Switch / Case Logic[edit | edit source]

🍎 Apple


4 String Functions (StringFunctions extension)[edit | edit source]

  • Length: 11
  • Substring: Hello
  • Replace: Hello Wiki
  • Position: 6
  • Lowercase: hello
  • Uppercase: HELLO
  • Capitalize: Hello

5 Arrays (Arrays extension)[edit | edit source]

  • Fruit count: 1
  • First fruit: apple
  • All fruits:

6 Loops (ParserFunctions)[edit | edit source]

6.1 #for[edit | edit source]

{{#for: i|1|5|* Iteration }}

6.2 #while[edit | edit source]

Maximum number of loops have been performed

7 Templates[edit | edit source]

Template call example:

```wiki

Param1:value1, Param2:value2

``