Testing, I'm trying to make infoboxes accessible in VisualEditor as theyre almost as hard as doing a citation in wikieditor (very hard)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 44: Line 44:
"id": {
"id": {
"description": "Text or image shown on the left side of the userbox (typically short)",
"description": "Text or image shown on the left side of the userbox (typically short)",
"example": "MOD"
"example": "MOD",
"label": "ID",
"suggested": true
},
},
"id-c": {
"id-c": {
"description": "Background color (or gradient) of the ID box.",
"description": "Background color (or gradient) of the ID box. This uses hex colors (#fff for white, #000000 for black).",
"example": "#8f0000"
"example": "#8f0000",
"label": "ID color",
"type": "string"
},
},
"info": {
"info": {
"description": "Main text content of the userbox.",
"description": "The main text content of the userbox.",
"example": "This user is a moderator and may be data-mining your contributions, btw."
"example": "This user is a moderator",
"label": "Info",
"required": true
},
},
"info-fc": {
"info-fc": {
"example": "#fff"
"example": "#fff",
"label": "Info font color",
"description": "Font color of the info box. This uses hex colors (#fff for white, #000000 for black).",
"type": "string"
},
},
"id-op": {
"id-op": {
"description": "Optional inline styles (e.g. shadows, transitions)"
"description": "Optional inline styles (e.g. shadows, transitions)."
},
},
"info-op": {
"info-op": {
"description": "Optional inline styles (e.g. shadows, transitions)"
"description": "Optional inline styles (e.g. shadows, transitions)."
},
},
"border-op": {
"border-op": {
"description": "Optional inline styles (e.g. shadows, transitions)"
"description": "Optional inline styles (e.g. shadows, transitions)."
},
"border-c": {
"label": "Border color",
"description": "The color of the border. This uses hex colors (#fff for white, #000000 for black)",
"example": "#6a000",
"type": "string"
},
"nocat": {
"label": "No automatic categorisation",
"description": "If set to true, disable automatic categorisation.",
"type": "string"
}
}
},
},
"description": "Font color of the info box"
"paramOrder": [
"id",
"info",
"border-c",
"id-c",
"info-fc",
"id-op",
"info-op",
"border-op",
"nocat"
],
"description": "Create a custom userbox to add to your profile, which can do multiple things, including tell others about yourself and show others the achievements you have made."
}
}
</templatedata>
</templatedata>