Template:Userbox/doc: Difference between revisions
Created page with " <templatedata> { "params": { "id-color": { "description": "Hexcode" }, "id": { "description": "Handful of characters" }, "info-color": { "description": "Hexcode" }, "info": { "description": "Sentence-long description" } }, "paramOrder": [ "id", "info", "id-color", "info-color" ] } </templatedata> == Example == <pre> {{Userbox | id = '26 | info = This user is in the class of 2026. | border-color = #C2637A | id-color..." |
fixing template data |
||
| Line 4: | Line 4: | ||
"params": { | "params": { | ||
"id-color": { | "id-color": { | ||
"description": "Hexcode" | "description": "Hexcode for square color", | ||
"default": "#fff" | |||
}, | }, | ||
"id": { | "id": { | ||
"description": "Handful of characters" | "description": "Handful of characters", | ||
"required": true | |||
}, | }, | ||
"info-color": { | "info-color": { | ||
"description": "Hexcode" | "description": "Hexcode for rectangle color", | ||
"default": "#eee" | |||
}, | }, | ||
"info": { | "info": { | ||
"description": "Sentence-long description" | "description": "Sentence-long description", | ||
"required": true | |||
}, | |||
"border-color": { | |||
"description": "Hexcode for border color", | |||
"default": "#aaa" | |||
}, | |||
"categories": { | |||
"description": "Wikilinks for categories to autopopulate when using template", | |||
"example": "[[Category:Class of 2026]]" | |||
} | } | ||
}, | }, | ||
| Line 20: | Line 32: | ||
"info", | "info", | ||
"id-color", | "id-color", | ||
"info-color" | "info-color", | ||
] | "border-color", | ||
"categories" | |||
], | |||
"description": "Meta-template for userbox templates" | |||
} | } | ||
</templatedata> | </templatedata> | ||