Difference between revisions of "Template:Decimal-align/doc"

From blackwiki
Jump to navigation Jump to search
imported>Swpb
(Created page with '{{Documentation subpage}} {{Lua|Module:Decimal-align}} Aligns numbers in multiple table cells on the decimal point. Can wrap wikitext, including multi-cell outpu...')
 
imported>Swpb
Line 10: Line 10:
 
| 1 (unnamed) || cells to perform alignment on
 
| 1 (unnamed) || cells to perform alignment on
 
|-
 
|-
| left (optional) || percentage of each cell to devote to digits left of the decimal (defaults to 50%)
+
| leftx (optional, x = 1 to 10) || alignment of the decimal point within column x
 +
|-
 +
| left (optional) || default alignment of the decimal point if no "leftx" argument is given (defaults to 50%)
 
|}
 
|}
  

Revision as of 20:13, 24 January 2019

Aligns numbers in multiple table cells on the decimal point. Can wrap wikitext, including multi-cell outputs of {{convert}}.

Arguments

Argument Meaning
1 (unnamed) cells to perform alignment on
leftx (optional, x = 1 to 10) alignment of the decimal point within column x
left (optional) default alignment of the decimal point if no "leftx" argument is given (defaults to 50%)

See also

  • Template:Decimal cell, similar template that operates on single table cells only and splits them into separate cells