Template

NaviCustProgramPart: Difference between revisions

From The Rockman EXE Zone Wiki

No edit summary
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="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|P|p|D|d={{#ifeq:{{{2}}}|plus|{{{!}}style="position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;width:20px;height:20px;border-spacing:0;{{#switch:{{{1}}}|w|m|y|r|b|g|o|p|d=opacity:0.5}}"
<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}}"{{!}}
#switch:{{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}}"{{!}}
|w|white={{
{{!}}-
#vardefine:col0|FFFFFF}}{{#vardefine:col1|FFFFFF}}{{#vardefine:col2|CECED6}}{{#vardefine:col3|FFFFFF}}
{{!}}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}}"{{!}}
|m|magenta|pink={{
{{!}}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|FF94E7}}{{#vardefine:col1|FFD6F7}}{{#vardefine:col2|D663A5}}{{#vardefine:col3|294A4A}}
{{!}}}|<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|p|d=opacity:0.5}}"></div>}}}}</div></includeonly><noinclude>
|y|yellow={{
#vardefine:col0|EFF700}}{{#vardefine:col1|FFFFCE}}{{#vardefine:col2|D6C600}}{{#vardefine:col3|FFFF21}}
|r|red={{
#vardefine:col0|E70000}}{{#vardefine:col1|FF7B73}}{{#vardefine:col2|BD0000}}{{#vardefine:col3|FF3121}}
|b|blue={{
#vardefine:col0|4252FF}}{{#vardefine:col1|52B5FF}}{{#vardefine:col2|1008C6}}{{#vardefine:col3|4AA5FF}}
|g|green={{
#vardefine:col0|00EF10}}{{#vardefine:col1|94FF8C}}{{#vardefine:col2|00BD08}}{{#vardefine:col3|294A4A}}
|o|orange={{
#vardefine:col0|FFAD00}}{{#vardefine:col1|FFD684}}{{#vardefine:col2|DE8400}}{{#vardefine:col3|294A4A}}
|v|violet|purple={{
#vardefine:col0|AD00D6}}{{#vardefine:col1|D652FF}}{{#vardefine:col2|73008C}}{{#vardefine:col3|294A4A}}
|d|dark|black|gray|grey={{
#vardefine:col0|948C94}}{{#vardefine:col1|B5B5B5}}{{#vardefine:col2|5A5A5A}}{{#vardefine:col3|294A4A}}
|#default={{
#vardefine:col0|4A6B8C}}{{#vardefine:col1|5A5A5A}}{{#vardefine:col2|294263}}{{#vardefine:col3|294A4A}}
}}<div style="
box-sizing: border-box;
position: relative;
display: inline-block;
{{
#switch: {{lc:{{{2}}}}}
|#default=
width: 20px;
height: 20px;
border: 1px solid;
background: #{{#var:col0}};
border-color: #{{#var:col1}} #{{#var:col2}} #{{#var:col2}} #{{#var:col1}};
|+=
width: 20px;
height: 20px;
|p=
width: 12px;
height: 32px;
border: 2px solid;
background: #{{#var:col3}};
border-color: #949494 #4A4A52 #4A4A52 #949494;
}}
">{{
#ifeq: {{{2}}}
| +
|
{{#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:0; left:0; right:50%; bottom:50%;"></div>
<div style="{{#var:plusStyle}}; top:0; left:50%; right:0; bottom:50%;"></div>
<div style="{{#var:plusStyle}}; top:50%; left:0; right:50%; bottom:0;"></div>
<div style="{{#var:plusStyle}}; top:50%; left:50%; right:0; bottom:0;"></div>
}}</div></includeonly><noinclude>
==Example==
==Example==
{{NaviCustProgramPart}}
{{NaviCustProgramPart}}
{{NaviCustProgramPart|G}}


{{NaviCustProgramPart|g}}
{{NaviCustProgramPart|g}}


{{NaviCustProgramPart|Y|plus}}
{{NaviCustProgramPart|y|+}}


{{NaviCustProgramPart|y|plus}}
{{NaviCustProgramPart|r|p}}


==Usage==
==Usage==
<pre>{{NaviCustProgramPart}}
<pre>{{NaviCustProgramPart}}
{{NaviCustProgramPart|G}}


{{NaviCustProgramPart|g}}
{{NaviCustProgramPart|g}}


{{NaviCustProgramPart|Y|plus}}
{{NaviCustProgramPart|y|+}}


{{NaviCustProgramPart|y|plus}}</pre></noinclude>
{{NaviCustProgramPart|r|p}}</pre></noinclude>

Latest revision as of 04:29, 3 March 2016

Example

Usage

{{NaviCustProgramPart}}

{{NaviCustProgramPart|g}}

{{NaviCustProgramPart|y|+}}

{{NaviCustProgramPart|r|p}}