Szablon:Healthbar: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
[wersja nieprzejrzana][wersja przejrzana]
d Utworzył nową stronę „<includeonly>{{iconbar |icon_full=Heart.png |icon_half=Half_Heart.png |icon_empty=Empty_Heart.png |size={{{2|18px}}} |value={{{1|0}}} }}</includeonly><noinclude> {{/doc...”
 
KsawiBOT (dyskusja | edycje)
d standaryzacja szablonu dokumentacji
 
(Nie pokazano 4 wersji utworzonych przez 3 użytkowników)
Linia 1: Linia 1:
<includeonly>{{iconbar
<includeonly>{{#invoke: Iconbar | bar
|icon_full=Heart.png
| full = {{
|icon_half=Half_Heart.png
#if: {{{mob|}}}
|icon_empty=Empty_Heart.png
| Mob
|size={{{2|18px}}}
| {{#if: {{{poisoned|}}}
|value={{{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}}
{{Dokumentacja}}
 
<!-- Put categories/interwiki on the documentation page -->
[[Kategoria:Szablony|H]]</noinclude>
</noinclude>

Aktualna wersja na dzień 15:20, 6 wrz 2021

[ podgląd | edytuj | historia | odśwież ]Dokumentacja

Ten szablon wyświetla pasek życia.

Parametr Funkcja Wartość domyślna
1 Wartość zdrowia pomiędzy 0, a 32. Puste serce = 0, pół serca = 1, pełne = 2. 0
2 Szerokość każdej ikony. 18px
total Ilość wyświetlanych serc. 0
poisoned Serca zatrute. 0
withered Serca z efektem obumarcia. 0
hardcore Wersja hardcore każdego z serc. 0
mob Serca ujeżdżanych mobów. 0
absorption Serca dodane przez absorpcję. 0
Kod Wynik
{{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|20|poisoned=1}}
{{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

Szablon:Iconbar see also