Template:HexConverter: Difference between revisions
From OpenGK
No edit summary |
No edit summary |
||
| (25 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly><div><div class="hex-converter-preload">{{{hex}}}</div><div style="display: none;" class="{{#if:{{{class|}}}|hex-converter-field {{{class}}}|hex-converter-field}}" {{#if:{{{id|}}}|id="hex-converter-field-{{{id}}}"}} {{#if:{{{default-display|}}}|data-hex-converter-default-display="{{{default-display}}}"}} {{#if:{{{hex|}}}|data-hex-converter-hex="{{{hex}}}"}} {{#if:{{{name|}}}|data-hex-converter-name="{{{name}}}"}}>{{{fallback| {{{hex}}}}}}</div></div> | ||
class="{{#if:{{{class|}}}|hex-converter-field {{{class}}}|hex-converter-field}}" | |||
{{#if:{{{id|}}}|id="hex-converter-field-{{{id}}}"}} | [[Category:Pages using gadget HexConverter]] | ||
{{#if:{{{ | </includeonly> | ||
data-hex-converter-hex="{{{hex}}}" | <noinclude> | ||
{{{hex|}}}</ | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"class": { | |||
"description": "HTML div class", | |||
"type": "string" | |||
}, | |||
"id": { | |||
"description": "HTML div id", | |||
"type": "string" | |||
}, | |||
"name": {}, | |||
"hex": { | |||
"description": "Hex value. Leading 0x is not required, but will be accepted", | |||
"example": "58D8C848", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"default-display": { | |||
"description": "Default display type", | |||
"example": "dec", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"hex", | |||
"dec", | |||
"ascii" | |||
], | |||
"default": "hex" | |||
} | |||
}, | |||
"description": "Simple converter that'll allow the user to switch between hex, decimal and ascii display", | |||
"paramOrder": [ | |||
"class", | |||
"id", | |||
"name", | |||
"hex", | |||
"default-display" | |||
] | |||
} | |||
</templatedata></noinclude> | |||
Latest revision as of 19:11, 11 June 2025
Simple converter that'll allow the user to switch between hex, decimal and ascii display
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| class | class | HTML div class | String | optional |
| id | id | HTML div id | String | optional |
| name | name | no description | Unknown | optional |
| hex | hex | Hex value. Leading 0x is not required, but will be accepted
| String | required |
| default-display | default-display | Default display type
| String | optional |
