<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://ejwiki.org/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ABar_box%2Fdoc</id>
	<title>Шаблон:Bar box/doc - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://ejwiki.org/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ABar_box%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://ejwiki.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Bar_box/doc&amp;action=history"/>
	<updated>2026-05-11T17:00:10Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ejwiki.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Bar_box/doc&amp;diff=157866&amp;oldid=prev</id>
		<title>Л.Гроервейдл: Новая страница: «{{Documentation subpage}} &lt;includeonly&gt;&lt;!-----------------Interwiki Doc page pattern-------------------&gt;{{-}} &lt;small&gt;&#039;&#039;This &#039;{{BASEPAGENAME}}&#039; template documentation…»</title>
		<link rel="alternate" type="text/html" href="https://ejwiki.org/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Bar_box/doc&amp;diff=157866&amp;oldid=prev"/>
		<updated>2011-12-25T09:40:24Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «{{Documentation subpage}} &amp;lt;includeonly&amp;gt;&amp;lt;!-----------------Interwiki Doc page pattern-------------------&amp;gt;{{-}} &amp;lt;small&amp;gt;&amp;#039;&amp;#039;This &amp;#039;{{BASEPAGENAME}}&amp;#039; template documentation…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&amp;lt;!-----------------Interwiki Doc page pattern-------------------&amp;gt;{{-}}&lt;br /&gt;
&amp;lt;small&amp;gt;&amp;#039;&amp;#039;This &amp;#039;{{BASEPAGENAME}}&amp;#039; template documentation is [[w:Wikipedia:Template doc page pattern|transcluded]] for all Bar box/doc including templates&amp;#039;&amp;#039; [&amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[{{fullurl:Template:Bar box/doc |action=edit}} edit]&amp;lt;/span&amp;gt;].{{#ifeq:{{SITENAME}}|Wikipedia|&amp;amp;nbsp;|[[W:template:{{PAGENAMEE}}|Masterpage]]&lt;br /&gt;
&amp;amp;nbsp;}}&amp;lt;/small&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{-}}&lt;br /&gt;
&amp;lt;!-- Add the Categories for this doc or usage page (only-- not for the calling template) BELOW THIS LINE ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- EDIT the /doc (or THIS usage page only) Interwiki&amp;#039;s BELOW THIS LINE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- -----------------------------------------------------------&lt;br /&gt;
---- Self declarations, this page, not the parent template. &lt;br /&gt;
---- ------------------------------------------------------ ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt; &lt;br /&gt;
&amp;lt;!-- EDIT IN (calling) TEMPLATE CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Bar chart templates|{{PAGENAME}}]]&lt;br /&gt;
&amp;lt;!-- EDIT IN (calling) TEMPLATE CATEGORIES ABOVE THIS LINE --&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt; &lt;br /&gt;
{{tl2|bar box}}, {{tl2|bar percent}} and {{tl2|bar pixel}} are a family of templates for construction of horizontal bar charts.&lt;br /&gt;
==Usage==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;Bar box&lt;br /&gt;
 |width   =  &amp;#039;&amp;#039;width of the graph&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |barwidth=  &amp;#039;&amp;#039;width of the bararea&amp;#039;&amp;#039; (optional, defaults to 100px)&lt;br /&gt;
 |float   =  (left|right|none) (optional, defaults to none)&lt;br /&gt;
 |title   =  &amp;#039;&amp;#039;title of the chart&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |titlebar=  &amp;#039;&amp;#039;title bar colour&amp;#039;&amp;#039; (optional, defaults to none)&lt;br /&gt;
 |left1   =  &amp;#039;&amp;#039;first left column header&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |left2   =  &amp;#039;&amp;#039;second left column header&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |right1  =  &amp;#039;&amp;#039;first right column header&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |right2  =  &amp;#039;&amp;#039;second right column header&amp;#039;&amp;#039; (optional)&lt;br /&gt;
 |bars    =  &amp;#039;&amp;#039;chart contents&amp;#039;&amp;#039;(see below)&lt;br /&gt;
 |caption =  &amp;#039;&amp;#039;caption under the chart&amp;#039;&amp;#039;   (optional)}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
