Template:Ctr

From Angelina Jordan Wiki

style="text-align:center"

Documentation

This template provides a style attribute (seen above) that causes text to be centered. It is most useful in simple tables where the only thing needed is the text alignment (as seen in the example below). The thinking is that using this template in such cases is quicker to type and makes the table code easier to read (provided you know what this template does). If more styling is required, then obviously this template should not be used.

Any input to the template is ignored (and so can be used to leave short explanatory notes for future editors, if that is desired — but that kind of defeats the original purpose of the template).

The name of the template is based on the word "center".

Usage

  • {{ctr}}

Example

  • Used in a table:
{| class="wikitable"
|{{ctr}}| five || six
|-
|{{ctr}}| seven || eight
|}
 ⇒ 
five six
seven eight