Welcome to IOPWiki, Commander.
We are searching for new editors to keep track of Girls' Frontline 2 content, as well as veteran players to complete the data of Girls' Frontline and Project Neural Cloud characters.
You can contribute without an account. Learn how to contribute and join our Discord server.

Template:HOCMatrix: Difference between revisions

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
Initial setup
 
Now taking both data or anonymous parameter
Line 1: Line 1:
<includeonly><span class="hoc-matrix">{{#arraydefine:rows|{{{data|}}}|;}}{{#loop:rowIdx|0|{{#arraysize:rows}}|
<includeonly><span class="hoc-matrix">{{#arraydefine:rows|{{{data|{{{1|}}}}}}|;}}{{#loop:rowIdx|0|{{#arraysize:rows}}|
{{#arraydefine:dataRow{{#var:rowIdx}}|{{#arrayindex:rows|{{#var:rowIdx}}}}}}
{{#arraydefine:dataRow{{#var:rowIdx}}|{{#arrayindex:rows|{{#var:rowIdx}}}}}}
<span class="hoc-matrix-row">{{#arrayprint:dataRow{{#var:rowIdx}}||@@@@|<span class="hoc-matrix-element hoc-matrix-element-type-@@@@>&nbsp;</span>}}</span>}}</span></includeonly><noinclude>{{Documentation}}</noinclude>
<span class="hoc-matrix-row">{{#arrayprint:dataRow{{#var:rowIdx}}||@@@@|<span class="hoc-matrix-element hoc-matrix-element-type-@@@@>&nbsp;</span>}}</span>}}</span></includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 10:01, 6 January 2020

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

A template for creating a small HOC Matrix symbol.

Parameters

Parameter name Required? Default value Description
chipcolor Yes (n/a) The color scheme the tiles should be rendered in.
data (or anonymous) Yes (n/a) The data for the matrix to set. Each row shall be separated by a ; and each column by a ,. The data is set by the following three digits:
  • 0 Blocked
  • 1 Unlocked on next rarity
  • 2 Unlocked

Usage

See the template's testcases:


Usual parameters with parameter name
Wiki code
{{HOCMatrix|chipcolor=blue
|data=
0,1,1,0,0,2;
0,1,1,0,2,2;
0,1,1,1,1,2;
2,1,1,1,1,0;
2,2,0,1,1,0;
2,0,0,1,1,0}}
Main version                                     
Sandbox version Template:HOCMatrix/sandbox
Usual parameters without parameter name
Wiki code
{{HOCMatrix|chipcolor=orange|
0,1,1,0,0,2;
0,1,1,0,2,2;
0,1,1,1,1,2;
2,1,1,1,1,0;
2,2,0,1,1,0;
2,0,0,1,1,0}}
Main version                                     
Sandbox version Template:HOCMatrix/sandbox

See also