<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADecimal_cell%2Fdoc</id>
	<title>Template:Decimal cell/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3ADecimal_cell%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Decimal_cell/doc&amp;action=history"/>
	<updated>2026-05-10T00:30:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Decimal_cell/doc&amp;diff=36023&amp;oldid=prev</id>
		<title>imported&gt;Cedar101: /* Examples */ syntaxhighlight</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Decimal_cell/doc&amp;diff=36023&amp;oldid=prev"/>
		<updated>2022-07-12T12:54:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples: &lt;/span&gt; syntaxhighlight&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This template simulates decimal-alignment for a table cell by splitting a decimal number to place integer and fractional portions into two separate cells and minimizing the space between those cells. See [[Help:Table#Decimal point alignment]] for more information.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template requires a single un-named parameter: the value to format.&lt;br /&gt;
&lt;br /&gt;
An optional named {{para|style|&amp;lt;var&amp;gt;CSS string&amp;lt;/var&amp;gt;}} parameter can be used to pass a [[Cascading Style Sheets|CSS]] style string to apply to the cell or the text in it. The semicolon at the end of this string is optional. NB: do not quote this string (FIXME!). You can use wiki-markup or HTML tags to format the text, but you must separately format the integer and decimal parts independently and there is no way to format the decimal-point itself using these methods.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{|&lt;br /&gt;
! Wiki source&lt;br /&gt;
! Rendered result&lt;br /&gt;
|-style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;tid&amp;quot;&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! Example #&lt;br /&gt;
! colspan=2 | Aligned&lt;br /&gt;
! Plain&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| {{decimal cell|10}}&lt;br /&gt;
| 10&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| {{decimal cell|12345}}&lt;br /&gt;
| 12345&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| {{decimal cell|.1234}}&lt;br /&gt;
| .1234&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| {{decimal cell|style=background:#ffffcc|10.}}&lt;br /&gt;
| style=&amp;quot;background:#ffffcc&amp;quot; | 10.&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| {{decimal cell|style=text-decoration: underline|10.2}}&lt;br /&gt;
| style=&amp;quot;text-decoration: underline&amp;quot; | 10.2&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| {{decimal cell|&amp;lt;u&amp;gt;1&amp;lt;/u&amp;gt;.&amp;lt;u&amp;gt;2&amp;lt;/u&amp;gt;345}}&lt;br /&gt;
| &amp;lt;u&amp;gt;1&amp;lt;/u&amp;gt;.&amp;lt;u&amp;gt;2&amp;lt;/u&amp;gt;345&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| colspan=2 | 123&lt;br /&gt;
| 123&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| style=&amp;quot;padding-left:1em&amp;quot; |&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! Example #&lt;br /&gt;
! colspan=2 | Aligned&lt;br /&gt;
! Plain&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| {{decimal cell|10}}&lt;br /&gt;
| 10&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| {{decimal cell|12345}}&lt;br /&gt;
| 12345&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| {{decimal cell|.1234}}&lt;br /&gt;
| .1234&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| {{decimal cell|style=background:#ffffcc|10.}}&lt;br /&gt;
| style=&amp;quot;background:#ffffcc&amp;quot; | 10.&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| {{decimal cell|style=text-decoration: underline|10.2}}&lt;br /&gt;
| style=&amp;quot;text-decoration: underline&amp;quot; | 10.2&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| {{decimal cell|&amp;lt;u&amp;gt;1&amp;lt;/u&amp;gt;.&amp;lt;u&amp;gt;2&amp;lt;/u&amp;gt;345}}&lt;br /&gt;
| &amp;lt;u&amp;gt;1&amp;lt;/u&amp;gt;.&amp;lt;u&amp;gt;2&amp;lt;/u&amp;gt;345&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| colspan=2 | 123&lt;br /&gt;
| 123&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Other examples:&lt;br /&gt;
* [[Help:Table#Decimal point alignment]]&lt;br /&gt;
* [[List of countries by level of military equipment#List]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Template:Decimal-align]], similar template that uses &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt; elements instead of separate cells, and can wrap wikitext (including multiple table cells).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:table cell templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Cedar101</name></author>
	</entry>
</feed>