Template:Tabs/Documentation

Jump to navigation Jump to search

Purpose

Template used to create tabs, allowing users to switch between different sets of information by clicking on or tapping a tab button. Tabs are used to keep information organized on the wiki, especially to display differing sets of information between two or more versions of a game or subject (such as list tables and stat tables), as well to cut down on page length.

Tabs should be used whenever there is a need to display more than one set of information related to the subject or topic. For examples: a Demon's ally and enemy stat tables; Social Link information by Rank; multiple encounter list tables showing the differences between two versions of a game, etc.

This documentation explains how to use Tabs. For guidelines on Tabs usage, see Tabs guidelines.

Usage

General

Tabs are created by giving each tab a label parameter and placing content in-between the labels, such as:

{{Tabs
|Tab 1|
Tab 1's information here.
|Tab 2|
Tab 2's information here.
}}
Tab 1Tab 2

Tab 1's information here.

Tab 2's information here.

Tabs can use wikitext and even some other templates for a variety of desired effects, such as small text or tooltips as necessary. For example:

{{Tabs
|Tab 1 <small>(Small)</small>|
Tab 1's information here.
|Tab 2{{Exp|This is a tooltip}}|
Tab 2's information here.
}}
Tab 1 (Small)Tab 2This is a tooltip

Tab 1's information here.

Tab 2's information here.

Stat Tables

Tabs can be used to display two or more sets of stat tables for a given subject, such as a Demon's ally and enemy stat tables. This can be done by placing the stat tables' code between each label, like so:

{{Tabs
|Ally|
{{SMT5 Ally Demon Stats
|img=Jack Frost
|name=Jack Frost
|level=25
|hp=119
|mp=153
|st=14
|vi=15
|ma=29
|ag=21
|lu=21
|location=[[Shinagawa Pier (Shin Megami Tensei V)|Shinagawa Pier]]
|race=Fairy
|cost=8,568
|gifttype=Ice
|fire=Wk
|ice=Drn
|firefrac=1.25
|charm=Wk
|charmfrac=1.25
|spfire=-5
|spice=+4
|splight=+2
|skills={{Skill|SMT5|Jack Bufula +4|-}}
{{Skill|SMT5|Ice Breath +4|-}}
{{Skill|SMT5|Ice Block|26}}
{{Skill|SMT5|Mahama +2|27}}
{{Skill|SMT5|Resist Light|28}}
}}
|Enemy|
{{SMT5 Enemy Demon Stats
|img=Jack Frost
|name=Jack Frost
|level=25
|hp=200
|mp=?
|st=14
|vi=15
|ma=29
|ag=21
|lu=21
|location=[[Shinagawa Pier (Shin Megami Tensei V)|Shinagawa Pier]]
|race=Fairy
|exp=
|macca=
|recruit=y
|speech=
|drop1=
|droprate1=
|drop2=
|droprate2=
|drop3=
|droprate3=
|fire=Wk
|ice=Drn
|firefrac=1.25
|charm=Wk
|charmfrac=1.25
|spfire=-5
|spice=+4
|splight=+2
|skills={{Skill|SMT5|Jack Bufula +4}}
{{Skill|SMT5|Ice Breath +4}}
}}
}}
AllyEnemy
Name Level HP MP
Jack Frost 25 119 153
Strength
14
Vitality
15
Magic
29
Agility
21
Luck
21
Location Shinagawa Pier
Race Speech C. CostCompendium Summoning Cost Gift Type
Fairy 8,568 Ice
Resistances
WkWeak DrnDrain
×1 ×1.25 ×1 ×1 ×1 ×1 ×1
Ailment Resistances
WkWeak
×1 ×1 ×1 ×1.25 ×1 ×1 ×1 ×1
Skill Potential
-5
+4
+2
Basic Attack Element Hit(s) Target
Physical 1 1 enemy
Skills
Skill Cost Description Level
Jack Bufula +4 16 MP Medium Ice attack to 1 foe. Lowers target's Defense by 1 rank for 3 turns. Innate
Ice Breath +4 20 MP Weak 2~5 Ice attacks to random foes. Innate
Ice Block 40 MP Nullifies an Ice attack against all allies once for 1 turn. 26
Mahama +2 21 MP Weak Light attack to all foes. Chance of instakill when striking weaknesses. 27
Resist Light Strengthens resistance to Light skills. 28
Magatsuhi Skills
Skill Description
Omagatoki: Critical All attacks, including magical attacks, will become Critical hits for all allies for 1 turn.
Fairy BanquetRequires Fairy Talisman Raises all stats of all allies to the max for 3 turns.
Name Level HP MP
Jack Frost 25 200 ?
Strength
14
Vitality
15
Magic
29
Agility
21
Luck
21
Location Shinagawa Pier
Race EXP Macca Recruit Speech
Fairy
Drop
Resistances
WkWeak DrnDrain
×1 ×1.25 ×1 ×1 ×1 ×1 ×1
Ailment Resistances
WkWeak
×1 ×1 ×1 ×1.25 ×1 ×1 ×1 ×1
Skill Potential
-5
+4
+2
Basic Attack Element Hit(s) Target
Physical 1 1 enemy
Skills
Skill Cost Description
Jack Bufula +4 16 MP Medium Ice attack to 1 foe. Lowers target's Defense by 1 rank for 3 turns.
Ice Breath +4 20 MP Weak 2~5 Ice attacks to random foes.

