Module:Etrian 2 Special Tile Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
Template-info.png Documentation

This template covers a list of tiles and their names in Japanese present in Etrian Mystery Dungeon 2 for use only in table Templates such as Module:Etrian 2 Dungeon Special Tiles table.

In this example, the attribute {{{tile_n|}}} uses this module...

{{#invoke:Etrian 2 Dungeon Special Tiles table|main
  | tile_1  = Spread Tile
  | floor_1 = 2
}}

...and will result in:

ModelSpecial TilesFloors
EnglishJapanese
Etrian 2 - Spread Tile.pngSpread Tile展開床2

--------------------------------------------------------------------------------
--
--                       Module:Etrian 2 Special Tile Data Cell
--
-- This module covers a list of special tiles in Japanese present in
-- Etrian Mystery Dungeon 2.
--
-- Parameters
--
-- name: Insert the tile's English name there.
--
--------------------------------------------------------------------------------

p = {}

function p.etrian2SpecialTileDataCell(f)
	-- Gets the arguments from #invoke:Etrian 2 Special Tile Data Cell|etrian2Special TileDataCell
	local args = f.args

	-- List of every tile's Japanese names
	local list = {
		["Crystal Tile"] = "結晶床",
		["Downstairs"] = "下り階段",
		["Geomagnetic Pole"] = "樹海磁軸",
		["Light Switch"] = "あかりスイッチ",
		["Magma"] = "マグマ",
		["Skill Point Tile"] = "スキルポイント床",
		["Spread Tile"] = "展開床",
		["Upstairs"] = "上り階段",
		["Water"] = "水",
	}

	-- Returns the selected tile's Japanese name
	return list[args.name]
end

return p