Template:Health

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

| Expression error: Unrecognized punctuation character "{". = {{{1}}} × Ui-health.png | Expression error: Unrecognized punctuation character "{". = Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{". }}

About

This template serves to display health points in a page.

Usage

The syntax of this template is {{Health|<number>}}. If the value given is 0 or lower, it will display an empty heart icon, and if the value is higher than 10, it will display n × <health> where n is the number you specified. It can also round to the nearest integer.

Examples

  • {{Health|0}}

| 0 = 0 × Ui-health.png | 0 = }}

  • {{Health|1}}

| 0 = 1 × Ui-health.png | 1 = Ui-health.png }}

  • {{Health|2}}

| 0 = 2 × Ui-health.png | 1 = Ui-health.pngUi-health.png }}

  • {{Health|3}}

| 0 = 3 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.png }}

  • {{Health|4}}

| 0 = 4 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|5}}

| 0 = 5 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|6}}

| 0 = 6 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|7}}

| 0 = 7 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|8}}

| 0 = 8 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|9}}

| 0 = 9 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|10}}

| 0 = 10 × Ui-health.png | 1 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

Rounding examples:

  • {{Health|1.25}}

| 0 = 1.25 × Ui-health.png | 1 = Ui-health.pngUi-health-half.png }}

  • {{Health|1.5}}

| 0 = 1.5 × Ui-health.png | 1 = Ui-health.pngUi-health-half.png }}

  • {{Health|1.75}}

| 0 = 1.75 × Ui-health.png | 1 = Ui-health.pngUi-health.png }}

More than 10 health points:

  • {{Health|10.5}}

| 1 = 10.5 × Ui-health.png | 0 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|15}

| 1 = 15 × Ui-health.png | 0 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}

  • {{Health|300}}

| 1 = 300 × Ui-health.png | 0 = Ui-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.pngUi-health.png }}