Template:HexString: Difference between revisions

From The Talos Principle Wiki
no whitespace
Second argument (translation) is now optional.
Line 1: Line 1:
<abbr title="{{{2}}}">{{{1}}}</abbr><noinclude>
{{#ifeq:{{{2|}}}|{{{2}}}|<abbr title="{{{2}}}">{{{1}}}</abbr>|<span style="border-bottom: 1px dotted red;">{{{1}}}</span>[[Category:Pages with untranslated hex strings]]}}<noinclude>


This is used to show translations of hex strings.
This is used to show hex strings, with or without translations.
* If a translation is provided, it is shown in a tooltip (this formatting may change in the future).
* If a translation is not provided, the page is automatically added to [[:Category:Pages with untranslated hex strings]].
== Usage ==
== Usage ==
<pre>{{HexString
<pre>{{HexString
|49206861766520646f6e65206974
|48656c6c6f
|I have done it
|Hello
}}</pre>
}} is translated, {{HexString|00}} is not translated.</pre>


That should show up as
That should show up as: {{HexString
<div style="width: 300px">
|48656c6c6f
{{HexString
|Hello
|49206861766520646f6e65206974
}} is translated, and {{HexString|00}} is not translated.
|I have done it
}}
</div>
</div>
</noinclude>
</noinclude>

Revision as of 12:50, 17 November 2023

{{{1}}}

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

Usage

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

That should show up as: 48656c6c6f is translated, and 00 is not translated.