Template

NaviCustProgram: Difference between revisions

From The Rockman EXE Zone Wiki

No edit summary
(experimental rewrite)
Line 1: Line 1:
<includeonly><span style="display: none;">
<includeonly>
{{#vardefine:colBG|{{NaviCustProgramColor|}}}}
{{#vardefine:colBG|{{NaviCustProgramColor|}}}}
{{#vardefine:colBG0|{{#sub:{{#var:colBG}}|0|6}}}}
{{#vardefine:colBG0|{{#sub:{{#var:colBG}}|0|6}}}}
{{#vardefine:colBG1|{{#sub:{{#var:colBG}}|7|6}}}}
{{#vardefine:colBG1|{{#sub:{{#var:colBG}}|7|6}}}}
{{#vardefine:colBG2|{{#sub:{{#var:colBG}}|14|6}}}}
{{#vardefine:colBG2|{{#sub:{{#var:colBG}}|14|6}}}}
{{#vardefine:rowStyle|box-sizing:border-box;position:relative;width:20px;height:20px;padding:0;background:#{{#var:colBG0}};border-color:#{{#var:colBG2}} #{{#var:colBG1}} #{{#var:colBG1}} #{{#var:colBG2}}}}
{{#vardefine:rowStyle|box-sizing:border-box;position:relative;width:20px;height:20px;padding:0;background:#{{#var:colBG0}};border-color:#{{#var:colBG2}} #{{#var:colBG1}} #{{#var:colBG1}} #{{#var:colBG2}};}}
</span>
{{#vardefine:ncpStyle|position:absolute;top:-1px;bottom:-1px;left:-1px;right:-1px;box-sizing:border-box;border:1px solid;}}
{{#vardefine:col11|{{NaviCustProgramColor|{{#sub:{{{row1|}}}|0|1}}}}}}
{{#vardefine:col21|{{NaviCustProgramColor|{{#sub:{{{row1|}}}|1|1}}}}}}
{{#vardefine:col31|{{NaviCustProgramColor|{{#sub:{{{row1|}}}|2|1}}}}}}
{{#vardefine:col41|{{NaviCustProgramColor|{{#sub:{{{row1|}}}|3|1}}}}}}
{{#vardefine:col51|{{NaviCustProgramColor|{{#sub:{{{row1|}}}|4|1}}}}}}
{{#vardefine:col12|{{NaviCustProgramColor|{{#sub:{{{row2|}}}|0|1}}}}}}
{{#vardefine:col22|{{NaviCustProgramColor|{{#sub:{{{row2|}}}|1|1}}}}}}
{{#vardefine:col32|{{NaviCustProgramColor|{{#sub:{{{row2|}}}|2|1}}}}}}
{{#vardefine:col42|{{NaviCustProgramColor|{{#sub:{{{row2|}}}|3|1}}}}}}
{{#vardefine:col52|{{NaviCustProgramColor|{{#sub:{{{row2|}}}|4|1}}}}}}
{{#vardefine:col13|{{NaviCustProgramColor|{{#sub:{{{row3|}}}|0|1}}}}}}
{{#vardefine:col23|{{NaviCustProgramColor|{{#sub:{{{row3|}}}|1|1}}}}}}
{{#vardefine:col33|{{NaviCustProgramColor|{{#sub:{{{row3|}}}|2|1}}}}}}
{{#vardefine:col43|{{NaviCustProgramColor|{{#sub:{{{row3|}}}|3|1}}}}}}
{{#vardefine:col53|{{NaviCustProgramColor|{{#sub:{{{row3|}}}|4|1}}}}}}
{{#vardefine:col14|{{NaviCustProgramColor|{{#sub:{{{row4|}}}|0|1}}}}}}
{{#vardefine:col24|{{NaviCustProgramColor|{{#sub:{{{row4|}}}|1|1}}}}}}
{{#vardefine:col34|{{NaviCustProgramColor|{{#sub:{{{row4|}}}|2|1}}}}}}
{{#vardefine:col44|{{NaviCustProgramColor|{{#sub:{{{row4|}}}|3|1}}}}}}
{{#vardefine:col54|{{NaviCustProgramColor|{{#sub:{{{row4|}}}|4|1}}}}}}
{{#vardefine:col15|{{NaviCustProgramColor|{{#sub:{{{row5|}}}|0|1}}}}}}
{{#vardefine:col25|{{NaviCustProgramColor|{{#sub:{{{row5|}}}|1|1}}}}}}
{{#vardefine:col35|{{NaviCustProgramColor|{{#sub:{{{row5|}}}|2|1}}}}}}
{{#vardefine:col45|{{NaviCustProgramColor|{{#sub:{{{row5|}}}|3|1}}}}}}
{{#vardefine:col55|{{NaviCustProgramColor|{{#sub:{{{row5|}}}|4|1}}}}}}
{|style="width:auto!important;border-spacing:0;background:#{{#var:colBG0}};border:1px solid;border-color:#{{#var:colBG2}} #{{#var:colBG1}} #{{#var:colBG1}} #{{#var:colBG2}};"
{|style="width:auto!important;border-spacing:0;background:#{{#var:colBG0}};border:1px solid;border-color:#{{#var:colBG2}} #{{#var:colBG1}} #{{#var:colBG1}} #{{#var:colBG2}};"
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row1|}}}|0|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|<div style="{{#var:ncpStyle}}{{#ifeq:{{{type|}}}|plus||;background:#{{#sub:{{#var:col11}}{{!}}0{{!}}6}};border-color:#{{#sub:{{#var:col11}}{{!}}7{{!}}6}} #{{#sub:{{#var:col11}}{{!}}14{{!}}6}} #{{#sub:{{#var:col11}}{{!}}14{{!}}6}} #{{#sub:{{#var:col11}}{{!}}7{{!}}6}};}}"></div>
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row1|}}}|1|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|<div style="{{#var:ncpStyle}}{{#ifeq:{{{type|}}}|plus||;background:#{{#sub:{{#var:col21}}{{!}}0{{!}}6}};border-color:#{{#sub:{{#var:col21}}{{!}}7{{!}}6}} #{{#sub:{{#var:col21}}{{!}}14{{!}}6}} #{{#sub:{{#var:col21}}{{!}}14{{!}}6}} #{{#sub:{{#var:col21}}{{!}}7{{!}}6}};}}"></div>
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row1|}}}|2|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|<div style="{{#var:ncpStyle}}{{#ifeq:{{{type|}}}|plus||;background:#{{#sub:{{#var:col31}}{{!}}0{{!}}6}};border-color:#{{#sub:{{#var:col31}}{{!}}7{{!}}6}} #{{#sub:{{#var:col31}}{{!}}14{{!}}6}} #{{#sub:{{#var:col31}}{{!}}14{{!}}6}} #{{#sub:{{#var:col31}}{{!}}7{{!}}6}};}}"></div>
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row1|}}}|3|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|<div style="{{#var:ncpStyle}}{{#ifeq:{{{type|}}}|plus||;background:#{{#sub:{{#var:col41}}{{!}}0{{!}}6}};border-color:#{{#sub:{{#var:col41}}{{!}}7{{!}}6}} #{{#sub:{{#var:col41}}{{!}}14{{!}}6}} #{{#sub:{{#var:col41}}{{!}}14{{!}}6}} #{{#sub:{{#var:col41}}{{!}}7{{!}}6}};}}"></div>
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row1|}}}|4|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|<div style="{{#var:ncpStyle}}{{#ifeq:{{{type|}}}|plus||;background:#{{#sub:{{#var:col51}}{{!}}0{{!}}6}};border-color:#{{#sub:{{#var:col51}}{{!}}7{{!}}6}} #{{#sub:{{#var:col51}}{{!}}14{{!}}6}} #{{#sub:{{#var:col51}}{{!}}14{{!}}6}} #{{#sub:{{#var:col51}}{{!}}7{{!}}6}};}}"></div>
|-
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row2|}}}|0|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row2|}}}|1|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row2|}}}|2|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row2|}}}|3|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row2|}}}|4|1}}|{{{type|}}}}}
|-
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row3|}}}|0|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row3|}}}|1|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row3|}}}|2|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row3|}}}|3|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row3|}}}|4|1}}|{{{type|}}}}}
|-
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row4|}}}|0|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row4|}}}|1|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row4|}}}|2|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row4|}}}|3|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row4|}}}|4|1}}|{{{type|}}}}}
|-
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row5|}}}|0|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row5|}}}|1|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row5|}}}|2|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row5|}}}|3|1}}|{{{type|}}}}}
|style="{{#var:rowStyle}}"|{{NaviCustProgramPart|{{#sub:{{{row5|}}}|4|1}}|{{{type|}}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
==Example==
==Example==

Revision as of 01:45, 3 March 2016

Example


















Usage

{{NaviCustProgram
|row1=_____
|row2=__M__
|row3=_mMM_
|row4=__M__
|row5=_____
}}



{{NaviCustProgram
|row1=_____
|row2=_RRr_
|row3=_RRR_
|row4=_R_R_
|row5=_____
|type=plus
}}