Difference between revisions of "User:Jvprat/Sandbox"

Jump to navigation Jump to search
882 bytes added ,  19:23, 5 March 2009
add switch tests
(Show several ports for debugging)
(add switch tests)
Line 2: Line 2:
{{Infobox Port|:Nintendo Wii}}
{{Infobox Port|:Nintendo Wii}}
{{Infobox Port|Template:PortFeatures}}
{{Infobox Port|Template:PortFeatures}}
=switch tests=
Use the "switch" argument to select which argument to show:
*<nowiki>{{Switch|yes=yay|no=nay|switch=yes}}</nowiki> shows "{{Switch|yes=yay|no=nay|switch=yes}}"="yay"
*<nowiki>{{Switch|yes=yay|no=nay|switch=no}}</nowiki> shows "{{Switch|yes=yay|no=nay|switch=no}}"="nay"
If the specified option is unknown, the "switch" value will be shown:
*<nowiki>{{Switch|yes=yay|no=nay|switch=err}}</nowiki> shows "{{Switch|yes=yay|no=nay|switch=err}}"="err"
The "default" argument will be used when the "switch" value doesn't match any of the options or that's empty:
*<nowiki>{{Switch|yes=yay|no=nay|default=maybe|switch=err}}</nowiki> shows "{{Switch|yes=yay|no=nay|default=maybe|switch=err}}"="maybe"
The "default" argument is ignored when it's empty:
*<nowiki>{{Switch|yes=yay|no=nay|default=|switch=err}}</nowiki> shows "{{Switch|yes=yay|no=nay|default=|switch=err}}"="err"
960

edits

Navigation menu