编辑“︁
Template:Bar box/doc
”︁(章节)
跳转到导航
跳转到搜索
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
=== Chart contents === Bar box can contain any number of bars. There are four types of bars: *Percentage bar: <pre>{{bar percent|row label|colour|value (width in percents)|optional value label}}</pre> If value label is not provided, it is constructed from the percentage and "%". This bar type also has the {{tl2|bar percent 2}} and {{tl2|bar percent 3}} variations which display more bars for the same row label. *Pixel bar: <pre>{{bar pixel|row label|colour|value (width in pixels)|value suffix|optional value label}}</pre> 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: <pre>{{bar pixel|foo|red|12||12,345}} {{bar pixel|foo|red|12|,345}}</pre> This bar type also has the {{tl2|bar pixel 2}} variation which displays two bars for the same row label. *Stacked bars: <pre>{{bar stacked|1st left label|1st right label|color 1|width 1 (in pixels)|...|color 5|width 5 (in pixels)|note1=2nd left label|note2=2nd right label|align=xxxx(l|c|r|d)|collapsed=(yes|y|1)|id=collapsible id}}</pre> <code>align</code> sets the text-alignment (left, center, right or default) for each column based on the respective initials. All parameters are optional, but if <code>id</code> is not supplied, <code>collapsed</code> has no effect. Use a custom toggle as the default toggle will distort the chart (see the last example). *Gap bar: <pre>{{bar gap|optional separator|height=any valid length (omitting unit defaults to px, default is 10px)}}</pre> Ommiting the <code>separator</code> generates a blank row. Another useful <code>separator</code> is <code><nowiki><hr></nowiki></code> which produces a horizontal line.
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息