Actions

Template

Hex

From NEC Retro

Revision as of 12:04, 22 July 2024 by SorachiJirachi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Segaretro-round.svg This template has been manually copied from Sega Retro, specifically Template:Hex
Technical restrictions prevent this template from being shared across multiple wikis. In the medium term, any changes should be made to the Sega Retro variant first, before manually copying the contents back here. As this is not an automatic process, this version of the template might also be out of date.

This template displays a hexadecimal value with the appropriate formatting.

Example

{{hex|0123}} returns 123.

{{hex|$78000}} returns 00078000.

{{hex|0x1800}} returns 1800.

{{hex|abcde}} returns 000ABCDE.

{{hex|$00}} returns 0.