Template:HexString

From The Talos Principle Wiki
Revision as of 14:19, 22 November 2023 by Theadamabrams (talk | contribs) (TemplateData)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

Usage

This is used to show hex strings, with or without translations.

{{HexString|48656c6c6f|Hello}} is translated, {{HexString|00}} is not translated.

That shows up as:

48656c6c6f is translated, 00 is not translated.

Multiple lines:

You can break both the text and the tooltip into multiple lines. The text follows the usual MediaWiki conventions, but for the tooltip you need to explicitly break the text using the newline/line feed HTML character entity:

{{HexString
|
48656c6c6f2c0a
776f726c64
|Hello,
world
}}

Produces: 48656c6c6f2c0a 776f726c64

This is used to show hex strings, with or without translations.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Hex1

The hex string.

Example
48656c6c6f
Stringrequired
Translation2

The English text corresponding the hex. Use 
 for a line break.

Example
hello
Stringsuggested