Template:Box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<noinclude> | <noinclude> | ||
__NOTOC__ | __NOTOC__ | ||
The <code><nowiki>{{box}}</nowiki></code> template may be used to add a colored box with title (optional) and text. | The <code><nowiki>{{box}}</nowiki></code> template may be used to add a colored box with title (optional) and text. | ||
Revision as of 13:57, 18 October 2017
The {{box}}
template may be used to add a colored box with title (optional) and text.
Usage
{{Box |color= <blue|green|grey|yellow> |width= |height= |title= |text= }}
Parameters
- color
- The color of the box. Default:
grey
. Options:blue
,green
,grey
,yellow
- width
- If specified, the width of the box. It can be specified in pixels (px) or percentage (%).
- height
- If specified, the height of the box. It can be specified in pixels (px) or percentage (%).
- title
- If specified, a title will be shown.
- text
- The text in the box. Other templates and transcluded pages can be specified.
Examples
{{Box|color=blue|width=500px|height=150px|title=This is the title|text=Here comes the text.}}
|