Template:HexConverter: Difference between revisions

From OpenGK
No edit summary
Tag: Manual revert
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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:{{{hex|}}}|data-hex-converter-hex="{{{hex}}}"}} {{#if:{{{name|}}}|data-hex-converter-name="{{{name}}}"}}>{{{fallback| {{{hex}}}}}}</div></div>
<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>


[[Category:Pages using gadget HexConverter]]
[[Category:Pages using gadget HexConverter]]
Line 8: Line 8:
{
{
"params": {
"params": {
"class": {},
"class": {
"id": {},
"description": "HTML div class",
"type": "string"
},
"id": {
"description": "HTML div id",
"type": "string"
},
"name": {},
"name": {},
"hex": {
"hex": {
"description": "Hex value",
"description": "Hex value. Leading 0x is not required, but will be accepted",
"example": "58D8C848",
"example": "58D8C848",
"type": "string",
"type": "string",
"required": true
"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"
"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>
</templatedata></noinclude>

Latest revision as of 19:11, 11 June 2025


Template:Documentation

Simple converter that'll allow the user to switch between hex, decimal and ascii display

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
classclass

HTML div class

Stringoptional
idid

HTML div id

Stringoptional
namename

no description

Unknownoptional
hexhex

Hex value. Leading 0x is not required, but will be accepted

Example
58D8C848
Stringrequired
default-displaydefault-display

Default display type

Suggested values
hex dec ascii
Default
hex
Example
dec
Stringoptional