Module talk:Icon/testcases
Appearance
All tests passed.
| Name | Expected | Actual | |
|---|---|---|---|
| test _main: when no icon code is specified, a file link is output | |||
| test _main: when an existing icon code is specified, a file link is output | |||
| test _main: when an nonexistent icon code is specified, a file link is output | |||
| test _main: when an existing code is specified, the relevant image is displayed | |||
| test _main: when an existing code is specified, the relevant tooltip is displayed | |||
| test _main: when no dimensions are specified, the image is output as 16x16 pixels | |||
| test _main: when custom dimensions are specified, the image is output with those dimensions | |||
| test _main: codes can have surrounding whitespace | |||
| test _main: codes can be upper case | |||
| test _main: codes can be specified with the 'class' parameter | |||
| test _main: the class parameter has precedence over the first positional parameter | |||
| test _main: the class parameter has precedence over the first positional parameter, even if the class parameter is the empty string | |||
| test _main: links are suppressed when the entry in the data table has 'link' set to false | |||
| test _main: links are not suppressed when the entry in the data table has 'link' set to true | |||
| test _main: links are not suppressed when the entry in the data table has no value for 'link' | |||
| test Module:Icon/data: codes can be specified as aliases |
Start a discussion about improving the Module:Icon/testcases page
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve the "Module:Icon/testcases" page.