编辑“︁
Template:Data bars/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Data bars
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
== Usage == This is a template for displaying a bar chart.<!---------------------- : Advantages are that it is easy to build and displays a complex, color-keyed chart. : A disadvantage is that the size is limited to a maximum of sixteen bars, each containing a maximum of 8 colored elements. : If you need a larger chart, you might use sub-template <nowiki>{{</nowiki>[[Template:Data bars/bar|Data bars/bar]]<nowiki>}}</nowiki> to build your own chart table manually, or see other [[:Category:Bar chart templates|Bar chart templates]] such as <nowiki>{{</nowiki>[[Template:Bar box|Bar box]]<nowiki>}}</nowiki> and <nowiki>{{</nowiki>[[Template:Bar chart|Bar chart]]<nowiki>}}</nowiki> .--------> {| cellpadding="0" cellspacing="0" |- style="vertical-align:top;" | {| | Simple example in the default style:<syntaxhighlight lang="wikitext"> {{Data bars | columns = 6 | Jan| Feb| Mar| Apr| May| Jun | blue|Berries| 65| 38| 72| 47| 20| 30 }} </syntaxhighlight> |} | {{Data bars | columns = 6 | Jan| Feb| Mar| Apr| May| Jun | blue|Berries| 65| 38| 72| 47| 20| 30 }} |- style="vertical-align:top;" | {| | Same thing, but horizontal ('''style=2'''):<syntaxhighlight lang="wikitext"> {{Data bars | style = 2 | columns = 6 | Jan| Feb| Mar| Apr| May| Jun | blue|Berries| 65| 38| 72| 47| 20| 30 }} </syntaxhighlight> |} | {{Data bars | style = 2 | columns = 6 | Jan| Feb| Mar| Apr| May| Jun | blue|Berries| 65| 38| 72| 47| 20| 30 }} |} {| cellspacing="0" cellpadding="o" |- style="vertical-align:bottom;" | Given multiple data rows that look like this: |- | style="text-align:right;padding-right:48px;" | <big>'''↔'''</big> '''Max. data columns:''' 16 <big>'''↔'''</big> |- | <syntaxhighlight lang="wikitext"> {{Data bars | columns = 12 |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec | green| Apples| 60| 70| 90| 30| 50| 30|100|130|120| 90| 50|110 |yellow| Bananas| 90| 80|110| 60| 70| 80| 70| 70| 40| 50| 50| 60 |orange| Oranges| 50| 40| 60|110| 90| 60| 30| 60| 70| 60| 80| 40 }} </syntaxhighlight> | style="vertical-align:middle;padding-left:16px;" | <big>'''↕'''</big> '''Max. data rows:''' 8 <big>'''↕'''</big> |- | colspan="2" | : ...the template displays a complex, color-keyed chart that looks like this: {| style="float:right;" | {{Data bars | columns = 12 |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec | green| Apples| 60| 70| 90| 30| 50| 30|100|130|120| 90| 50|110 |yellow| Bananas| 90| 80|110| 60| 70| 80| 70| 70| 40| 50| 50| 60 |orange| Oranges| 50| 40| 60|110| 90| 60| 30| 60| 70| 60| 80| 40 }} |} |} <!------------------------- ; ''Important!'' : The "labels row" (at the beginning of the table) does not have a color or a name, but must hold a number of labels exactly equal to the specified number of '''columns''' (maximum of 16). : Then, every data row (maximum of 8) must begin with a '''color''' and a '''name''', followed by a '''value''' (a positive number, 0, or a blank field) for each and every "column." : In compact styles, pointing the cursor at colors reveals the numbers that they represent, including the '''totals''' within the color key. : If you prefer more visible detail, or <u>if you need '''averages''' instead of totals</u>, see [[#Styles|'''Styles''']], below.------------>
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息