1,923
edits
No edit summary |
m (→switch) |
||
Line 33: | Line 33: | ||
| value1 = what to show if value1 is entered | | value1 = what to show if value1 is entered | ||
| value2 = what to show if value2 is entered | | value2 = what to show if value2 is entered | ||
| what to show if something else is entered | | | what to show if something else is entered | ||
| #default = what to show if nothing is entered | | #default = what to show if nothing is entered | ||
}}</pre> | }}</pre> | ||
Line 41: | Line 41: | ||
| b = blah | | b = blah | ||
| c = cough | | c = cough | ||
| anything | | | anything | ||
| #default = nothing | | #default = nothing | ||
}}</pre> | }}</pre> | ||
This is included in the template [[template:switchExample|switchExample]]. <nowiki>{{switchExample|a}}</nowiki> gives "{{switchExample|a}}" because a is entered. <nowiki>{{switchExample}}</nowiki> gives "{{switchExample}}", because the template was left blank. <nowiki>{{switchExample|d}}</nowiki> gives "{{switchExample|d}}", because d doesn't exist in the template. | This is included in the template [[template:switchExample|switchExample]]. <nowiki>{{switchExample|a}}</nowiki> gives "{{switchExample|a}}" because a is entered. <nowiki>{{switchExample}}</nowiki> gives "{{switchExample}}", because the template was left blank. <nowiki>{{switchExample|d}}</nowiki> gives "{{switchExample|d}}", because d doesn't exist in the template. | ||
==time== | ==time== | ||
coming soon. | coming soon. |
edits