Template:FaunaTable/doc: Difference between revisions

From Subnautica Wiki
No edit summary
m (5 revisions imported: importing from Below Zero wiki)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
This template serves as the base table for an individual Fauna's tooltip. The resulting table appears over links to a fauna using [[Template:TextLink]]. All tables are to be made using this template on a template page in this template's domain. For example, [[Template:FaunaTable/Glow Whale]].
This template serves as the base table for an individual Fauna's tooltip. The resulting table appears over links to a fauna using [[Template:FaunaLink]]. All tables are to be made using this template on a template page in this template's domain. For example, [[Template:FaunaTable/Glow Whale]].


==Example==
==Example==
Line 9: Line 9:
|name=Glow Whale
|name=Glow Whale
|image=Glow Whale Fauna.png
|image=Glow Whale Fauna.png
|category=Leviathan
|diet=Carnivorous
|attitude=Passive
|attitude=Passive
|debugspawn=glowwhale
|debugspawn=glowwhale
Line 22: Line 22:
|name=Glow Whale
|name=Glow Whale
|image=Glow Whale Fauna.png
|image=Glow Whale Fauna.png
|category=Leviathan
|diet=Carnivorous
|attitude=Passive
|attitude=Passive
|debugspawn=glowwhale
|debugspawn=glowwhale
Line 32: Line 32:


==Linking==
==Linking==
Linking the desired table by tooltip is done using [[Template:TextLink]].
Linking the desired table by tooltip is done using [[Template:FaunaLink]].


===HTML===
===HTML===
<pre>{{TextLink|Glow Whale}}</pre>
<pre>{{FaunaLink|Glow Whale|Glow Whales}}</pre>


===Output===
===Output===
{{TextLink|Glow Whale}}
{{FaunaLink|Glow Whale|Glow Whales}}

Latest revision as of 13:46, 6 August 2021

This template serves as the base table for an individual Fauna's tooltip. The resulting table appears over links to a fauna using Template:FaunaLink. All tables are to be made using this template on a template page in this template's domain. For example, Template:FaunaTable/Glow Whale.

Example

This template is only used on other template pages to more easily create tables. Only the name parameter must be filled - any other parameter can be safely left out.

HTML

{{FaunaTable
|name=Glow Whale
|image=Glow Whale Fauna.png
|category=Leviathan
|attitude=Passive
|debugspawn=glowwhale
|biomes=
*Arctic
*Deep Arctic
*Tree Spires
}}

Output

Glow Whale Fauna.png
Glow Whale
Type Fauna Biomes
Category Leviathan
  • Arctic
  • Deep Arctic
  • Tree Spires
Attitude Passive
Spawn ID glowwhale

Linking

Linking the desired table by tooltip is done using Template:FaunaLink.

HTML

{{FaunaLink|Glow Whale|Glow Whales}}

Output

Glow Whales