Template:Colwidths/doc

From Wikishire
Revision as of 17:52, 19 July 2013 by RB (talk | contribs) (Created page with ''''Template:Colwidths''' is to allow you to set the width of columns in each of a set of tables on a page, so that the tables remain in alignment notwithstanding that they are in…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Colwidths is to allow you to set the width of columns in each of a set of tables on a page, so that the tables remain in alignment notwithstanding that they are independent tables and the contents differ.

Template:cw actually defines the column widths, but it is fed its values by {{Colwidths}}


These are not sophisticated templates nor complicated to use:

1.  At the top of the page add {{Colwidths}} with the widths you want as percentages. It will take up to 8 columns, so:

{{Colwidths|30|50|20}}

is to define three columns as 30%, 50% and 20% respectively.

2.  In each table to which these values are to apply, use {{cw}}: Begin column 1 with:

{{cw|1}}|

Begin column 2 with:

{{cw|2}}|


and so forth.

A table without {{cw}} in it does not form part of the scheme and its columns must be defined individually.