模板:Hungerbar/doc
跳至導覽
跳至搜尋
版之所刻,Module:Iconbar也有與焉。以盧倭鑄也。
詳請參閱《維基大典·盧倭》以及《MediaWiki·擴·Scribunto》。
此模板用于创建饥饿栏。
参数 | 功能 | 默认值 |
---|---|---|
1 |
0至32间的整数值。空=0,半饱食度=1,整饱食度=2,参见下面的示例。 | 0 |
2 |
每个图标的宽度,单位为CSS内的单位,如“px”或“em”。 | 18px |
poisoned |
显示中毒的饥饿栏。 | 0 |
total |
显示饱食度的总数。 | 0 |
代码 | 输出 |
---|---|
{{hungerbar}} | |
{{hungerbar|0|9px}} | |
{{hungerbar|1}} | |
{{hungerbar|1|9px|poisoned=1}} | |
{{hungerbar|2}} | |
{{hungerbar|2|9px|poisoned=1}} | |
{{hungerbar|5}} | |
{{hungerbar|5|poisoned=1}} | |
{{hungerbar|10}} | |
{{hungerbar|10|poisoned=1}} | |
{{hungerbar|5|9px}} | |
{{hungerbar|5|9px|poisoned=1}} | |
{{hungerbar|7|45px}} | |
{{hungerbar|7|45px|poisoned=1}} | |
{{hungerbar|7|total=20}} | |
{{hungerbar|7|total=20|poisoned=1}} |
另见[纂碼]
{{Armorbar}}
{{Healthbar}}
{{Hungerbar}}
{{Iconbar}}
- Module:Iconbar