helialprofile.png
Welcome to IOPWiki, Commander. You can contribute to this wiki without an account. Learn how to contribute and join our Discord server.

Difference between revisions of "Template:SkillPanel"

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
(Maybe a quick fix for pages with & in their name)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div class="skillform">
+
<includeonly><div class="skillform {{#switch:{{{2|}}}|PNC = pnchero|Assimilated = assimilated|#default = }}">
<div class="tabButtonLane">{{#widget:button|name=Skill1|class=tabButton-active}}</div>
+
<div class="tabButtonLane">{{#widget:button|name=Skill1|class=tabButton-active}}</div><!--Dummy button deleted by MediaWiki:Gadget-SkillForm.js-->
 
<div class="skilltabarea">
 
<div class="skilltabarea">
<div class="skillcontainer">{{#arraydefine:skillpagearray|{{#replace:{{{1|}}}|&amp;|&}}|;}}{{#loop: idx
+
<div class="skillcontainer">{{#arraydefine:skillpagearray|{{{1|}}}|/(?<!&amp);/}}{{#loop: idx
 
  | 0
 
  | 0
 
  | {{#arraysize:skillpagearray}}
 
  | {{#arraysize:skillpagearray}}
 
  | <div class="skilldataraw" style="display:none" data-skilldata-content="skill{{#ifeq:{{#var:idx}}|0||{{#expr:{{#var:idx}}+1}}}}data"><div>{{:{{#arrayindex:skillpagearray|{{#var:idx}}}} }}</div></div>
 
  | <div class="skilldataraw" style="display:none" data-skilldata-content="skill{{#ifeq:{{#var:idx}}|0||{{#expr:{{#var:idx}}+1}}}}data"><div>{{:{{#arrayindex:skillpagearray|{{#var:idx}}}} }}</div></div>
 
}}
 
}}
<div class="skillcontent" style="display:none">
+
<div class="skillcontent" style="position:static; display:none;">
 
{| cellspacing=5
 
{| cellspacing=5
 
|-
 
|-
 
| rowspan=2 class="skillicon" | [[File:{{#ifexist:Media:Icon_Skill_{{{skillid|}}}.png|Icon_Skill_{{{skillid|}}}|skill backup}}.png|50px|link=|border|center]]
 
| rowspan=2 class="skillicon" | [[File:{{#ifexist:Media:Icon_Skill_{{{skillid|}}}.png|Icon_Skill_{{{skillid|}}}|skill backup}}.png|50px|link=|border|center]]
| colspan=2 class="skillname" | {{{skillname|name of skill here}}}
+
| colspan=3 class="skillname" | {{{skillname|name of skill here}}}
 
|-
 
|-
 
| class="skilllevel" |  
 
| class="skilllevel" |  
 +
| class="maxanalysis" style="display:none;" |
 
| class="skillconditions" | &nbsp;
 
| class="skillconditions" | &nbsp;
 
|}
 
|}
Line 20: Line 21:
 
</div>
 
</div>
 
</div>
 
</div>
</div></includeonly><noinclude>{{Documentation}}</noinclude>
+
</div></includeonly><noinclude>{{Documentation}}
 +
 
 +
</noinclude>

Latest revision as of 12:40, 26 January 2024

Documentation icon Template documentation[view] [edit] [history] [purge]

Panel containing a tab-container which shows different skills of a unit (HOC, T-Doll, Fairy,...). Works with MediaWiki:Gadget-SkillForm.js.

Parameters[edit]

Parameter name Required? Default value Description
Anonymous parameter 1 Yes (n/a) The name of the page which contains the skill data. Multiple skill datas can be defined separated by a ;.

Using skill subpages[edit]

Skills data must be stored in subpages of the unit's article, such as M4A1/skilldata.

Use cases:

  • For Girls' Frontline regular Dolls: define base skill in skilldata.
  • For Girls' Frontline regular Dolls with MOD: along with the base skill in skilldata, also define the base MOD skill in skilldata/mod1. Define second MOD skill in skill2data.
  • For Girls' Frontline fairies: define skill in skilldata.
  • For Girls' Frontline HOCs: define skills in the order they appear in the game description, from top to bottom, in skilldata, skill2data and skill3data.
  • For Girls' Frontline Coalition units: define skills in the order they appear in the game description, from top to bottom, in skilldata, skill2data, skill3data and skill4data.
  • For Project Neural Cloud units: define Passive Skill in skilldata, Active Skill in skill2data and Ultimate Skill in skill3data.

The subpage must contain a table with the following rows, and 10 columns corresponding to 10 skill levels by default (reuse the code of other skill pages for simplicity):

  • name (mandatory): skill name in English.
  • icon (mandatory): Unique title of the skill icon in the game files. Note: the full title of the icon when it is uploaded on the Wiki must start with Icon_Skill_, but this common part is omitted in the skill definition.
  • text (mandatory): Skill description. Should reuse the official translation when possible, but can be modified as needed to be more precise. Values that change depending on skill level must be written as $(Parameter name) then declared as a custom parameter (see below).
  • Custom parameters: Their name must be the same as written in the description (case-sensitive). By default, it must be followed by 10 columns containing the value for each skill level (see below to change the default number of skill levels).
  • skilllevelcount (optional): Used for skills which have less than 10 levels of upgrade. Mostly used for Coalition skills 3 and 4 in GFL as well as Ultimate Skills in PNC, these need to be set to 5.
  • initial (optional): Used for seconds of cooldown at battle start (ICD).
  • cooldown (optional): Used for seconds of cooldown.
  • turn_cooldown (optional): Used for turns of cooldown.
  • skill_cost (optional): Action or support points expended per use.
  • activation (optional): Percentage chance of activation.

Other special cases:

  • Coalition units receive a special boost to the effect of their first skill at Analysis Level 4. These extra values must be defined on a new line, adding "_4" at the end of the parameter name of the normal values. The values will be switched by checking the "Max Analysis" box instead of changing the level selector. Use Executioner/Assimilated as an example.
  • Skill modifications caused by Arma Inscripta in Project Neural Cloud should be added into the description after the base skill effect. Use  FernFern 's page as an example.

Skill values can be gathered from these locations:

  • In Girls' Frontline, from the battle_skill_config.txt file.
  • In Project Neural Cloud, from the skill enhancement screen before the skill has been enhanced to the max (ultimate skill must be unlocked to see its levels).

Usage[edit]

See the template's testcases:


One skilldata set
Wiki code
{{SkillPanel|IDW/skilldata}}
Main version
Sandbox version
Two skilldatas set
Wiki code
{{SkillPanel|IDW/skilldata;IDW/skill2data}}
Main version
Sandbox version

See also[edit]