编辑“︁
Template:Brick chart/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Brick chart
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
=== 示例 === {{Brick chart |style=Bricks | caption=Example of 6 amounts | value1=42 | label1=one | value2=32 | label2=two | value3=12 | label3=three | value4=3 | label4=four | value5=2 | label5=five | value6=0.4 | label6=six }} The following 2 examples have numbers in the range of 0-100 units, as percentages. The total is assumed as total=100, to calculate the "other" amount by subtracting all brick values from 100. <pre> {{Brick chart | caption=Example of 6 amounts | value1=42 | label1=one | value2=32 | label2=two | value3=12 | label3=three | value4=3 | label4=four | value5=2 | label5=five | value6=0.4 | label6=six }} </pre> Note how the bottom value, <code>value6=0.4</code>, generates a "tiny sliver" of a brick, and the calculated remainder, the "other" value is also a decimal amount as 8.6. The brick colours use the defaults: red, dark green, blue, yellow, purple, and [[青色|cyan]], as the first 6 hues. The next example, below, shows use of some colour parameters by setting: <code>color1, color2, color3</code>. {{clear}}<hr width=380px> {{Brick chart | caption=Religion in the Czech Republic | label1 = [[无神论]]s / [[不可知论]]s | value1 = 59 | color1 = silver | label2 = [[天主教會s]] | value2 = 26.8 | color2 = #008 | label3 = [[新教]] | value3 = 2.5 | color3 = #08f | legend_margin=0 0 0 6px }} <pre> {{Brick chart | caption=Religion in the Czech Republic | label1 = [[无神论]]s / [[不可知论]]s | value1 = 59 | color1 = silver | label2 = [[天主教會]] | value2 = 26.8 | color2 = #008 | label3 = [[新教]] | value3 = 2.5 | color3 = #08f | legend_margin=0 0 0 6px }} </pre> The 2nd example, for Religion in the Czech Republic, shows the use of indented parameters for the value/color under each label phrase. The color #008 (for "Catholic") is a [[十六进制|hexadecimal]] code for dark blue, using [[三原色光模式|RGB]] notation, where the 3rd digit "8" is half of blue intensity levels, 0-F. It is customary to list the larger percentages first, in a table; however, the numbers can be displayed in any order as needed for the text on a page. A small decimal amount, such as 0.4, will show a tiny sliver among the various brick bars. The option "legend_margin=0 0 0 6px" resets the alignment of the legend boxes, as only 6 [[像素|pixels]] from the left margin (default: 3px 0 0 10px). {{clear}} {{Brick chart |style=Bricks |caption = 德国国会议席分布 |total = 614 |unit = 席 |stride = 20 |brick_size=2.6 |label1=[[德国基督教民主联盟]] | color1=black | value1=180 |label2=[[巴伐利亚基督教社会联盟]] | color2=#ccf | value2=46 |label3=[[德国社会民主党]] | color3=red | value3=222 |label4=[[自由民主党 (德国)]] | color4=yellow | value4=61 |label5=[[民主社会主义党 (德国)]] | color5=#800 | value5=54 |label6=[[联盟90/绿党]] | color6=green | value6=51 }} '''Larger amounts:''' The following example has numbers in the range of 0-300 units, as counts. The total is set to total=614. The options stride=20 and brick_size=2.6 scale the bar line segments to fit within the box, rather than 6x times larger, as 614 compared to 100. <pre> {{Brick chart |caption = 德国国会议席分布 |total = 614 |unit = 席 |stride = 20 |brick_size=2.6 |label1=[[基督教民主联盟党]] | color1=black | value1=180 |label2=[[巴伐利亚基督教社会联盟]] | color2=#ccf | value2=46 |label3=[[德国社会民主党]] | color3=red | value3=222 |label4={{tsl|en|Free Democratic Party|}} | color4=yellow | value4=61 |label5=[[民主社会主义党 (德国)]] | color5=#800 | value5=54 |label6=[[联盟90/绿党]] | color6=green | value6=51 }} </pre>
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息