Template

NaviCustProgramPart: Difference between revisions

From The Rockman EXE Zone Wiki

No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div style="box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;position:relative;width:18px;height:18px;background:#{{#sub:{{NaviCustProgramColor|}}|0|6}};border: 1px solid;border-color:#{{#sub:{{NaviCustProgramColor|}}|7|6}} #{{#sub:{{NaviCustProgramColor|}}|14|6}} #{{#sub:{{NaviCustProgramColor|}}|14|6}} #{{#sub:{{NaviCustProgramColor|}}|7|6}}">{{#switch:{{{1}}}|W|w|M|m|Y|y|R|r|B|b|G|g|O|o|V|v|D|d={{#ifeq:{{{2}}}|plus|{{{!}}style="position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;width:20px;height:20px;border-spacing:0;border:none;border-collapse:separate;{{#switch:{{{1}}}|w|m|y|r|b|g|o|v|d=opacity:0.333}}"
<includeonly>{{
{{!}}style="width:6px;height:6px;padding:0;border:2px solid;background:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|0|6}};border-color:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}}"{{!}}
#vardefine:l1|{{lc:{{{1}}}}}
{{!}}style="width:6px;height:6px;padding:0;border:2px solid;background:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|0|6}};border-color:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}}"{{!}}
}}{{
{{!}}-
#switch:{{#var:l1}}
{{!}}style="width:6px;height:6px;padding:0;border:2px solid;background:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|0|6}};border-color:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}}"{{!}}
|w|white={{
{{!}}style="width:6px;height:6px;padding:0;border:2px solid;background:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|0|6}};border-color:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}}"{{!}}
#vardefine:col0|FFFFFF}}{{#vardefine:col1|FFFFFF}}{{#vardefine:col2|CECED6}}
{{!}}}|<div style="position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|0|6}};border: 1px solid;border-color:#{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|14|6}} #{{#sub:{{NaviCustProgramColor|{{{1}}}}}|7|6}};{{#switch:{{{1}}}|w|m|y|r|b|g|o|v|d=opacity:0.333}}"></div>}}}}</div></includeonly><noinclude>
|m|magenta|pink={{
#vardefine:col0|FF94E7}}{{#vardefine:col1|FFD6F7}}{{#vardefine:col2|D663A5}}
|y|yellow={{
#vardefine:col0|EFF700}}{{#vardefine:col1|FFFFCE}}{{#vardefine:col2|D6C600}}
|r|red={{
#vardefine:col0|E70000}}{{#vardefine:col1|FF7B73}}{{#vardefine:col2|BD0000}}
|b|blue={{
#vardefine:col0|4252FF}}{{#vardefine:col1|52B5FF}}{{#vardefine:col2|1008C6}}
|g|green={{
#vardefine:col0|00EF10}}{{#vardefine:col1|94FF8C}}{{#vardefine:col2|00BD08}}
|o|orange={{
#vardefine:col0|FFAD00}}{{#vardefine:col1|FFD684}}{{#vardefine:col2|DE8400}}
|v|violet|purple={{
#vardefine:col0|AD00D6}}{{#vardefine:col1|D652FF}}{{#vardefine:col2|73008C}}
|d|dark|black|gray|grey={{
#vardefine:col0|948C94}}{{#vardefine:col1|B5B5B5}}{{#vardefine:col2|5A5A5A}}
|#default={{
#vardefine:col0|4A6B8C}}{{#vardefine:col1|5A5A5A}}{{#vardefine:col2|294263}}
}}{{
#ifeq: {{{1}}}
| _
|
|
<div style="
position: absolute;
top: -1px;
bottom: -1px;
left: -1px;
right: -1px;
box-sizing: border-box;
border: 1px solid;
{{
#ifeq: {{lc:{{{1}}}}}
| {{{1}}}
| opacity: 0.333;
}}
{{
#ifeq: {{{type|}}}
| plus
|
|
background: #{{#var:col0}};
border-color: #{{#var:col1}} #{{#var:col2}} #{{#var:col2}} #{{#var:col1}};
}}
">
{{
#ifeq: {{{type|}}}
| plus
|
{{#vardefine:plusStyle|
position: absolute;
display: inline-block;
border: 1px solid;
box-sizing: border-box;
background: #{{#var:col0}};
border-color: #{{#var:col1}} #{{#var:col2}} #{{#var:col2}} #{{#var:col1}};
}}
<div style="{{#var:plusStyle}}; top:-1px; left:-1px; right:50%; bottom:50%;"></div>
<div style="{{#var:plusStyle}}; top:-1px; left:50%; right:-1px; bottom:50%;"></div>
<div style="{{#var:plusStyle}}; top:50%; left:-1px; right:50%; bottom:-1px;"></div>
<div style="{{#var:plusStyle}}; top:50%; left:50%; right:-1px; bottom:-1px;"></div>
}}
</div>
}}</includeonly><noinclude>
==Example==
==Example==
{{NaviCustProgramPart}}
{{NaviCustProgramPart}}

Revision as of 03:15, 3 March 2016

Example

Usage

{{NaviCustProgramPart}}

{{NaviCustProgramPart|G}}

{{NaviCustProgramPart|g}}

{{NaviCustProgramPart|Y|plus}}

{{NaviCustProgramPart|y|plus}}