1,769
edits
(background & title colour) |
(template data; notice on mobile view) |
||
Line 1: | Line 1: | ||
This template creates a collapsible vertical navigation box, i.e. a box containing links to articles related to the subject. Alternatively, the template can be used for any content, such as text or images. The template can be used as a basis of other templates or on its own on an article. | This template creates a collapsible vertical navigation box, i.e. a box containing links to articles related to the subject. Alternatively, the template can be used for any content, such as text or images. The template can be used as a basis of other templates or on its own on an article. | ||
Note that the collapsibility does not work in mobile view. The box will still appear. | |||
== Usage == | |||
Minimal use: | Minimal use: | ||
Line 91: | Line 93: | ||
Later on the shoreleave, Jo visited Doctor Kila for her annual medical check. The Doctor was concerned of Jo's elevated heart rate, deciding to order her to go through some extra tests. Eventually, they found out Jo had an unusually large and warm heart, and no further operations were required.}} | Later on the shoreleave, Jo visited Doctor Kila for her annual medical check. The Doctor was concerned of Jo's elevated heart rate, deciding to order her to go through some extra tests. Eventually, they found out Jo had an unusually large and warm heart, and no further operations were required.}} | ||
== Template data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Contents", | |||
"description": "Contents of the box", | |||
"suggested": true | |||
}, | |||
"EXPANDED": { | |||
"description": "If yes, the box will be expanded when the page is accessed.", | |||
"suggestedvalues": [ | |||
"yes", | |||
"no" | |||
], | |||
"default": "no" | |||
}, | |||
"WIDTH": { | |||
"description": "Width of the box.", | |||
"example": "200px" | |||
}, | |||
"BACKGROUND": { | |||
"description": "Background color of the contents.", | |||
"example": "black", | |||
"default": "white" | |||
}, | |||
"TEXTCOLOR": { | |||
"description": "Title text color", | |||
"example": "white", | |||
"default": "black" | |||
}, | |||
"COLOR": { | |||
"description": "Background color of the title", | |||
"example": "blue", | |||
"default": "#efefef" | |||
}, | |||
"TITLE": { | |||
"description": "Title of the box", | |||
"required": true | |||
}, | |||
"ALIGN": { | |||
"description": "Alignment of the text in contents", | |||
"example": "center" | |||
} | |||
}, | |||
"description": "Creates collapsible navigation box", | |||
"paramOrder": [ | |||
"1", | |||
"TITLE", | |||
"EXPANDED", | |||
"WIDTH", | |||
"BACKGROUND", | |||
"TEXTCOLOR", | |||
"COLOR", | |||
"ALIGN" | |||
] | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Navigation templates|*]]__NOTOC__</includeonly> | <includeonly>[[Category:Navigation templates|*]]__NOTOC__</includeonly> | ||
<noinclude>[[Category:Documentation subpages]]</noinclude> | <noinclude>[[Category:Documentation subpages]]</noinclude> |
edits