Template:Navbox/doc: Difference between revisions

Jump to navigation Jump to search
Template Data redone
(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 of the box",
"description": "Contents shown in the box",
"type": "content",
"suggested": true
"suggested": true
},
},
"EXPANDED": {
"expanded": {
"description": "If not empty, the box will be expanded when the page is accessed.",
"aliases": [
"default": "empty"
"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": "200px"
"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": [
"example": "black",
"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": [
"example": "white",
"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": [
"example": "center"
"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"
}
}
},
},
"description": "Creates collapsible navigation box",
"paramOrder": [
"paramOrder": [
"1",
"1",
"TITLE",
"title",
"EXPANDED",
"width",
"WIDTH",
"color",
"BACKGROUND",
"background",
"TEXTCOLOR",
"textcolor",
"COLOR",
"align",
"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>
1,769

edits

Navigation menu