<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ABartable%2Fdoc</id>
	<title>Template:Bartable/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ABartable%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Bartable/doc&amp;action=history"/>
	<updated>2026-04-23T20:07:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Bartable/doc&amp;diff=12470&amp;oldid=prev</id>
		<title>Cvr: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Bartable/doc&amp;diff=12470&amp;oldid=prev"/>
		<updated>2014-08-22T07:26:34Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:26, 22 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Cvr</name></author>
		
	</entry>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Template:Bartable/doc&amp;diff=12469&amp;oldid=prev</id>
		<title>Frietjes: /* 3-column (positive and negative values) */</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Template:Bartable/doc&amp;diff=12469&amp;oldid=prev"/>
		<updated>2014-08-13T14:31:08Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;3-column (positive and negative values)&lt;/span&gt;&lt;/span&gt;&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;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template adds an inline bar graph to tables with numeric (including negative) values that a reader may wish to compare.&lt;br /&gt;
&lt;br /&gt;
Use this template inside a table. The template generates either two table cells (for cases in which all values are positive) or three (to accommodate negative bars going off to the left). Thus, your table headers should have '''colspan=&amp;quot;2&amp;quot;''' or '''colspan=&amp;quot;3&amp;quot;''' (or similar combinations), respectively, to correctly span the columns.&lt;br /&gt;
&lt;br /&gt;
The template generates two cells if the ''scale'' parameter is positive and three if it is negative.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bartable|''value''|''unit''|''scale''|''height''|''style''&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; ''value'' (mandatory) : any real number or math expression that evaluates to a number. Commas can be used to [[Digit_grouping|group digits]]. See [[Help:Calculation]] for the syntax for math expressions.&lt;br /&gt;
; ''unit'' (default = empty string) : the unit, e.g. &amp;quot;m&amp;quot; for metres. Prepend a space if you want a space between the value and the unit. If ''unit'' starts with &amp;quot;''/''&amp;quot;, the value is converted between units (using the '''[[Template:Convert|convert]]''' template) as follows:&lt;br /&gt;
:: &amp;quot;''/unit1/unit2/round''&amp;quot; converts the value from ''unit1'' to ''unit2'' and rounds it to ''round'' decimal places (using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;convert|''value''|''unit1''|''unit2''|''round''|abbr=on&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). Unfortunately ''unit1'', ''unit2'' or ''round'' cannot contain a &amp;quot;''/''&amp;quot; or a &amp;quot;=&amp;quot; — if anyone knows how to allow it (or translate other characters to it), please help.&lt;br /&gt;
; ''scale'' (default = 1) : a factor multiplied by ''value'' to give the width of the bar in pixels. Use the same scale in every row, as otherwise the bar chart won’t be to scale!&lt;br /&gt;
: ''scale'' can be negative, in which case an additional column (for showing negative values) is created. See [[#3-column (positive and negative values)|example below]].&lt;br /&gt;
; ''height'' (default = &amp;quot;2ex&amp;quot;) : the height of the bar as a [[cascading style sheet|CSS]] measurement e.g. &amp;quot;1em&amp;quot; or &amp;quot;16px&amp;quot;.&lt;br /&gt;
; ''style'' (default = empty string) : a CSS style string to apply to the bar, e.g. &amp;quot;background:red;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
{{for|pages using this template|Special:WhatLinksHere/Template:Bartable}}&lt;br /&gt;
&lt;br /&gt;
=== Real-world example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Melting point at 1 atmosphere&lt;br /&gt;
! Substance  !! Temperature !! colspan=&amp;quot;2&amp;quot; | Relative size&lt;br /&gt;
|-&lt;br /&gt;
| Mercury    || {{bartable| -38.72|/C/F|-2|1em|background:silver}}&lt;br /&gt;
|-&lt;br /&gt;
| Bromine    || {{bartable|  -7.10|/C/F|-2|1em|background:brown}}&lt;br /&gt;
|-&lt;br /&gt;
| Water      || {{bartable|      0|/C/F|-2|1em}}&lt;br /&gt;
|-&lt;br /&gt;
| Phosphorus || {{bartable|  44.10|/C/F|-2|1em|background:red}}&lt;br /&gt;
|-&lt;br /&gt;
| Iodine     || {{bartable| 113.50|/C/F|-2|1em|background:indigo}}&lt;br /&gt;
|-&lt;br /&gt;
| Sulphur    || {{bartable| 115.36|/C/F|-2|1em|background:yellow}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Melting point at 1 atmosphere&lt;br /&gt;
! Substance  !! Temperature !! colspan=&amp;quot;2&amp;quot; | Relative size&lt;br /&gt;
|-&lt;br /&gt;
| Mercury    || {{bartable| -38.72|/C/F|-2|1em|background:silver}}&lt;br /&gt;
|-&lt;br /&gt;
| Bromine    || {{bartable|  -7.10|/C/F|-2|1em|background:brown}}&lt;br /&gt;
|-&lt;br /&gt;
| Water      || {{bartable|      0|/C/F|-2|1em}}&lt;br /&gt;
|-&lt;br /&gt;
| Phosphorus || {{bartable|  44.10|/C/F|-2|1em|background:red}}&lt;br /&gt;
|-&lt;br /&gt;
| Iodine     || {{bartable| 113.50|/C/F|-2|1em|background:indigo}}&lt;br /&gt;
|-&lt;br /&gt;
| Sulphur    || {{bartable| 115.36|/C/F|-2|1em|background:yellow}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 2-column (only positive values) ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Example                             || colspan=&amp;quot;2&amp;quot; | Rendering&lt;br /&gt;
|-&lt;br /&gt;
| Only value                          || {{bartable|272}}&lt;br /&gt;
|-&lt;br /&gt;
| Negative value                      || {{bartable|-72}}&lt;br /&gt;
|-&lt;br /&gt;
| Math expression                     || {{bartable|exp(1)*1e2}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (note added space)   || {{bartable|272| km/h}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (link to definition) || {{bartable|272|[[Degree_(angle)|&amp;amp;deg;]]}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with formatting)    || align=&amp;quot;right&amp;quot;|''&amp;amp;theta;'' = {{bartable|272|&amp;amp;deg;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with conversion)    || {{bartable|272|/km/mi}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and scale                     || {{bartable|272||1/(2^0.5)}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and height                    || {{bartable|272|||4px}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and style                     || {{bartable|272||||background:blue;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value with commas, and scale        || {{bartable|2,720||.1}}&lt;br /&gt;
|-&lt;br /&gt;
| The full monty                      || {{bartable|18^2|%|sin(1)|2em|border:ridge red;}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Example                             || colspan=&amp;quot;2&amp;quot; | Rendering&lt;br /&gt;
|-&lt;br /&gt;
| Only value                          || {{bartable|272}}&lt;br /&gt;
|-&lt;br /&gt;
| Negative value                      || {{bartable|-72}}&lt;br /&gt;
|-&lt;br /&gt;
| Math expression                     || {{bartable|exp(1)*1e2}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (note added space)   || {{bartable|272| km/h}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (link to definition) || {{bartable|272|[[Degree_(angle)|&amp;amp;deg;]]}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with formatting)    || align=&amp;quot;right&amp;quot;|''&amp;amp;theta;'' = {{bartable|272|&amp;amp;deg;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with conversion)    || {{bartable|272|/km/mi}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and scale                     || {{bartable|272||1/(2^0.5)}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and height                    || {{bartable|272|||4px}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and style                     || {{bartable|272||||background:blue;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value with commas, and scale        || {{bartable|2,720||.1}}&lt;br /&gt;
|-&lt;br /&gt;
| The full monty                      || {{bartable|18^2|%|sin(1)|2em|border:ridge red;}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== 3-column (positive and negative values) ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Example                             || colspan=&amp;quot;3&amp;quot; | Rendering&lt;br /&gt;
|-&lt;br /&gt;
| Only value                          || {{bartable|272||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Negative value                      || {{bartable|-72||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Math expression                     || {{bartable|exp(1)*1e2||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (note added space)   || {{bartable|272| km/h|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (link to definition) || {{bartable|272|[[Degree_(angle)|&amp;amp;deg;]]|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with formatting)    || align=&amp;quot;right&amp;quot;|''&amp;amp;theta;'' = {{bartable|272|&amp;amp;deg;|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with conversion)    || {{bartable|272|/km/mi|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and scale                     || {{bartable|272||-1/(2^0.5)}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and height                    || {{bartable|272||-1|4px}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and style                     || {{bartable|272||-1||background:blue;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value with commas, and scale        || {{bartable|2,720||-.1}}&lt;br /&gt;
|-&lt;br /&gt;
| The full monty                      || {{bartable|18^2|%|sin(-1)|2em|border:ridge red;}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Example                             || colspan=&amp;quot;3&amp;quot; | Rendering&lt;br /&gt;
|-&lt;br /&gt;
| Only value                          || {{bartable|272||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Negative value                      || {{bartable|-72||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Math expression                     || {{bartable|exp(1)*1e2||-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (note added space)   || {{bartable|272| km/h|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (link to definition) || {{bartable|272|[[Degree_(angle)|&amp;amp;deg;]]|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with formatting)    || align=&amp;quot;right&amp;quot;|''&amp;amp;theta;'' = {{bartable|272|&amp;amp;deg;|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and unit (with conversion)    || {{bartable|272|/km/mi|-1}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and scale                     || {{bartable|272||-1/(2^0.5)}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and height                    || {{bartable|272||-1|4px}}&lt;br /&gt;
|-&lt;br /&gt;
| Value and style                     || {{bartable|272||-1||background:blue;}}&lt;br /&gt;
|-&lt;br /&gt;
| Value with commas, and scale        || {{bartable|2,720||-.1}}&lt;br /&gt;
|-&lt;br /&gt;
| The full monty                      || {{bartable|18^2|%|sin(-1)|2em|border:ridge red;}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|composition bar}}&lt;br /&gt;
* {{tl|bar chart}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:Table and column templates]]&lt;br /&gt;
[[Category:Conversion templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Frietjes</name></author>
		
	</entry>
</feed>