Template:ContentCell: Difference between revisions
Jump to navigation
Jump to search
List of all templates
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
|style="{{#if: {{{1|}}}|width:{{{1}}};|}}background: #F9F9F9; border: 1px solid #AAAAAA; vertical-align: top; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 7px;"| | |||
{{#if: {{{2|}}}|{{TitleBar|{{{2}}} }}|}} | {{#if: {{{2|}}}|{{TitleBar|{{{2}}} }}|}} | ||
{{#if: {{{3|}}}|<div style="padding-left: 1em;"> | {{#if: {{{3|}}}|<div style="padding-left: 1em;"> | ||
Line 7: | Line 7: | ||
{{#if: {{{5|}}}|<div style="padding-left: 1em;"> | {{#if: {{{5|}}}|<div style="padding-left: 1em;"> | ||
{{{5}}} | {{{5}}} | ||
</div>|}} | </div>|}}<noinclude>{{documentation}}</noinclude> | ||
<noinclude>{{documentation}}</noinclude> |
Revision as of 04:57, 16 May 2014
|style="background: #F9F9F9; border: 1px solid #AAAAAA; vertical-align: top; -moz-border-radius: 5px; -webkit-border-radius: 5px; padding: 7px;"|
[View] [Edit] [Page history]
DocumentationThis template creates table cells, such as on the Main page. Centralizing them into a template allows for global editing of the style in the template without having to edit multiple locations on a page.
When using the longer parameters, such as a large amount of content, they can be spread across several lines as in example 2.
NOTE: This template must be enclosed within braces to create a table as shown.
- Example 1
{| style="width:100%;"
- {{ContentCell|70%|title 1|Content 1|title 2|Content 2}}
- {{ContentCell||title 1|Content 1|title 2|Content 2|title 3|Content 3}}
|}
- Example 2
{| style="width:100%;"
- {{ContentCell|70%|title 1|
- Content 1
- |title 2|
- Content 2
- }}
- {{ContentCell||title 1|Content 1|title 2|Content 2|title 3|Content 3}}
|}
- Both Result In
Content 1
Content 2
Content 1
Content 2
List of all templates