Template:ContentCell/doc: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
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.
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. <br/>
 
The longer parameters, such as content, are typically spread across several lines.
The longer parameters, such as content, are typically spread across several lines.


Example:
'' '''NOTE:''' This template still must be enclosed within braces to create a table, as shown in the example.''


<code><nowiki>{| style="width:100%;"</nowiki><br/>
;Example:
<nowiki>{{ContentCell|70%|title 1|Content 1|title 2|Content 2}}</nowiki><br/>
:<code><nowiki>{| style="width:100%;"</nowiki><br/>
<nowiki>{{ContentCell||title 1|Content 1|title 2|Content 2}}</nowiki><br/>
:<nowiki>{{ContentCell|70%|title 1|Content 1|title 2|Content 2}}</nowiki><br/>
<nowiki>|}</nowiki></code>
:<nowiki>{{ContentCell||title 1|Content 1|title 2|Content 2}}</nowiki><br/>
 
:<nowiki>|}</nowiki></code>
Result:


;Result:
<code>
<code>
{| style="width:100%;"
{| style="width:100%;"
Line 19: Line 18:
</code>
</code>


'''NOTE:''' This template still must be enclosed within braces to create a table, as shown in the example.


<br/>
<br/>

Revision as of 05:02, 16 May 2014

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.
The longer parameters, such as content, are typically spread across several lines.

NOTE: This template still must be enclosed within braces to create a table, as shown in the example.

Example
{| style="width:100%;"
{{ContentCell|70%|title 1|Content 1|title 2|Content 2}}
{{ContentCell||title 1|Content 1|title 2|Content 2}}
|}
Result