Template:DoEPlayfield/Documentation
Jump to navigation
Jump to search
Usage
Create a field display to mimic spells, patterns, or movements. Uses branch templates Template:DoEPlayfield/Entity and Template:DoEPlayfield/Highlight.
{{DoEPlayfield|<!-- -->{{DoEPlayfield/Highlight|y=2|x=6|color=gray}}<!-- -->{{DoEPlayfield/Entity |y=2|x=2|image=DoE saf color 1.png}}<!-- -->}}
Template Parameters
{{DoEPlayfield|float=none|caption=Bottom text| ... }}
unnamed parameter 1
Entities and Tile Highlights using Template:DoEPlayfield/Entity and Template:DoEPlayfield/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
... {{DoEPlayfield/Entity|y=|x=2|image=DoE saf color 1.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: DoE saf color 1.png)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
... {{DoEPlayfield/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:DoE PlayfieldTile Fire.png |
break | #25344b | File:DoE PlayfieldTile Break.png |
crack | none | File:DoE PlayfieldTile Crack.png |
- | ||
Root | none | File:DoE PlayfieldTile Root.png |
- | ||
warning | none | File:DoE PlayfieldTile Warning.png |
- | - | |
default value | gray | none |
- | - | |
none | none | none |
- | - |
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: DoE saf color 1.png)target
The target of the spell on the right. (Default: Structure_Debris.png OR empty)
Template Shortcuts
{{DoEPlayfield}}
can also be written as{{pf}}
or{{field}}
{{DoEPlayfield/Entity}}
can also be written as{{entity}}
{{DoEPlayfield/Highlight}}
can also be written as{{highlight}}
Examples
Basic Example
Found on any 4 tile target spell page, like Template:Spells. Use Template:DoEPlayfield/Preset 4 Tile if possible.
Source:
{{DoEPlayfield| {{DoEPlayfield/Highlight|x=6|y=2|color=gray}} {{DoEPlayfield/Entity |x=2|y=2|image=DoE saf color 1.png}} }}