Difference between revisions of "Template:CollapseBox/doc"
From EVE University Wiki
(Created page with "<noinclude>{{main|Template:CollapseBox}}</noinclude> This template creates a green, collapsible text box that displays only a title when collapsed, and both title and text whe...") |
m (Add dependency. Add missing parameter. Add parameter descriptions.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | ; Description | |
− | This template creates a green, | + | : This template creates a green, expandable box that displays only a title when collapsed, and both title and text when expanded. It is collapsed by default. |
− | |||
− | + | ; Dependencies: | |
+ | :; Uses | ||
+ | :: Classes collapsible and collapsed | ||
− | == | + | ; Syntax |
+ | : {{T|CollapseBox|title|text|4=width=}} | ||
− | + | ; Parameters | |
+ | :; title : The title of the box. This is always visible. | ||
+ | :; text : Contents of the box, only visible when expanded. | ||
+ | :; width= : The width of the box, preferably in %. Default value is 30%. (Optional) | ||
+ | ; Sample | ||
− | + | {{code|<nowiki>{{CollapseBox|New title|Text to be shown or hidden.}}</nowiki>}} Gives... | |
{{CollapseBox|New title|Text to be shown or hidden.}} | {{CollapseBox|New title|Text to be shown or hidden.}} | ||
− | <includeonly>[[Category: | + | |
+ | |||
+ | {{code|<nowiki>{{CollapseBox|New title|Text to be shown or hidden.|width=70%}}</nowiki>}} Gives... | ||
+ | {{CollapseBox|New title|Text to be shown or hidden.|width=70%}} | ||
+ | |||
+ | |||
+ | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 10:01, 27 August 2022
- Description
- This template creates a green, expandable box that displays only a title when collapsed, and both title and text when expanded. It is collapsed by default.
- Dependencies
-
- Uses
- Classes collapsible and collapsed
- Syntax
- {{CollapseBox|<title>|<text>|<width=>}}
- Parameters
-
- title
- The title of the box. This is always visible.
- text
- Contents of the box, only visible when expanded.
- width=
- The width of the box, preferably in %. Default value is 30%. (Optional)
- Sample
{{CollapseBox|New title|Text to be shown or hidden.}} |
Gives...
New title |
---|
Text to be shown or hidden. |
{{CollapseBox|New title|Text to be shown or hidden.|width=70%}} |
Gives...
New title |
---|
Text to be shown or hidden. |