Template:DoEPlayfield

From Mizuumi Wiki
Jump to navigation Jump to search
Template DocumentationEdit This Documentation
==Usage==

Create a field display to mimic spells, patterns, or movements. Uses branch templates Template:DoEPlayfield/Entity and Template:DoEPlayfield/Highlight.

DoE saf color 1.png
{{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 as left 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 or offsety The entity's x or y location in pixels, alinged to the bottom cemter of the image. Overwrites x or y 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
DoE PlayfieldTile Fire.png
break #25344b File:DoE PlayfieldTile Break.png
DoE PlayfieldTile Break.png
crack none File:DoE PlayfieldTile Crack.png
- DoE PlayfieldTile Crack.png
Root none File:DoE PlayfieldTile Root.png
- DoE PlayfieldTile Root.png
warning none File:DoE PlayfieldTile Warning.png
- -
default value gray none
- -
none none none
- -
  • colorize (Optional) Colorize warning tiles.
    • red DoE PlayfieldTile Warning.png
    • green DoE PlayfieldTile Warning.png
    • blue DoE PlayfieldTile Warning.png
  • color Overwrite the highlight color.

Presets

Instead of filling out code manually for basic spells, you can use a preset.

Template:DoEPlayfield/Preset 4 Tile
Template:DoEPlayfield/Preset Straight
Template:DoEPlayfield/Preset Straight Pierce
Template:DoEPlayfield/Preset Straight Laser

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

Examples

Basic Example

Found on any 4 tile target spell page, like Template:Spells. Use Template:DoEPlayfield/Preset 4 Tile if possible.

DoE saf color 1.png

Source:

{{DoEPlayfield|
{{DoEPlayfield/Highlight|x=6|y=2|color=gray}}
{{DoEPlayfield/Entity   |x=2|y=2|image=DoE saf color 1.png}}
}}

This documentation is automatically transcluded from Template:DoEPlayfield/Documentation and is not included when this page is transcluded.