BattleFieldSF: Difference between revisions
From The Rockman EXE Zone Wiki
No edit summary |
(Set margin: 0) |
||
(23 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<table style=" | <includeonly><table style=" | ||
border-spacing: 0; | border-spacing: 0; | ||
border-collapse: separate; | border-collapse: separate; | ||
Line 7: | Line 7: | ||
width: auto; | width: auto; | ||
border: 0; | border: 0; | ||
margin: 0; | |||
background: transparent; | |||
z-index: 1; | z-index: 1; | ||
">{{#loop: y | | position: relative; | ||
">{{#loop: y | 5 | -5 |{{#if: {{{norow{{#var:y}}|}}}| | <tr style=" | |||
line-height: normal; | line-height: normal; | ||
background: transparent; | |||
">{{#loop: x | 1 | 3 |<td style=" | ">{{#loop: x | 1 | 3 |<td style=" | ||
display: inline-block; | display: inline-block; | ||
Line 17: | Line 21: | ||
padding: 0; | padding: 0; | ||
position: relative; | position: relative; | ||
">{{#ifeq: {{#vardefineecho:panel|{{{panel{{#vardefineecho:xy|{{#var:x}}{{#var:y}}}}|normal}}}}} | none | | | |||
<div style=" | |||
{{#ifeq: {{ | overflow: hidden; | ||
width: 100%; | |||
height: 100%; | |||
box-sizing: content-box; | |||
border: 2px solid {{#ifeq: {{{style|sf1}}} | sf1 | #3A3A3A | transparent }}; | |||
border-bottom: none; | |||
margin: -2px -2px 0 -2px; | |||
"><img src="{{filepath:Field_{{{style|sf1}}}_{{#var:panel}}.png}}" style=" | |||
width: 300%; | |||
height: 500%; | |||
max-width: none; | |||
display: block; | |||
z-index: 1; | z-index: 1; | ||
| | position: relative; | ||
margin: -{{#expr: 30 * (5 - {{#var:y}}) }}% 0 0 -{{#expr: 100 * ({{#var:x}} - 1)}}%; | |||
"></div><div style=" | |||
width: 80px; | |||
height: 14px; | |||
box-sizing: content-box; | |||
border: 2px solid {{#ifeq: {{{style|sf1}}} | sf1 | #3A3A3A | transparent }}; | |||
border-top: none; | |||
margin: 0 -2px -2px -2px; | |||
"><img src="{{filepath:Panel_{{{style|sf1}}}_bottom.png}}" style=" | |||
width: 100%; | |||
height: 100%; | |||
display: block; | |||
z-index: 1; | |||
position: relative; | |||
"></div> | |||
}}{{#switch: {{#var:y}} | 1 | 5 = {{#switch: {{{style|sf1}}} | sf2-road | sf3-road = | |||
<div style=" | |||
position: absolute; | |||
top: {{#switch: {{#var:y}} | 1 = 25px | 5 = -31px}}; | |||
left: -1px; | |||
width: 82px; | |||
height: 30px; | |||
{{#ifeq: {{#var:y}} | 1 | transform: scaleY(-1); }} | |||
"><img src="{{filepath:Field_{{{style}}}_end.png}}" style=" | |||
width: 100%; | |||
height: 100%; | |||
"></div> | |||
}}}}{{#if: {{#vardefineecho:object|{{{object{{#var:xy}}|}}}}} | | |||
<img src="{{filepath:Object_{{#var:object}}.png}}" style=" | |||
position: absolute; | |||
bottom: -28px; | |||
left: 50%; | |||
-moz-transform: translateX(-50%); | |||
-o-transform: translateX(-50%); | |||
-webkit-transform: translateX(-50%); | |||
transform: translateX(-50%); | |||
max-width: none; | |||
z-index: 2; | z-index: 2; | ||
"> | |||
"> | }}{{#if: {{#vardefineecho:objectunder|{{{objectunder{{#var:xy}}|}}}}} | | ||
<img src="{{filepath:Object_{{#var:objectunder}}.png}}" style=" | |||
position: absolute; | |||
top: -236px; | |||
left: 50%; | |||
-moz-transform: translateX(-50%); | |||
-o-transform: translateX(-50%); | |||
-webkit-transform: translateX(-50%); | |||
transform: translateX(-50%); | |||
max-width: none; | |||
z-index: -1; | |||
"> | |||
}}</td>}}</tr>}}}}</table></includeonly><noinclude>==Example== | |||
{{BattleFieldSF | |||
|style=sf1 | |||
|panel15=grass | |||
|panel25=grass | |||
|panel35=grass | |||
|panel14=grass | |||
|panel24=grass | |||
|panel34=grass | |||
</td>}}</tr>}}</table><noinclude> | |panel13=none | ||
|panel23=none | |||
|panel33=none | |||
|panel22=none | |||
|panel11=holy | |||
|panel21=holy | |||
|panel31=holy | |||
|object25=dragonsky | |||
|objectunder25=dragonsky-full | |||
}} | |||
{{BattleFieldSF | |||
|style=sf2-road | |||
|panel35=none | |||
|panel12=none | |||
|object25=mettenna-sf2 | |||
}} | |||
{{BattleFieldSF | |||
|style=sf3-comp | |||
|panel15=none | |||
|panel25=none | |||
|panel35=none | |||
|panel14=none | |||
|panel34=none | |||
|object24=crimsondragon | |||
|objectunder24=crimsondragon-full2 | |||
}} | |||
{{BattleFieldSF | {{BattleFieldSF | ||
|style=sf3-comp | |||
|norow1=true | |||
|norow2=true | |||
|object25=dragonsky | |||
|objectunder25=dragonsky-full | |||
}} | |||
==Usage== | |||
<pre>{{BattleFieldSF | |||
|style=sf1 | |style=sf1 | ||
| | |panel15=grass | ||
| | |panel25=grass | ||
| | |panel35=grass | ||
| | |panel14=grass | ||
| | |panel24=grass | ||
| | |panel34=grass | ||
|panel13=none | |||
|panel23=none | |panel23=none | ||
| | |panel33=none | ||
| | |panel22=none | ||
| | |panel11=holy | ||
|panel21=holy | |||
|panel31=holy | |||
|object25=dragonsky | |||
|objectunder25=dragonsky-full | |||
}} | }} | ||
</noinclude> | |||
{{BattleFieldSF | |||
|style=sf2-road | |||
|panel35=none | |||
|panel12=none | |||
|object25=mettenna-sf2 | |||
}} | |||
{{BattleFieldSF | |||
|style=sf3-comp | |||
|panel15=none | |||
|panel25=none | |||
|panel35=none | |||
|panel14=none | |||
|panel34=none | |||
|object24=crimsondragon | |||
|objectunder24=crimsondragon-full2 | |||
}} | |||
{{BattleFieldSF | |||
|style=sf3-comp | |||
|panel15=none | |||
|panel25=none | |||
|panel35=none | |||
|panel14=none | |||
|panel34=none | |||
|object24=crimsondragon | |||
|objectunder24=crimsondragon-full2 | |||
}} | |||
{{BattleFieldSF | |||
|style=sf3-comp | |||
|norow1=true | |||
|norow2=true | |||
|object25=dragonsky | |||
|objectunder25=dragonsky-full | |||
}}</pre></noinclude> |
Latest revision as of 01:35, 27 December 2023
Example
Usage
{{BattleFieldSF |style=sf1 |panel15=grass |panel25=grass |panel35=grass |panel14=grass |panel24=grass |panel34=grass |panel13=none |panel23=none |panel33=none |panel22=none |panel11=holy |panel21=holy |panel31=holy |object25=dragonsky |objectunder25=dragonsky-full }} {{BattleFieldSF |style=sf2-road |panel35=none |panel12=none |object25=mettenna-sf2 }} {{BattleFieldSF |style=sf3-comp |panel15=none |panel25=none |panel35=none |panel14=none |panel34=none |object24=crimsondragon |objectunder24=crimsondragon-full2 }} {{BattleFieldSF |style=sf3-comp |panel15=none |panel25=none |panel35=none |panel14=none |panel34=none |object24=crimsondragon |objectunder24=crimsondragon-full2 }} {{BattleFieldSF |style=sf3-comp |norow1=true |norow2=true |object25=dragonsky |objectunder25=dragonsky-full }}