Template:Box
From New York City LDS History
(Difference between revisions)
LDSdbSysop (Talk | contribs) (New page: <includeonly>{| width="{{{width}}}" style="float:{{{float}}};" | class="MainPageBG" style="width:100%; border:1px solid #{{ #switch: {{{color}}} | pink=f2cedf | orange=f2dfce | yellow=f2f...) |
LDSdbSysop (Talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly><div class="boilerplate metadata" {{#if:{{{2|}}}|id="{{{2}}}"|}} style="{{divbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;"><center><b>{{{2|}}}</b></center>{{{3|}}}</div><includeonly>{{ns0|[[Category:articles using divbox template]]}}</includeonly><noinclude> |
| − | + | {{documentation}} | |
| − | | | + | [[zh:Template:Divbox]] |
| − | + | </noinclude> | |
| − | + | </includeonly><noinclude> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | | | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | }} | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | }}; | + | |
| − | + | ||
| − | | | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | | | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | }} | + | |
| − | + | ||
| − | + | ||
| − | |} | + | |
| − | + | ||
__NOTOC__ __NOEDITSECTION__ | __NOTOC__ __NOEDITSECTION__ | ||
== Purpose == | == Purpose == | ||
Revision as of 22:54, 15 May 2012
[create] Template documentation
</includeonly>
Purpose
To easily produce boxes with matching colored titles and borders.
Usage
| Field Name | Usage | Description |
|---|---|---|
| color | optional | Valid options: pink, orange, yellow, green, blue and purple. Default: Gray box title, white background for body, shades of gray for borders. |
| float | optional | Valid options: left or right. Default: left. |
| width | optional | Values can be expressed in either % or px. Default: adjusts to width of content. |
| title | mandatory | The title of the box. |
| content | mandatory | The content to be displayed in the box. |
Examples
|
{{Box
| title=Default Box
| content=This box has all default settings.
}}
|
|
{{Box
| color=blue
| float=right
| width=75%
| title=Blue Box
| content=This is a test A
}}
|
|
{{Box
| color=purple
| title=Purple Box
| content=Link to [[LDSClerks]]<br><small>follow the link</small>
}}
|
|
{{Box
| color=green
| width=500px
| title=Green Box
| content=Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
}}
|