Template:HexString: Difference between revisions
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 | 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 | ||
| | |48656c6c6f | ||
| | |Hello | ||
}}</pre> | }} is translated, {{HexString|00}} is not translated.</pre> | ||
That should show up as | That should show up as: {{HexString | ||
|48656c6c6f | |||
{{HexString | |Hello | ||
| | }} is translated, and {{HexString|00}} is not translated. | ||
| | |||
}} | |||
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 12:50, 17 November 2023
{{{1}}}
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
{{HexString |48656c6c6f |Hello }} is translated, {{HexString|00}} is not translated.
That should show up as: 48656c6c6f is translated, and 00 is not translated.