1,770
edits
(expanded parameter changed; under construction, more later) |
(Template Data redone) |
||
Line 96: | Line 96: | ||
== Template data == | == Template data == | ||
{{Navbox|title=Template Data| | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 101: | Line 102: | ||
"1": { | "1": { | ||
"label": "Contents", | "label": "Contents", | ||
"description": "Contents | "description": "Contents shown in the box", | ||
"type": "content", | |||
"suggested": true | "suggested": true | ||
}, | }, | ||
"EXPANDED": | "expanded": { | ||
"description": "If not empty, the box will be | "aliases": [ | ||
" | "Expanded", | ||
"EXPANDED" | |||
], | |||
"label": "Expanded", | |||
"description": "If not empty, the box will appear expanded (open) when the page is opened. Leave empty if you want the box to be closed when the page is opened.", | |||
"type": "string" | |||
}, | }, | ||
"WIDTH": | "width": { | ||
"description": "Width of the box.", | "aliases": [ | ||
"example": " | "Width", | ||
"WIDTH" | |||
], | |||
"label": "Width", | |||
"description": "Width of the box. Use CSS measure units, e.g. pixels (px), em, %.", | |||
"example": "500px", | |||
"type": "line" | |||
}, | }, | ||
"BACKGROUND": | "background": { | ||
"description": "Background color of the contents.", | "aliases": [ | ||
" | "Background", | ||
"BACKGROUND" | |||
], | |||
"label": "Background color", | |||
"description": "Background color of the contents. Use any color naming system recognized in CSS, e.g. HTLM names or HEX.", | |||
"type": "line", | |||
"default": "white" | "default": "white" | ||
}, | }, | ||
"TEXTCOLOR": | "bstyle": { | ||
"description": "Title text color", | "aliases": [ | ||
" | "Bstyle", | ||
"BSTYLE" | |||
], | |||
"label": "Box CSS Style", | |||
"description": "Open CSS styling for the template main box, supersedes other template main box style options", | |||
"type": "string" | |||
}, | |||
"textcolor": { | |||
"aliases": [ | |||
"Textcolor", | |||
"TEXTCOLOR" | |||
], | |||
"label": "Title text color", | |||
"description": "Title text color. Use any color naming system recognized in CSS, e.g. HTLM names or HEX.", | |||
"type": "line", | |||
"default": "black" | "default": "black" | ||
}, | }, | ||
"COLOR": | "color": { | ||
"description": "Background color of the title", | "aliases": [ | ||
"Color", | |||
"COLOR" | |||
], | |||
"label": "Color", | |||
"description": "Background color of the title. Use any color naming system recognized in CSS, e.g. HTLM names or HEX", | |||
"example": "blue", | "example": "blue", | ||
"type": "line", | |||
"default": "#efefef" | "default": "#efefef" | ||
}, | }, | ||
"TITLE": | "tstyle": { | ||
"aliases": [ | |||
"Tstyle", | |||
"TSTYLE" | |||
], | |||
"label": "Title CSS Style", | |||
"description": "Open CSS styling for the title box, supersedes other title box style options", | |||
"type": "string" | |||
}, | |||
"title": { | |||
"aliases": [ | |||
"Title", | |||
"TITLE" | |||
], | |||
"label": "Title", | |||
"description": "Title of the box", | "description": "Title of the box", | ||
"type": "string", | |||
"required": true | "required": true | ||
}, | }, | ||
"ALIGN": | "align": { | ||
"description": "Alignment of the text in contents", | "aliases": [ | ||
" | "Align", | ||
"ALIGN" | |||
], | |||
"label": "Text alignment", | |||
"description": "Alignment of the text in contents, left, right, center, justify", | |||
"type": "line", | |||
"suggestedvalues": [ | |||
"left", | |||
"right", | |||
"center", | |||
"justify" | |||
], | |||
"default": "left" | |||
}, | |||
"cstyle": { | |||
"aliases": [ | |||
"Cstyle", | |||
"CSTYLE" | |||
], | |||
"label": "Content CSS Style", | |||
"description": "Open CSS styling for the content box, supersedes other content box style options", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
" | "title", | ||
" | "width", | ||
" | "color", | ||
" | "background", | ||
" | "textcolor", | ||
" | "align", | ||
" | "expanded", | ||
] | "bstyle", | ||
"tstyle", | |||
"cstyle" | |||
], | |||
"description": "Creates collapsible navigation box", | |||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata>}} | ||
<includeonly>[[Category:Navigation templates|*]]__NOTOC__</includeonly> | <includeonly>[[Category:Navigation templates|*]]__NOTOC__</includeonly> | ||
<noinclude>[[Category:Documentation subpages]]</noinclude> | <noinclude>[[Category:Documentation subpages]]</noinclude> |
edits