Template:Table/documentation: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '__NOTOC__<div style="background-color: #DBE9F4;"> ={{Font|Template Documentation|16|Calibri|bold|black}}= This template contains table formats that can be applied to any exist…')
 
Line 4: Line 4:
={{Font|Template Documentation|16|Calibri|bold|black}}=
={{Font|Template Documentation|16|Calibri|bold|black}}=


This template contains table formats that can be applied to any existing table in ReliaWiki. It does not automatically create a table for you; rather, it ensures that any table it is linked to will have a consistent look and style. (If you don't know how to create a table, see the Notes section below.)
This template contains table formats that can be applied to any existing table in ReliaWiki. It does not automatically create a table for you; rather it ensures that any table it is linked to will have a consistent look and style. (If you don't know how to create a table, see the Notes section below.)


Here is an example of what your table might look like when you use this template.   
Here is an example of what your table might look like when you use this template.   

Revision as of 18:22, 30 May 2014


Template Documentation

This template contains table formats that can be applied to any existing table in ReliaWiki. It does not automatically create a table for you; rather it ensures that any table it is linked to will have a consistent look and style. (If you don't know how to create a table, see the Notes section below.)

Here is an example of what your table might look like when you use this template.

Column 1 Column 2
Row 1 123
Row 2 456
Row 3 789


Usage

To use this template, type the code {{Table}} next to the table's opening brackets. For example, below is the code for the example table shown above.

{| {{Table}}
| align="center" style="background:#f0f0f0;"|'''Column 1'''
| align="center" style="background:#f0f0f0;"|'''Column 2'''
|-
| Row 1||123
|-
| Row 2||456
|-
| Row 3||789
|}

Notes

To automatically create a table, you can use the free tool at http://excel2wiki.net/index.php to convert an Excel table into the appropriate wiki code. This template is designed to work with the output you get from that tool.

If you want to learn to how to create tables using wiki code, see the tutorial at http://www.mediawiki.org/wiki/Help:Tables.