Template:Rt/doc

From Angelina Jordan Wiki
Revision as of 22:09, 13 July 2024 by Dcljr (talk | contribs) (+ cat:for style)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a subpage documenting Template:Rt. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template provides a style attribute (seen above) that causes text to be aligned to the right. 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 "right".

Usage

  • {{rt}}

Example

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