Template:ContentCell: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Added page to Wikistyle templates)
mNo edit summary
Line 11: Line 11:
<div style="padding-left: 1em;">
<div style="padding-left: 1em;">
{{{7}}}
{{{7}}}
</div>|}}</includeonly><noinclude>{{documentation}}</noinclude>
</div>|}}</includeonly><noinclude>{{documentation}}


[[Category:Wikistyle templates]]
 
[[Category:Wikistyle templates]]</noinclude>

Revision as of 23:12, 16 May 2014

[View] [Edit] [Page history]

Documentation

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

Template:TitleBar

Content 1

Template:TitleBar

Content 2

Template:TitleBar

Content 1

Template:TitleBar

Content 2

Template:TitleBar

Content 3



List of all templates