Template:Box: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{#invoke:box|showT}} <noinclude> == Usage == <code><pre>{{Box | [color=blue|green|grey|yellow] | [width=500px] | [height=250px] | [title=Place title here] | text={{:Page_to..." |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:box|showT}} | <nowiki />{{#invoke:box|showT}}<noinclude> | ||
<noinclude> | {{#ifexist:Template:Lua|{{Lua|Module:Box}}}} | ||
__NOTOC__ | |||
The <code><nowiki>{{box}}</nowiki></code> template may be used to add a colored box with title (optional) and text. | |||
=== Usage === | |||
<pre> | |||
{{Box | |||
|color= <blue|green|grey|purple|red|yellow> | |||
|width= | |||
|height= | |||
|title= | |||
|text= | |||
}} | |||
</pre> | |||
<code>< | === Parameters === | ||
; color : The color of the box. Default: <code>grey</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>purple</code>, <code>red</code>, <code>yellow</code> | |||
; width : If specified, the width of the box. It must be specified in pixels (px) or percentage (%). | |||
; height : If specified, the height of the box. It must be specified in pixels (px). | |||
; title : If specified, a title will be shown. Templates and transcluded pages can be used. | |||
; text : The text in the box. Templates and transcluded pages can be used. | |||
== | === Examples === | ||
<code><nowiki>{{Box|color=blue|width=500px|height=150px|title=This is the title|text=Here comes the text.}}</nowiki></code> | <code><nowiki>{{Box|color=blue|width=500px|height=150px|title=This is the title|text=Here comes the text.}}</nowiki></code> |
Latest revision as of 18:13, 26 October 2017
![]() | Uses Lua: |
The {{box}}
template may be used to add a colored box with title (optional) and text.
Usage
{{Box |color= <blue|green|grey|purple|red|yellow> |width= |height= |title= |text= }}
Parameters
- color
- The color of the box. Default:
grey
. Options:blue
,green
,grey
,purple
,red
,yellow
- width
- If specified, the width of the box. It must be specified in pixels (px) or percentage (%).
- height
- If specified, the height of the box. It must be specified in pixels (px).
- title
- If specified, a title will be shown. Templates and transcluded pages can be used.
- text
- The text in the box. Templates and transcluded pages can be used.
Examples
{{Box|color=blue|width=500px|height=150px|title=This is the title|text=Here comes the text.}}
|