Remember to close the Tabs template by adding its own }} at the end, otherwise the Tabs template will break. You may find it helpful to enable the Syntax Highlighter in Preferences under Gadgets to visually see if all templates have been closed. (The page's proceeding content will all be highlighted yellow if any templates are not properly closed.)

List Table Templates

List table templates using multiple header and row templates often require |} at the end to be closed. However, because the pipe would be read as the start of a new parameter in Tabs, the |} must be substituted with {{!}}} (with 3 curly brackets following !) to retain the table's functionality. For example:

{{Tabs
|MT1|
{{EnctrAlign/Header}}
{{EnctrAlign|name=[[Ghost (Demon)|Ghost]]|race=[[Spirit]]|align=Evil|level=—|note=}}
{{EnctrAlign|name=[[Gnome]]|race=[[Jirae]]|align=Neutral|level=5|note=}}
{{EnctrAlign|name=[[Green Slime]]|race=[[Mononoke]]|align=Evil|level=—|note=}}
{{!}}}
|KMT|
{{EnctrAlign/Header}}
{{EnctrAlign|name=[[Ghost (Demon)|Ghost]]|race=[[Spirit]]|align=Evil|level=8|note=}}
{{EnctrAlign|name=[[Gnome]]|race=[[Jirae]]|align=Neutral|level=3|note=}}
{{EnctrAlign|name=[[Green Slime]]|race=[[Foul]]|align=Evil|level=1|note=}}
{{!}}}
}}
MT1KMT
Name Race Alignment Level Notes
Ghost
Spirit
Evil
Gnome
Jirae
Neutral
5
Green Slime
Mononoke
Evil
Name Race Alignment Level Notes
Ghost
Spirit
Evil
8
Gnome
Jirae
Neutral
3
Green Slime
Foul
Evil
1

Custom Wikitables

Due to incompatibilities with the Tabs template, regular wikitables constructed of wikitext cannot be used with tabs. To overcome this, it is advised to use the Tbl set of templates. This allows the creation of custom wikitables that would otherwise be held back by limitations in certain circumstances. Using these templates, a custom wikitable can be inserted into tabs as necessary. For example:

{{Tabs
|Tab 1|
{{Tbl|class=wikitable|
{{TblRow|
{{TblHdr|colspan=2|rowspan=2|Content}}
{{TblDta|Content}}
{{TblDta|Content}}
{{TblDta|Content}}
}}
{{TblRow|
{{TblDta|Content}}
{{TblDta|Content}}
{{TblDta|Content}}
}}
}}
|Tab 2|
{{Tbl|class=wikitable|
{{TblRow|
{{TblHdr|colspan=3|Content}}
}}
{{TblRow|
{{TblDta|Content}}
{{TblDta|Content}}
{{TblDta|Content}}
}}
}}
}}
Tab 1Tab 2
Content Content Content Content
Content Content Content
Content
Content Content Content

Consult the Tbl template's own documentation for full instruction on creating custom wikitables. Once again, be sure to properly close all template instances with their own }}, including all instances of Tbl, TblRow, and of course Tabs itself.