Difference between revisions of "Template:ContentCell"
From MechWarrior: Living Legends Wiki
DragonGod004 (talk | contribs) m |
DragonGod004 (talk | contribs) (Add doc) |
||
Line 8: | Line 8: | ||
<div class="titlebar">{{#if: {{{link3|}}}|[{{{link3}}} {{{6}}}]|{{{6}}} }} </div><div style="padding-left: 1em;"> | <div class="titlebar">{{#if: {{{link3|}}}|[{{{link3}}} {{{6}}}]|{{{6}}} }} </div><div style="padding-left: 1em;"> | ||
{{#ifeq: {{{7|}}}||{{:Main Page/{{#replace: {{#replace: {{{6}}}|]|}}|[|}} }}|{{{7}}}}} | {{#ifeq: {{{7|}}}||{{:Main Page/{{#replace: {{#replace: {{{6}}}|]|}}|[|}} }}|{{{7}}}}} | ||
− | </div>}}</includeonly> | + | </div>}}</includeonly><noinclude>{{Documentation}}</noinclude> |
Revision as of 14:46, 26 October 2017
This 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 Content 3 |
The above documentation is transcluded from Template:ContentCell/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |