Template:Userbox/doc: Difference between revisions

fixing template data
template data
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
"params": {
"params": {
"id-color": {
"id-color": {
"description": "Hexcode for square color",
"description": "Hexcode for the color of the smaller rectangle on the left",
"default": "#fff"
"default": "#fff",
"aliases": [
"icon-color",
"square-color"
],
"label": "ID color"
},
},
"id": {
"border-color": {
"description": "Handful of characters",
"description": "Hexcode for border color",
"default": "#aaa",
"aliases": [
"border"
],
"label": "Border color"
},
"categories": {
"description": "Wikilinks for categories, to auto-populate when using template (don't put Category:Userboxes here!)",
"example": "[[Category:Class of 2026]]",
"aliases": [
"category"
],
"label": "Categories"
},
"description": {
"aliases": [
"info"
],
"label": "Description",
"description": "Sentence-long description on the right",
"required": true
"required": true
},
},
"info-color": {
"background-color": {
"description": "Hexcode for rectangle color",
"aliases": [
"Info color",
"info-color"
],
"label": "Background color",
"description": "Hexcode for the background color",
"default": "#eee"
"default": "#eee"
},
},
"info": {
"ID": {
"description": "Sentence-long description",
"aliases": [
"id",
"icon"
],
"label": "ID",
"description": "Handful of characters / small image to go in the square on the left.",
"required": true
"required": true
},
},
"border-color": {
"id-text-color": {
"description": "Hexcode for border color",
"label": "ID text color"
"default": "#aaa"
},
},
"categories": {
"info-text-color": {
"description": "Wikilinks for categories to autopopulate when using template",
"label": "Info text color"
"example": "[[Category:Class of 2026]]"
}
}
},
},
"paramOrder": [
"paramOrder": [
"id",
"ID",
"info",
"description",
"id-color",
"id-color",
"info-color",
"background-color",
"border-color",
"border-color",
"categories"
"categories",
"id-text-color",
"info-text-color"
],
],
"description": "Meta-template for userbox templates"
"description": "Meta-template, used to create userbox templates"
}
}
</templatedata>
</templatedata>
Line 48: Line 83:
| border-color = #C2637A
| border-color = #C2637A
| id-color    = #C2637A
| id-color    = #C2637A
| info-color  = #fff
}}
}}
</pre>
</pre>
Line 56: Line 90:
| border-color = #C2637A
| border-color = #C2637A
| id-color    = #C2637A
| id-color    = #C2637A
| info-color  = #fff
}}
}}