Diferencia entre revisiones de «Plantilla:Healthbar»

MinedNugget (discusión | contribs.)
Sin resumen de edición
MinedNugget (discusión | contribs.)
Sin resumen de edición
Línea 1: Línea 1:
<includeonly>{{iconbar
<includeonly>{{#invoke: Iconbar | bar
| full = {{ #if: {{{poisoned|}}} | Poisoned }} {{ #if: {{{hardcore|}}} | Hardcore }} Heart.png
| full = {{
| half = {{ #if: {{{poisoned|}}} | Poisoned }} {{ #if: {{{hardcore|}}} | Hardcore }} Half Heart.png
#if: {{{mob|}}}
| empty = Empty Heart.png
| 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|}}} | ,&#32; }}
    | {{#if: {{{withered|}}}
      | withered{{#if: {{{hardcore|}}} | ,&#32; }}
      | {{#if: {{{absorption|}}} | absorption{{#if: {{{hardcore|}}} | ,&#32; }} }}
      }}
    }}{{#if: {{{hardcore|}}} | hardcore }}
  }})
}}
| reverse = {{#if: {{{mob|}}} | 1 }}
| min = {{{total|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{/doc}}
{{/doc}}


[[Categoría:Templates|H]]</noinclude>
[[Category:Image templates]]
 
[[de:Vorlage:Lebensleiste]]
[[fr:Modèle:Cœurs]]
</noinclude>

Revisión del 09:02 12 abr 2014

Documentación
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
Code Result
{{healthbar}}
{{healthbar|0|9px}}
{{healthbar|1}}
{{healthbar|2}}
{{healthbar|5}}
{{healthbar|5|poisoned=1}}
{{healthbar|5|withered=1}}
{{healthbar|5|absorption=1}}
{{healthbar|5|hardcore=1}}
{{healthbar|5|poisoned=1|hardcore=1}}
{{healthbar|5|withered=1|hardcore=1}}
{{healthbar|5|absorption=1|hardcore=1}}
{{healthbar|5|mob=1}}
{{healthbar|5|total=10}}
{{healthbar|5|total=10|poisoned=1}}
{{healthbar|5|total=10|withered=1}}
{{healthbar|5|total=10|absorption=1}}
{{healthbar|5|total=10|hardcore=1}}
{{healthbar|5|total=10|poisoned=1|hardcore=1}}
{{healthbar|5|total=10|withered=1|hardcore=1}}
{{healthbar|5|total=10|absorption=1|hardcore=1}}
{{healthbar|5|total=10|mob=1}}
{{healthbar|20}}
{{healthbar|11|9px}}
{{healthbar|11|9px|poisoned=1}}
{{healthbar|11|9px|withered=1}}
{{healthbar|11|9px|absorption=1}}
{{healthbar|11|9px|hardcore=1}}
{{healthbar|11|9px|poisoned=1|hardcore=1}}
{{healthbar|11|9px|withered=1|hardcore=1}}
{{healthbar|11|9px|absorption=1|hardcore=1}}
{{healthbar|11|9px|mob=1}}
{{healthbar|7|45px}}
{{healthbar|7|45px|poisoned=1}}
{{healthbar|7|45px|withered=1}}
{{healthbar|7|45px|absorption=1}}
{{healthbar|7|45px|hardcore=1}}
{{healthbar|7|45px|poisoned=1|hardcore=1}}
{{healthbar|7|45px|withered=1|hardcore=1}}
{{healthbar|7|45px|absorption=1|hardcore=1}}
{{healthbar|7|45px|mob=1}}

See also

La documentación anterior se transcluye de Plantilla:Healthbar/doc. (edit | history)

de:Vorlage:Lebensleiste fr:Modèle:Cœurs