Help:If: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Konoko
(initial entry, needs long version.)
 
imported>Konoko
mNo edit summary
 
Line 19: Line 19:
! explain
! explain
| If the third parameter exists
| If the third parameter exists
| Then display '''third: ''whatever_third_was'''''
| Then display '''third: '''''whatever_third_was''
| Else display '''done'''
| Else display '''done'''
|}
|}

Latest revision as of 18:23, 14 March 2007

Short Version

If Then statements in the wiki are a little tricky. They are best used in Templates.

normal IF THEN ELSE
wiki {{#if:ifexists_stuffs |then_stuffs |else_stuffs(optional)}}
example {{#if: {{{3|}}} |'''third: '''{{{3}}} |'''done'''}}
explain If the third parameter exists Then display third: whatever_third_was Else display done