Template:Box: Difference between revisions

From evermeet.cx Wiki
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
Line 1: Line 1:
{{#invoke:box|showT}}
{{#invoke:box|showT}}
<noinclude>
<noinclude>
== Usage ==
__NOTOC__


The <code><nowiki>{{box}}</nowiki></code> template may be used to add a colored box with title (optional) and text.


<code><pre>{{Box
=== Usage ===
| [color=blue|green|grey|yellow]
<pre>
| [width=500px]
{{Box
| [height=250px]
|color=   <blue|green|grey|yellow>
| [title=Place title here]
|width=
| text={{:Page_to_include}}
|height=
}}</pre></code>
|title=
|text=
}}
</pre>


== Example ==  
=== Parameters ===
; color : The color of the box. Default: <code>grey</code>. Options: <code>blue</code>, <code>green</code>, <code>grey</code>, <code>yellow</code>
; 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 ===  


<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>

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.}}


This is the title

Here comes the text.