Template:Table row/doc

From Angelina Jordan Wiki
Revision as of 05:43, 13 January 2021 by Dcljr (talk | contribs) (doc created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a subpage documenting Template:Table row. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template outputs the code to form one 2-column row in a table, with a header cell ("label") in the left column and a data cell ("content") in the right column, as seen in the example below.

Note that the template is not intended to be used for general-purpose, arbitrary table rows. Its main purpose is to facilitate the creation of infoboxes.

Usage

  • {{table row|label|content}}

Example

  • <table class="wikitable">{{table row}}</table>
  • <table class="wikitable">{{table row|This|That}}</table>
This That

As can be seen in this example, tables on this wiki tend to use HTML style code rather than wiki style code since the former seems to be slightly more "robust" (i.e., less error-prone) than the latter.