Difference between revisions of "Template:Hex2dec/testcases"
Jump to navigation
Jump to search
imported>DePiep |
imported>DePiep |
||
| Line 88: | Line 88: | ||
{| | {| | ||
| <nowiki>{{hex2dec|foobar}}</nowiki> | | <nowiki>{{hex2dec|foobar}}</nowiki> | ||
| − | | {{hex2dec|foobar|default={{error|Nan}}}} | + | | {{hex2dec|foobar|default={{error|Nan|tag=span}}}} |
| {{hex2dec/sandbox|foobar}} | | {{hex2dec/sandbox|foobar}} | ||
|} | |} | ||
Latest revision as of 10:47, 25 December 2020
| This is the template test cases page for the sandbox of Template:Hex2dec. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
| Code | Result | Sandbox Result |
|---|---|---|
| {{hex2dec|0}} | 0 | 0 |
| {{hex2dec|0x0000}} | 0 | 0 |
| {{hex2dec|0x7C0}} | 1984 | 0 |
| {{hex2dec|0xFFFF}} | 65535 | 0 |
| {{hex2dec|0x845FED}} | 8675309 | 0 |
| {{hex2dec|0x75BCD15}} | 123456789 | 0 |
| {{hex2dec|0xDEADBEEF}} | 3735928559 | 0 |
| {{hex2dec|0xFFFFFFFF}} | 4294967295 | 0 |
| {{hex2dec|0xFFFFFFFFF}} | 68719476735 | 0 |
| {{hex2dec|7C0}} | 1984 | 0 |
| {{hex2dec|FFFF}} | 65535 | 0 |
| {{hex2dec|845FED}} | 8675309 | 0 |
| {{hex2dec|0xa0}} | 160 | 0 |
| {{hex2dec|a0}} | 160 | 0 |
| {{hex2dec|0x00A0}} | 160 | 0 |
| {{hex2dec|12345ABC}} | 305420988 | 0 |
| {{hex2dec|12345ABC}} | 305420988 | 0 |
| {{hex2dec}} | 0 | 0 |
| {{hex2dec|}} | 0 | 0 |
| {{hex2dec|foobar}} | 0 | 0 |
error / NaN / #default
| {{hex2dec|foobar}} | Nan | 0 |