Template:MapLayout

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Template-info.svg Documentation

Usage[edit source]

{{MapLayout
|type=
|backdrop=
|baseMap=
| a8= | b8= | c8= | d8= | e8= | f8=
| a7= | b7= | c7= | d7= | e7= | f7=
| a6= | b6= | c6= | d6= | e6= | f6=
| a5= | b5= | c5= | d5= | e5= | f5=
| a4= | b4= | c4= | d4= | e4= | f4=
| a3= | b3= | c3= | d3= | e3= | f3=
| a2= | b2= | c2= | d2= | e2= | f2=
| a1= | b1= | c1= | d1= | e1= | f1=
}}

Recognized type arguments:

  • Set |type=RD for Rival Domains and Grand Conquests, this makes the map image larger.
  • Set |type=TD for Tactics Drills, this makes the scroll image appear at the bottom.
  • Set |type=HO for Heroic Ordeals, this crops the map image properly.

Extra options:

  • |init=pagename|initTab=Infernal: Pull all initial units defined on the given page and unit tab name through Module:UnitData.
  • |allyPos=b1,c1,d1,e1: Add automatically numbered ally starting positions with the given comma-separated list of coordinates.
  • |enemyPos=a8,b8,c8,d8: Add automatically numbered enemy starting positions with the given comma-separated list of coordinates.

