Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. 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
 
Added chipcolor parameter
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="hoc-matrix">{{#arraydefine:rows|{{{data|}}}|;}}{{#loop:rowIdx|0|{{#arraysize:rows}}|
<includeonly><span class="hoc-matrix chipcolor-{{lc:{{{chipcolor|}}}}}">{{#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>

Latest revision as of 12:03, 6 January 2020

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

A template for creating a small HOC Matrix symbol.

Parameters[edit]

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[edit]

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[edit]