|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| {{Infobox Port|User:Jvprat/TestPortFeatures}}
| | <dpl> |
| {{Infobox Port|:Nintendo Wii}}
| | category=Project Services |
| {{Infobox Port|Template:PortFeatures}}
| | mode=userformat |
| =switch tests= | | format=,\n,, |
| Use the "switch" argument to select which argument to show:
| | include={Infobox Project Service Information} Summary |
| *<nowiki>{{Switch|yes=yay|no=nay|switch=yes}}</nowiki> shows "{{Switch|yes=yay|no=nay|switch=yes}}"="yay"
| | </dpl> |
| *<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"
| |