Template:DoEPlayfield/Documentation
Jump to navigation
Jump to search
Usage
Create a field display to mimic spells, patterns, or movements. Uses branch templates Template:Infobox Playfield/Entity and Template:Infobox Playfield/Highlight.
{{Infobox Playfield|<!-- -->{{Infobox Playfield/Highlight|y=2|x=6|color=gray}}<!-- -->{{Infobox Playfield/Entity |y=2|x=2|image=Hero_Saffron.png}}<!-- -->}}
Template Parameters
{{Infobox Playfield|float=none|caption=Bottom text| ... }}
unnamed parameter 1
Entities and Tile Highlights using Template:Infobox Playfield/Entity and Template:Infobox Playfield/Highlight. Order matters as elements placed higher display below other elements.caption
(Optional) Caption to display underneath the field display.blanklines
(Optional) Extra blank lines underneath the playfield. Literally extra "
" characters. Value must be 1, 2, or 3 if used.
float
(Optional) CSS float property. Useful to set asleft
so that you can have field displays side-by-side. (Default: none)gray
(Optional) Changes to a fully gray field instead of the default blue/red field if set to "yes". (Default: no)
Entity Parameters
... {{Infobox Playfield/Entity|y=|x=2|image=Hero_Saffron.png}} ...
x
The column to place the entity. (Default: 2)y
The row to place the entity. (Default: 2)image
Entity image aligned to the bottom center of the image. (Default: Hero_Saffron.png) See Category:Sprites for all the sprites uploaded.opacity
The entity opacity. Useful for conveying movement. (Default: 100%)flatalign
The Sprites are placed slightly above the bottom edge of the tile. Set this to "yes" to align it flat against the bottom of the tile. (Default: no)offsetx
oroffsety
The entity's x or y location in pixels, alinged to the bottom cemter of the image. Overwritesx
ory
parameter. Avoid using this unless the image doesn't line up on the tile. (Dimensions of box are 338px by 168px)flip
Flip the image along the x-axis if set to "yes". (Default: no)rotate
(Optional) Rotates the image 90 degrees clockwise if set to "cw", and 90 counter-clockwise if set to "ccw".autoscale
Sprites are scaled up x3 on the wiki as .pngs upslace poorly on Mediawiki. This simply scales images down to 1/3 to fit properly on the playfields. Keeps image size if set to "no". (Default: yes)
Highlight Parameters
... {{Infobox Playfield/Highlight|y=|x=2|color=gray}} ...
x
The column to place the entity. (Default: 2)y
The row to place the entity. (Default: 2)opacity
Highlight opacity. Useful for showing moving attacks. (Default: 1.0)type
Sets the tile color and effect to a preset.
Argument | HTML/Hex Color | Sprite |
---|---|---|
enemyattack | #5d5e09 | none |
- | ||
flame fire |
salmon | File:Tile Fire.png |
File:Tile Fire.png | ||
blast | none | File:Tile_Blast.png |
- | File:Tile Blast.png | |
break | #25344b | File:Tile_Broken.png |
File:Tile Broken.png | ||
crack | none | File:Tile_Cracked.png |
- | File:Tile Cracked.png | |
warning | none | File:Tile_Warning_Attack.png |
- | File:Tile Warning Attack.png | |
warning3 | none | File:Tile_Warning_Attack3.png |
- | File:Tile Warning Attack3.png | |
warning break | none | File:Tile_Warning_Break.png |
- | File:Tile Warning Break.png | |
warning heal | none | File:Tile_Warning_Heal.png |
- | File:Tile Warning Heal.png | |
warning note | none | File:Tile_Warning_Note.png |
- | File:Tile Warning Note.png | |
warning shield | none | File:Tile_Warning_Shield.png |
- | File:Tile Warning Shield.png | |
default value | gray | none |
- | - | |
none | none | none |
- | - |
colorize
(Optional) Colorize warning tiles.color
Overwrite the highlight color.unnamed parameter 1
(optional) Displays a purple arrow in the highlight box. Uses numpad notation, literal direction words, or direction abbreviations. Case insensitive. (Ex:6
,r
, orright
produces a right facing arrow)- File:Arrow 1.png 1,dl,downleft
- File:Arrow 2.png 2,d ,down
- File:Arrow 3.png 3,dr,downright
- File:Arrow 4.png 4,l ,left
- File:Arrow 6.png 6,r ,right
- File:Arrow 7.png 7,ul,upleft
- File:Arrow 8.png 8,u ,up
- File:Arrow 9.png 9,ur,upright
Presets
Instead of filling out code manually for basic spells, you can use a preset.
Preset Parameters
caption
The caption can be changed, but each has their own default.float
As without the preset, float CSS. (Default: none)user
The user of the spell on the left. (Default: Hero_Saffron.png)target
The target of the spell on the right. (Default: Structure_Debris.png OR empty)
Template Shortcuts
{{Infobox Playfield}}
can also be written as{{pf}}
or{{field}}
{{Infobox Playfield/Entity}}
can also be written as{{entity}}
{{Infobox Playfield/Highlight}}
can also be written as{{highlight}}
Examples
Basic Example
Found on any 4 tile target spell page, like Template:Spells. Use Template:Infobox Playfield/Preset 4 Tile if possible. Template:Infobox Playfield Source:
{{Infobox Playfield| {{Infobox Playfield/Highlight|x=6|y=2|color=gray}} {{Infobox Playfield/Entity |x=2|y=2|image=Hero_Saffron.png}} }}
Full Example
From Gate#Strategy page using a lot of parameters. Template:Infobox Playfield Source: (Note: This page uses comments to organize on the original page and prevent line breaks due to list formatting. Without them the code breaks.)
{{Infobox Playfield|<!-- -->{{Infobox Playfield/Entity|offsetx=330px|offsety=270px|image=Boss Gate.png}}<!-- -->{{Infobox Playfield/Highlight|y=2|x=2|color=DarkKhaki|opacity=0.5|8}}<!-- -->{{Infobox Playfield/Highlight|y=3|x=2|color=DarkKhaki|opacity=0.6|6}}<!-- -->{{Infobox Playfield/Highlight|y=3|x=3|color=DarkKhaki|opacity=0.7|6}}<!-- -->{{Infobox Playfield/Highlight|y=3|x=4|color=DarkKhaki|opacity=0.8|2}}<!-- -->{{Infobox Playfield/Highlight|y=2|x=4|color=DarkKhaki|opacity=0.9|2}}<!-- -->{{Infobox Playfield/Highlight|y=1|x=4|color=DarkKhaki|opacity=1.0}}<!-- --><!-- -->{{Infobox Playfield/Entity |y=2|x=2|opacity=0.30}}<!-- -->{{Infobox Playfield/Entity |y=3|x=2|opacity=0.35}}<!-- -->{{Infobox Playfield/Entity |y=3|x=3|opacity=0.40}}<!-- -->{{Infobox Playfield/Entity |y=3|x=4|opacity=0.45}}<!-- -->{{Infobox Playfield/Entity |y=2|x=4|opacity=0.50}}<!-- -->{{Infobox Playfield/Entity |y=1|x=4|opacity=0.55}}<!-- -->{{Infobox Playfield/Entity |y=1|x=3|opacity=1.00}}<!-- -->}}