===Chart contents===&lt;br /&gt;
Bar box can contain any number of bars. There are two types of bars:&lt;br /&gt;
*Percentage bar: &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bar percent|row label|colour|value (width in percents)|optional value label&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If value label is not provided, it is constructed from the percentage and &amp;quot;%&amp;quot;.&lt;br /&gt;
*Pixel bar: &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bar pixel|row label|colour|value (width in pixels)|value suffix|optional value label&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If value label is provided, value suffix is ignored. Otherwise, the value label is constructed from the value and the value suffix. This is used as shorthand. Both following examples give identical results:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bar pixel|foo|red|12||12,345&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;bar pixel|foo|red|12|3,45&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{bar box&lt;br /&gt;
|float=right&lt;br /&gt;
|caption=distribution of stuff&lt;br /&gt;
|width=200px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar percent|foo|red|30}}&lt;br /&gt;
{{bar percent|bar|green|40}}&lt;br /&gt;
{{bar percent|baz|blue|20}}&lt;br /&gt;
{{bar percent|bla|orange|8}}&lt;br /&gt;
{{bar percent|bla|teal|2|1/50}}&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{bar box&lt;br /&gt;
|float=right&lt;br /&gt;
|caption=distribution of stuff&lt;br /&gt;
|barwidth=200px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar percent|foo|red|30}}&lt;br /&gt;
{{bar percent|bar|green|40}}&lt;br /&gt;
{{bar percent|baz|blue|20}}&lt;br /&gt;
{{bar percent|bla|orange|8}}&lt;br /&gt;
{{bar percent|bla|teal|2|1/50}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{clear}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{bar box&lt;br /&gt;
|title=Quantity of stuff&lt;br /&gt;
|titlebar=#DDD&lt;br /&gt;
|left1=kinds of stuff&lt;br /&gt;
|right2=pcs.&lt;br /&gt;
|width=400px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar pixel|Foobar|red|33|,213}}&lt;br /&gt;
{{bar pixel|Barfoo|green|123|,123}}&lt;br /&gt;
{{bar pixel|Bazbar|blue|210|,121}}&lt;br /&gt;
{{bar pixel|Barfoobaz|orange|13||12,854}}&lt;br /&gt;
|caption=Some stuff displayed by quantity.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{bar box&lt;br /&gt;
|title=Quantity of stuff&lt;br /&gt;
|titlebar=#DDD&lt;br /&gt;
|left1=kinds of stuff&lt;br /&gt;
|right2=pcs.&lt;br /&gt;
|width=400px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar pixel|Foobar|red|33|,213}}&lt;br /&gt;
{{bar pixel|Barfoo|green|123|,123}}&lt;br /&gt;
{{bar pixel|Bazbar|blue|210|,121}}&lt;br /&gt;
{{bar pixel|Barfoobaz|orange|13||12,854}}&lt;br /&gt;
|caption=Some stuff displayed by quantity.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{clear}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{bar box&lt;br /&gt;
|float=right&lt;br /&gt;
|title=Election results&lt;br /&gt;
|titlebar=#AAF&lt;br /&gt;
|left1=party&lt;br /&gt;
|left2=year&lt;br /&gt;
|right1=votes&lt;br /&gt;
|right2=change&lt;br /&gt;
|width=300px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar percent 2|Left|1898|silver|33|1902|red|42|+9%}}&lt;br /&gt;
{{bar percent 2|Right|1898|silver|40|1902|black|35|-5%}}&lt;br /&gt;
{{bar percent 2|Middle|1898|silver|17|1902|blue|10|-7%}}&lt;br /&gt;
{{bar percent 2|Other|1898|silver|10|1902|gray|13|+3%}}&lt;br /&gt;
|caption=1902 and 1898 election results in Freedonia compared.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{bar box&lt;br /&gt;
|float=right&lt;br /&gt;
|title=Election results&lt;br /&gt;
|titlebar=#AAF&lt;br /&gt;
|left1=party&lt;br /&gt;
|left2=year&lt;br /&gt;
|right1=votes&lt;br /&gt;
|right2=change&lt;br /&gt;
|width=300px&lt;br /&gt;
|bars=&lt;br /&gt;
{{bar percent 2|Left|1898|silver|33|1902|red|42|+9%}}&lt;br /&gt;
{{bar percent 2|Right|1898|silver|40|1902|black|35|-5%}}&lt;br /&gt;
{{bar percent 2|Middle|1898|silver|17|1902|blue|10|-7%}}&lt;br /&gt;
{{bar percent 2|Other|1898|silver|10|1902|gray|13|+3%}}&lt;br /&gt;
|caption=1902 and 1898 election results in Freedonia compared.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|bar chart}}&lt;br /&gt;
* [[WP:Graphs]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ---------------------------------------------------------------------------&lt;br /&gt;
---- Calling or parent template declarations, the parent template, not this page. &lt;br /&gt;
---- ----------------------------------------------------------------------- -----&lt;br /&gt;
---&amp;gt;&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!---  This is correct placement (inside includeonly block + towards the &amp;#039;doc/usage&amp;#039; page bottom) and the call is correct for auto-categorization of many tools templates pages&amp;#039; generating internal links. This template call can be located anywhere in the documentation, but&lt;br /&gt;
should be kept inside the includeonly fence. A bottom location like this interferes least with display and formating of comprehensible documentation, but moving it up so text ends about the same point as the template display is a good thing for later edit needs. By keeping template interwiki&amp;#039;s inside an includeonly block, this page can be given it&amp;#039;s own, which is unimportant when the page is a collected usage page for similar templates, but good for /doc pages.&lt;br /&gt;
&lt;br /&gt;
Quick Usage on V=## parameter: 1==internal links, 2==interwiki links, 3==Miscellaneous, 4==1+3, 5==2+3, 6==1+2+3 or just (1+2) when &amp;#039;inhib=yes|&amp;#039; parameter defined as well... such as {{Tl|Commonscat1A}}, where a category link is interwiki, and a link is to main article. Parameter: &amp;#039;cat=bare cat name &amp;#039; supplants miscellaneous, and is used for typing-aid or uncategorized types (sub-cats of miscellaneous); &amp;#039;CATS=must be given full names with square parenthesis, and add on to the V=## auto-categories. &amp;lt;nowiki&amp;gt; {{{1}}}} is pipelink sort name for the auto-cats, in &amp;#039;CATS=&amp;#039; calls, you must add such to the pass parameter. {{{2}}} is &amp;#039;universal&amp;#039; override name, otherwise template name defaults to {{PAGENAME}} in links built and displayed. This is primarily used in Name Case Variants, where a naming collision occurs on a sister project.  ---&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- EDIT/ADD TEMPLATE Interwiki&amp;#039;s BELOW THIS LINE --&amp;gt;&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Л.Гроервейдл</name></author>
	</entry>
</feed>