Template:SkillTable/doc: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Lua|SkillTable}}
== Overview ==
== Overview ==
A template using the LUA module [[Module:SkillTable]] allowing you to create custom grids with an image on the left and a clickable link box on the right. Mainly used for skill categories and the Related Skills section on skill pages.
A template using the LUA module [[Module:SkillTable]] allowing you to create custom grids with an image on the left and a clickable link box on the right. Mainly used for skill categories and the Related Skills section on skill pages.
== How to use ==
=== Basic ===
Takes only 2 parameters (in theory).
*First unnamed parameter: a.k.a. just the content, separated by semicolons. Put image names in odd fields and links to the page in even fields, like so:
<pre><nowiki>{{SkillTable
|FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
}}</nowiki></pre>
{{SkillTable
|FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
}}<br/>
*The <code>i</code> parameter that slices the input into rows of (i) cells - default 4.
<pre><nowiki>{{SkillTable
|i=3
|TurbidsPassive4.png; Awakened Will: Turbids;
TurbidsPassive5.png; Death's Instinct;
EmptinessSkill6.png; Abyss Scatter;
EmptinessSkill2.png; Heartless ID;
EmptinessPassive1.png; ID;
TurbidsSkill11.png; Blanket Authority
}}</nowiki></pre>
{{SkillTable
|i=3
|TurbidsPassive4.png; Awakened Will: Turbids;
TurbidsPassive5.png; Death's Instinct;
EmptinessSkill6.png; Abyss Scatter;
EmptinessSkill2.png; Heartless ID;
EmptinessPassive1.png; ID;
TurbidsSkill11.png; Blanket Authority
}}
Formatting is irrelevant. All white space is stripped.
<br/>
=== With a header ===
To insert a header, you will need to add 2 special fields between any 2 cells (or at the top):
*The first field is the color of your header (needs to start with "--"), which will try to parse it as HEX/RGB (# or rgb() needed). Otherwise, it will try to get a color from the [[Template:ColorSel|Color Selector]] template's "Character" category using the provided string.
*The second field is the wikitext content of your header.
<pre><nowiki>{{SkillTable
|--Rose; [[File:Mini Icon - Minerva.png]] '''Minerva''';
FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
FreySkill10.png; C4 Remote Control;
}}</nowiki></pre>
{{SkillTable
|--Rose; [[File:Mini Icon - Minerva.png]] '''Minerva''';
FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
FreySkill10.png; C4 Remote Control;
}}
<br/>
=== Extras ===
*For locked skills: insert "[space]Locked-[type]" in the second field (name). (See [[Template:Locked Skill]])
*For mod skills: insert "/Mod" in name.
*For cube icon: insert "[space]ModCube[number]" in name. (See [[Template:Mod Cube]])
*You can also add anything before and after the display name: "[prefix]++[content]##[suffix]"
<pre><nowiki>{{SkillTable
|PoeticRangerSkill6.png; Recite/Mod;
TaleSpinnerHyperActive.png; Brillante Locked-Hyper1;
TaleSpinnerSkill1.png; Swing ModCube1;
TaleSpinnerSkill4.png; Prophetess: ++ Tuning ## (튜닝) ModCube2;
}}</nowiki></pre>
{{SkillTable
|PoeticRangerSkill6.png; Recite/Mod;
TaleSpinnerHyperActive.png; Brillante Locked-Hyper1;
TaleSpinnerSkill1.png; Swing ModCube1;
TaleSpinnerSkill4.png; Prophetess: ++ Tuning ## (튜닝) ModCube2;
}}<br/>
*Use the following Syntax for Secret Arts or just multiple images in one cell:
<pre><nowiki>{{SkillTable
|skill_columns=2
|
LittleHelperSkill1.png
\LittleHelperSkill5.png
\MariciSkill1.png
\MariciSkill2.png;
Turtle Stance 1: Prime/Mod
\Turtle Stance 2: Summon
\Turtle Stance 3: Descent
\Turtle Stance 4: Barrier
# Iceberg/Mod Locked-Expert;
}}</nowiki></pre>
{{SkillTable
|skill_columns=2
|
LittleHelperSkill1.png
\LittleHelperSkill5.png
\MariciSkill1.png
\MariciSkill2.png;
Turtle Stance 1: Prime/Mod
\Turtle Stance 2: Summon
\Turtle Stance 3: Descent
\Turtle Stance 4: Barrier
# Iceberg/Mod Locked-Expert;
}}
*You can optionally provide the <code>skill_columns</code> argument (number) to specify how many columns of images you would like to be displayed (default: 2).
**As you can see, the other extras work just fine with it.
<templatedata>
{
"params": {
"1": {
"label": "Images and skill names",
"description": "Images and skill names separated by semicolons. The image always comes first. To add a header row, simply append \"--\" where the image should be. You can pick a character to autofill its color or choose it yourself and paste it afterwards. The next entity is the title. More information & extras on the template's page.",
"example": "FYPassive2.png; Key of Proof; --Rose; Minerva;",
"type": "string",
"suggested": true
},
"i": {
"label": "Number of entries per row",
"example": "5",
"type": "number",
"default": "4",
"suggested": true
}
},
"description": "A template allowing you to create custom grids with an image on the left and a clickable link box on the right. Mainly used for skill categories and the Related Skills section on skill pages.",
"paramOrder": [
"i",
"1"
],
"format": "block"
}
</templatedata>

Latest revision as of 22:17, 25 August 2022

Information: This template is using a Scribunto Module: Module:SkillTable.

Overview

A template using the LUA module Module:SkillTable allowing you to create custom grids with an image on the left and a clickable link box on the right. Mainly used for skill categories and the Related Skills section on skill pages.

How to use

Basic

Takes only 2 parameters (in theory).

  • First unnamed parameter: a.k.a. just the content, separated by semicolons. Put image names in odd fields and links to the page in even fields, like so:
{{SkillTable
|FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
}}


  • The i parameter that slices the input into rows of (i) cells - default 4.
{{SkillTable
|i=3
|TurbidsPassive4.png; Awakened Will: Turbids;
TurbidsPassive5.png; Death's Instinct;
EmptinessSkill6.png; Abyss Scatter;
EmptinessSkill2.png; Heartless ID;
EmptinessPassive1.png; ID;
TurbidsSkill11.png; Blanket Authority
}}

Formatting is irrelevant. All white space is stripped.


With a header

To insert a header, you will need to add 2 special fields between any 2 cells (or at the top):

  • The first field is the color of your header (needs to start with "--"), which will try to parse it as HEX/RGB (# or rgb() needed). Otherwise, it will try to get a color from the Color Selector template's "Character" category using the provided string.
  • The second field is the wikitext content of your header.
{{SkillTable
|--Rose; [[File:Mini Icon - Minerva.png]] '''Minerva''';
FYPassive2.png; Key of Proof;
GrenadeEnhancement.png; Enhanced Grenades;
MusketMaster.png; Musket Master;
PenetratingBullet.png; Penetrating Bullet;
FYPassive1.png; Arsenal Reinforcement;
FreySkill10.png; C4 Remote Control;
}}


Extras

  • For locked skills: insert "[space]Locked-[type]" in the second field (name). (See Template:Locked Skill)
  • For mod skills: insert "/Mod" in name.
  • For cube icon: insert "[space]ModCube[number]" in name. (See Template:Mod Cube)
  • You can also add anything before and after the display name: "[prefix]++[content]##[suffix]"
{{SkillTable
|PoeticRangerSkill6.png; Recite/Mod;
TaleSpinnerHyperActive.png; Brillante Locked-Hyper1;
TaleSpinnerSkill1.png; Swing ModCube1;
TaleSpinnerSkill4.png; Prophetess: ++ Tuning ## (튜닝) ModCube2;
}}


  • Use the following Syntax for Secret Arts or just multiple images in one cell:
{{SkillTable
|skill_columns=2
|
LittleHelperSkill1.png
\LittleHelperSkill5.png
\MariciSkill1.png
\MariciSkill2.png;

Turtle Stance 1: Prime/Mod
\Turtle Stance 2: Summon
\Turtle Stance 3: Descent
\Turtle Stance 4: Barrier

# Iceberg/Mod Locked-Expert;
}}
  • You can optionally provide the skill_columns argument (number) to specify how many columns of images you would like to be displayed (default: 2).
    • As you can see, the other extras work just fine with it.

A template allowing you to create custom grids with an image on the left and a clickable link box on the right. Mainly used for skill categories and the Related Skills section on skill pages.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Number of entries per rowi

no description

Default
4
Example
5
Numbersuggested
Images and skill names1

Images and skill names separated by semicolons. The image always comes first. To add a header row, simply append "--" where the image should be. You can pick a character to autofill its color or choose it yourself and paste it afterwards. The next entity is the title. More information & extras on the template's page.

Example
FYPassive2.png; Key of Proof; --Rose; Minerva;
Stringsuggested