2

This is cool because it displays correct grammar depending on the number of options you input.

You have 0 options:

You have 0 option[!----]s[!----]:

You have 1 option:

You have 1 option[!--s[!----]:

You have 2 options:

You have 2 option[!----]s[!----]:

How to do conditionals

Include

[[include include-backend
|{$variable}=[!--
|condition=[!--@@--]
]]

Include Backend

[!--{$condition}--]@@@@
If TRUE, display this.
[!----]
{$condition}
ELSE, display this
[!----]

How to show only if condition is false

Include

[[include include-backend
|{$variable}=[!--
|condition=[!----]
]]

Include Backend

Normal text, normal text, {$condition}if FALSE, display this[!----] normal text.
page_revision: 11, last_edited: 1256379599|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License