Difference between revisions of "Template:Hexadecimal/testcases"
Jump to navigation
Jump to search
imported>Toohool (add scientific notation tests) |
|||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
{| class="wikitable" | {| class="wikitable" | ||
| − | ! Code ! | + | ! rowspan=2 | Code |
| + | ! colspan=2 | Result | ||
| + | |- | ||
| + | ! Live | ||
| + | ! Sandbox | ||
|- | |- | ||
| <nowiki>{{hexadecimal|0}}</nowiki> | | <nowiki>{{hexadecimal|0}}</nowiki> | ||
Revision as of 17:09, 25 May 2016
| 42px | This is the template test cases page for the sandbox of Template:Hexadecimal. 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 | |
|---|---|---|
| Live | Sandbox | |
| {{hexadecimal|0}} | 016 | 016 |
| {{hexadecimal|15}} | F16 | F16 |
| {{hexadecimal|3256}} | CB816 | CB816 |
| {{hexadecimal|65536}} | 1000016 | 1000016 |
| {{hexadecimal|128892}} | 1F77C16 | 1F77C16 |
| {{hexadecimal|-128892}} | -1F77C16 | N/A |
| {{hexadecimal|-128892.5}} | -1F77C16 | N/A |
| {{hexadecimal|73.3333333}} | 4916 | 4916 |
| {{hexadecimal|73.25}} | 4916 | 4916 |
| {{hexadecimal|{{#expr:1+3/8}}}} | 116 | 116 |
| {{hexadecimal|268435455}} | FFFFFFF16 | FFFFFFF16 |
| {{hexadecimal|1268435455}} | 4B9AC9FF16 | N/A |
| {{hexadecimal|12589|hex}} | 312Dhex | 312Dhex |
| {{hexadecimal|10|digit}} | A | A |
| {{hexadecimal|12589|digit}} | 312D | 312D |
| {{hexadecimal|10|no}} | 0A | 0A |
| {{hexadecimal|12589|no}} | 312D | 312D |
| {{hexadecimal|010}} | A16 | A16 |
| {{hexadecimal|5E7}} | 2FAF08016 | 2FAF08016 |
| {{hexadecimal|5e7}} | 2FAF08016 | 2FAF08016 |
| {{hexadecimal|5 E7}} | 2FAF08016 | 2FAF08016 |
| {{hexadecimal|5 e7}} | 2FAF08016 | 2FAF08016 |
| {{hexadecimal|}} | Expression error: Unexpected > operator. | |
| {{hexadecimal}} | 016 | 016 |
| {{hexadecimal|foo}} | foo | Expression error: Unrecognized word "foo". |