Diferencia entre revisiones de «Plantilla:Healthbar»
m |
|||
(No se muestran 4 ediciones intermedias de 3 usuarios) | |||
Línea 1: | Línea 1: | ||
− | <includeonly>{{ | + | <includeonly>{{#invoke: Iconbar | bar |
− | | full | + | | full = {{ |
− | | half | + | #if: {{{mob|}}} |
− | | empty = Empty Heart. | + | | Mob |
− | | size = {{ #if: {{{2|}}} | {{{2}}} | 18px }} | + | | {{#if: {{{poisoned|}}} |
− | | value = {{ #if: {{{1|}}} | {{{1}}} | 0 }} | + | | Poisoned |
+ | | {{#if: {{{withered|}}} | ||
+ | | Withered | ||
+ | | {{#if: {{{absorption|}}} | Absorption }} | ||
+ | }} | ||
+ | }} {{#if: {{{hardcore|}}} | Hardcore }} | ||
+ | }} Heart.svg | ||
+ | | half = {{ | ||
+ | #if: {{{mob|}}} | ||
+ | | Mob | ||
+ | | {{#if: {{{poisoned|}}} | ||
+ | | Poisoned | ||
+ | | {{#if: {{{withered|}}} | ||
+ | | Withered | ||
+ | | {{#if: {{{absorption|}}} | Absorption }} | ||
+ | }} | ||
+ | }} {{#if: {{{hardcore|}}} | Hardcore }} | ||
+ | }} Half Heart.svg | ||
+ | | empty = Empty Heart.svg | ||
+ | | size = {{#if: {{{2|}}} | {{{2}}} | 18px }} | ||
+ | | value = {{{1|}}} | ||
+ | | title = {{#if: {{{1|}}} | {{{1}}} | 0 }} {{ | ||
+ | #if: {{{poisoned|}}}{{{withered|}}}{{{hardcore|}}}{{{mob|}}}{{{absorption|}}} | ||
+ | | ({{#if: {{{mob|}}} | ||
+ | | mob | ||
+ | | {{#if: {{{poisoned|}}} | ||
+ | | poisoned{{#if: {{{hardcore|}}} | ,  }} | ||
+ | | {{#if: {{{withered|}}} | ||
+ | | withered{{#if: {{{hardcore|}}} | ,  }} | ||
+ | | {{#if: {{{absorption|}}} | absorption{{#if: {{{hardcore|}}} | ,  }} }} | ||
+ | }} | ||
+ | }}{{#if: {{{hardcore|}}} | hardcore }} | ||
+ | }}) | ||
+ | }} | ||
+ | | reverse = {{#if: {{{mob|}}} | 1 }} | ||
+ | | min = {{{total|}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
− | [[ | + | [[Category:Image templates]] |
− | + | ||
+ | </noinclude> |
Revisión actual del 22:24 10 oct 2014
Esta plantilla usa Módulo:Iconbar, un script escrito en el lenguaje de programación Lua. Por favor lea mw:Lua y mw:Extension:Scribunto para saber más del lenguaje Lua. |
This template creates a health bar.
Parameter | Function | Default value |
---|---|---|
1 |
Integer health value between 0 and 32. Empty heart = 0, half heart = 1, full heart = 2, see examples below. | 0 |
2 |
Width of each icon. | 18px |
total |
Total amount of hearts to be shown | 0 |
poisoned |
Shows yellow-green poison hearts. | 0 |
withered |
Shows black withered hearts. | 0 |
hardcore |
Shows the hardcore version of the normal/poisoned/withered/absorption hearts. | 0 |
mob |
Shows rideable mob hearts. | 0 |
absorption |
Shows the hearts added by absorption. | 0 |
See also
- {{Armorbar}}
- {{Healthbar}}
- {{Hungerbar}}
- {{Iconbar}}
- Module:Iconbar
La documentación anterior se transcluye de Plantilla:Healthbar/doc. (edit | history)