FGO reader JP server
Reading pageUser blog:VictorWiharja123/Fenrir

Template:HPBar/doc

Cached copy of the original page · revision 1391297 · refresh

This is the documentation page for HPBar.
It contains usage information, categories, and other content not part of the original template page.
Emoji Guako Angry
This template is used on 1,145 pages, or on about 0.18% of all pages.
Edits to this template will be widely noticed. To avoid large-scale disruption and unnecessary server load, any changes to this template should be tested in its sandbox or testcases subpages, or in your own user space. The tested changes can then be added to this page in one single edit by an administrator or Content Moderator.
Please consider discussing any changes in the wiki's Discord.
Lua logo
This template uses Module:HPBar, a script written in Lua.

This template produces the HP Bar Layers' Marker.
The multiple HP layer system was first introduced during the Shinjuku update.

Syntax

{{HPBar|values|size|isOver10}}

values - Required - The combination of health bars composed of 0, 1, 2, 3, , all the way to 9.
size - Optional - Individual image width, default is 15px (Over 10 is 20px).
isOver10 - Optional - Display over 10 gauge image.

Examples

Below are several usage examples.
{{HPBar|1}} yields: Lifebar1
{{HPBar|0}} yields: Lifebar0
{{HPBar|12}} yields: Lifebar1Lifebar2
{{HPBar|123}} yields: Lifebar1Lifebar2Lifebar3
{{HPBar|120}} yields: Lifebar1Lifebar2Lifebar0
{{HPBar|100}} yields: Lifebar1Lifebar0Lifebar0
{{HPBar|000}} yields: Lifebar0Lifebar0Lifebar0
{{HPBar|123456789}} yields: Lifebar1Lifebar2Lifebar3Lifebar4Lifebar5Lifebar6Lifebar7Lifebar8Lifebar9
{{HPBar|isOver10 = y}} yields: Lifebar10 0