Template:Infobox Tabs

From Official Barotrauma Wiki
Jump to: navigation, search
Documentation

This template is used with the Creatures infobox template to display several infoboxes within tabs.

Syntax

{{ Infobox Tabs | Name of tab 1 | creatures infobox for tab 1 | Name of tab 2 | creatures infobox for tab 2 | Name of tab 3 | creatures infobox for tab 3 }}


Note: if you have the "Show previews without reloading the page" option enabled in your preferences, when using the preview function of the editor, tabs will only properly show the first time you click preview. If you preview again, they won't show, and instead infoboxes will be displayed on top of each other. After saving the page however they will be present. One way to still preview with tabs is to either disable that option temporarily, or copy your edit, refresh the page (F5), paste back your edit, then click preview.

Example

{{Infobox Tabs|Crawler|{{Creatures infobox | name = Crawler | image = Crawler.png | hp = 65 (85 swarm) | swimspeed = 4 slow (8 fast) | walkspeed = 1.55 walk (5 run) | armor = N/A | weakpoints = N/A | armorval = None | entersub = Yes | sight = 1 | drops = {{Hyperlink|Alien Blood}} |chance = 100 |drops2 = {{Hyperlink|Crawler Mask|40}} |chance2 = 2 |hearing=1}}|Crawler Hatchling|{{Creatures infobox |name = Crawler Hatchling | image = Crawler Hatchling.png | hp = 32 | swimspeed = 2 slow (4 fast) | walkspeed = 1.2 walk (4 run) | armor = N/A | weakpoints = N/A | armorval = None | entersub = Yes | sight = 1 |hearing=1}}}}

gives:

Crawler
Stats
Health

65 (85 swarm)

Sight: 1
Hearing: 1
Armor

None

Weakpoints

N/A

Immunities

N/A

Vulnerabilities

N/A

Behavior
Walk speed

1.55 walk (5 run)

Swim speed

4 slow (8 fast)

Aggressive?

Always

Can Enter Submarine?

Yes

Drops
only 1 of the items marked with an asterisk * may drop at a time
Items Chance
Alien Blood 100% (1/1)
Crawler Mask
2% (1/50)


Crawler Hatchling
Stats
Health

32

Sight: 1
Hearing: 1
Armor

None

Weakpoints

N/A

Immunities

N/A

Vulnerabilities

N/A

Behavior
Walk speed

1.2 walk (4 run)

Swim speed

2 slow (4 fast)

Aggressive?

Always

Can Enter Submarine?

Yes

Drops
only 1 of the items marked with an asterisk * may drop at a time
Items Chance
N/A N/A