Extension:ParserFunctions/Example

From Gamepedia Help Wiki
Jump to: navigation, search

{{#expr: 1/6 round 5 }} = 0.16667

{{#if: {{{1|true}}} | yes | no}} = yes

{{#ifeq: {{{weapon|Axe}}} | Sword | You are prepared | You need a sword!}} = You need a sword!

{{#iferror: {{#time: qwerty}} | Error!}} = q3UTCWed, 07 Apr 2021 02:44:52 +00003021

{{#switch: sword | sword = weapon | axe = tool | #default = item}} = weapon

{{#time: g:i, j F Y (e) | 2000-01-10T02:00:30Z}} = 2:00, 10 January 2000 (UTC)

{{#titleparts: Main Page/Top section/video | 1 | 2}} = Top section

See also