Template:Battle Infobox should use {{#invoke:MapLayout|initTabber}} whenever possible to produce initial unit layouts automatically, generating a tabber as necessary if multiple layouts are detected.

Grid Labels[edit source]

A1
B1
C1
D1
E1
F1
A2
B2
C2
D2
E2
F2
A3
B3
C3
D3
E3
F3
A4
B4
C4
D4
E4
F4
A5
B5
C5
D5
E5
F5
A6
B6
C6
D6
E6
F6
A7
B7
C7
D7
E7
F7
A8
B8
C8
D8
E8
F8

Backdrops[edit source]

backdrop= Image
WavePattern
WavePatternSnow
WavePatternBeach
WavePatternNight
WavePatternDark
WavePatternW0009
WavePatternSea
WavePatternSunsetBeach
LavaPattern
LavaPattern_Muspel
WavePatternOnsen
WavePatternHell
WavePatternBeachNight

Base maps[edit source]

Ally units[edit source]

See also: Template:Ally

Enemy units[edit source]

See also: Template:Enemy

Walls[edit source]

See also: Template:Wall

Walls should be drawn if the map uses breakable terrain or if the map image resides in files/assets/Common/Field/Chip.

Boxes[edit source]

See also: Template:Box

Boxes are a special kind of walls.

Rival Domains terrain[edit source]

Allegiance Battles terrain[edit source]

Examples[edit source]

Arena map[edit source]

{{MapLayout
|backdrop=Wave
|baseMap=Z0002
| a8={{Enemy|1}} | b8={{Enemy|2}} | c8={{Enemy|3}} | d8={{Enemy|4}} | e8= | f8=
| a7= | b7= | c7= | d7= | e7= | f7=
| a6= | b6= | c6= | d6= | e6= | f6=
| a5= | b5= | c5= | d5= | e5= | f5=
| a4= | b4= | c4= | d4= | e4= | f4=
| a3= | b3= | c3= | d3= | e3= | f3=
| a2= | b2= | c2= | d2= | e2= | f2=
| a1= | b1={{Ally|1}} | c1={{Ally|2}} | d1={{Ally|3}} | e1={{Ally|4}} | f1=
}}

Arena map with different starting spots[edit source]

{{MapLayout
|backdrop=Wave
|baseMap=Z0002
|allyPos=b4,c6,e5,d3
|enemyPos=b5,d6,e4,c3
| a8= | b8= | c8= | d8= | e8= | f8=
| a7= | b7= | c7= | d7= | e7= | f7=
| a6= | b6= | c6= | d6= | e6= | f6=
| a5= | b5= | c5= | d5= | e5= | f5=
| a4= | b4= | c4= | d4= | e4= | f4=
| a3= | b3= | c3= | d3= | e3= | f3=
| a2= | b2= | c2= | d2= | e2= | f2=
| a1= | b1= | c1= | d1= | e1= | f1=
}}

Example map with actual enemies (and change the backdrop to W0009 for fun)[edit source]

{{MapLayout
|backdrop=WavePatternW0009
|baseMap=Z0002
| a8={{Enemy|generic=Red Fáfnir}} | b8={{Enemy|generic=Blue Fáfnir}} | c8={{Enemy|generic=Green Flier}} | d8={{Enemy|hero=Ursula: Blue Crow}} | e8= | f8=
| a7= | b7= | c7= | d7= | e7= | f7=
| a6= | b6= | c6= | d6= | e6= | f6=
| a5= | b5= | c5= | d5= | e5= | f5=
| a4= | b4= | c4= | d4= | e4= | f4=
| a3= | b3= | c3= | d3= | e3= | f3=
| a2= | b2= | c2= | d2= | e2= | f2=
| a1= | b1={{Ally|1}} | c1={{Ally|2}} | d1={{Ally|3}} | e1={{Ally|4}} | f1=
}}
Red Fafnir Mini Unit Idle.png
Blue Fafnir Mini Unit Idle.png
Green Flier Mini Unit Idle.png
Ursula Blue Crow Face FC.webp

Example map with walls[edit source]

{{MapLayout
|backdrop=Wave
|baseMap=Z0002
| a8={{Wall|style=BraveBoss|type=Pillar|hp=U}} | b8={{Wall|style=normal|type=E|hp=U}} | c8={{Wall|style=normal|type=EW|hp=U}} | d8={{Wall|style=normal|type=W|hp=U}} | e8= | f8=
| a7= | b7= | c7= | d7= | e7= | f7=
| a6= | b6= | c6= | d6= | e6= | f6=
| a5= | b5= | c5= | d5= | e5= | f5=
| a4= | b4= | c4= | d4= | e4= | f4=
| a3= | b3= | c3= | d3= | e3= | f3=
| a2= | b2= | c2= | d2= | e2= | f2=
| a1= | b1={{Ally|1}} | c1={{Ally|2}} | d1={{Ally|3}} | e1={{Ally|4}} | f1=
}}
Wall BraveBoss Pillar U.png
Wall normal E U.png
Wall normal EW U.png
Wall normal W U.png

Rival Domains map[edit source]

{{MapLayout|type=RD
|baseMap=Q0001
|backdrop=Wave
| a10= | b10= | c10= | d10= | e10= | f10={{RDTerrain|color=Enemy|type=Warp}} | g10={{RDTerrain|color=Enemy|type=Fortress}} | h10={{RDTerrain|color=Enemy|type=Warp}}
| a9=  | b9=  | c9={{RDTerrain|color=Enemy|type=Warp}}  | d9=  | e9=  | f9=  | g9={{RDTerrain|color=Enemy|type=Warp}}  | h9=
| a8=  | b8={{RDTerrain|color=Enemy|type=Warp}}  | c8={{RDTerrain|color=Enemy|type=Camp}}  | d8={{RDTerrain|color=Enemy|type=Warp}}  | e8=  | f8=  | g8=  | h8=
| a7=  | b7=  | c7={{RDTerrain|color=Enemy|type=Warp}}  | d7=  | e7=  | f7=  | g7=  | h7=
| a6=  | b6=  | c6=  | d6=  | e6=  | f6=  | g6=  | h6=
| a5=  | b5=  | c5=  | d5=  | e5=  | f5=  | g5=  | h5=
| a4=  | b4=  | c4=  | d4=  | e4=  | f4={{RDTerrain|color=Ally|type=Warp}}  | g4=  | h4=
| a3=  | b3=  | c3=  | d3=  | e3={{RDTerrain|color=Ally|type=Warp}}  | f3={{RDTerrain|color=Ally|type=Camp}}  | g3={{RDTerrain|color=Ally|type=Warp}}  | h3=
| a2=  | b2={{RDTerrain|color=Ally|type=Warp}}  | c2=  | d2=  | e2=  | f2={{RDTerrain|color=Ally|type=Warp}}  | g2=  | h2=
| a1={{RDTerrain|color=Ally|type=Warp}}  | b1={{RDTerrain|color=Ally|type=Fortress}}  | c1={{RDTerrain|color=Ally|type=Warp}}  | d1=  | e1=  | f1=  | g1=  | h1=
}}
Rival Domains Ally Warp.png
Rival Domains Ally Fortress.png
Rival Domains Ally Warp.png
Rival Domains Ally Warp.png
Rival Domains Ally Warp.png
Rival Domains Ally Warp.png
Rival Domains Ally Camp.png
Rival Domains Ally Warp.png
Rival Domains Ally Warp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Camp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Warp.png
Rival Domains Enemy Fortress.png
Rival Domains Enemy Warp.png

Scribunto

This template is a wrapper for the Lua function {{#invoke:MapLayout|map}}. It is directly available to other Lua modules as
local MapLayout = require 'Module:MapLayout'
local result = MapLayout._map {arg1, arg2, key = value}
-- the above is equivalent to {{#invoke:MapLayout|map|arg1|arg2|key=value}}