1 Miscellanous variables[edit | edit source]
1.1 Magic words[edit | edit source]
| Magic word | Result |
|---|---|
| PAGENAME | Parser functions |
| FULLPAGENAME | Parser functions |
| NAMESPACE | |
| NAMESPACENUMBER | 0 |
| BASEPAGENAME | Parser functions |
| SUBPAGENAME | Parser functions |
| CURRENTTIME | 23:45 |
| CURRENTTIMESTAMP | 20260508234559 |
1.2 Parser functions / conditionals[edit | edit source]
| #if:
TRUE branch NOT EMPTY |
#ifeq:
Equal Different |
#ifexpr:
Five is greater Math OK |
#expr:
2 + 2 = 4 10 / 3 = 3.3333333333333 Rounding: 9.88 |
#switch:
Apple it is! |
1.3 String functions[edit | edit source]
| Length: 11 | Substring: Hello | Replace: Hello Wiki | Position: 6 | Lowercase: hello | Uppercase: HELLO | Capitalize: Hello |
1.4 Arrays (Arrays extension)[edit | edit source]
| Fruit count: 1 | First fruit: apple | All fruits: |
2 Loops (ParserFunctions)[edit | edit source]
2.1 #for[edit | edit source]
{{#for: i|1|5|* Iteration }}
2.2 #while[edit | edit source]
Maximum number of loops have been performed
3 Templates[edit | edit source]
Template call example:
Param1:value1, Param2:value2
4 SMW[edit | edit source]
{{#set:
| Has string = Example text
| Has number = 42
| Has boolean = true
| Has date = 2026-05-04
| Has page = Main Page
}}
4.1 ask - Simple query[edit | edit source]
| Has string | Has number | Has date | |
|---|---|---|---|
| Parser functions | Example text | 42 | 2026-05-04 |
4.2 ask - Filtered query[edit | edit source]
| Has number | |
|---|---|
| Parser functions | 42 |
4.3 ask - Aggregates[edit | edit source]
| Total | Average | |
|---|---|---|
| Parser functions | 42 | 42 |
4.4 ask - page context[edit | edit source]
Page has value: 42, Page has date: 2026-05-04
5 Conditional display[edit | edit source]
Number is greater than 40
5.1 date / time parsing[edit | edit source]
| ISO Date: 2026-05-04 | Local format: 08.05.2026 | Week number: 19 | Unix timestamp: 1778283959 |
6 Tags[edit | edit source]
<booklist>
<booknav>
ERM45133
<bpmn>
<bs-wikifarmer>
<bs:checkbox>
<bs:checklist>
<bs:countarticles>
<bs:countcharacters>
<bs:countcharacters>
<bs:countfiles>
<bs:countfiles>