Module:Etrian 1 Trap Data Cell
Jump to navigation
Jump to search
This template covers a list of traps and their names in Japanese present in Etrian Mystery Dungeon for use only in table Templates such as Module:Etrian 1 Dungeon Traps table.
In this example, the attribute {{{trap_n|}}} uses this module...
{{#invoke:Etrian 1 Dungeon Traps table|main | trap_1 = Arrow Trap | floor_1 = 2 }}
...and will result in:
Model | Traps | Floors | |
---|---|---|---|
English | Japanese | ||
![]() | Arrow Trap | Script error: The function "etrian1TrapDataCell" does not exist. | 2 |
--------------------------------------------------------------------------------
--
-- Module:Etrian 1 Trap Data Cell
--
-- This module covers a list of traps in Japanese present in
-- Etrian Mystery Dungeon.
--
-- Parameters
--
-- name: Insert the trap's English name there.
--
--------------------------------------------------------------------------------
p = {}
function p.shiren3TrapDataCell(f)
-- Gets the arguments from #invoke:Etrian 1 Trap Data Cell|etrian1TrapDataCell
local args = f.args
-- List of every trap's Japanese names
local list = {
[""] = ""
}
-- Returns the selected trap's Japanese name
return list[args.name]
end
return p