Module:Etrian 1 Item Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 20:05, 21 March 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Etrian 1 Item Data Cell -- -- This module covers a list of items in Japanese present in -- Etrian Mystery Dungeon. -- -------------------------------------------------------------------------------- p = {} function p.etrian1ItemDataCell(f) -- Gets the arguments from #invoke:Etrian 1 Item Data Cell|etrian1ItemDataCell local args = f.args -- List of every...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

This template covers a list of items and their names in Japanese present in Etrian Mystery Dungeon for use only in table Templates such as Module:Etrian 1 Dungeon Items table.

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

{{#invoke:Etrian 1 Dungeon Items table|main
  | category    = Scrolls
  | item_1      = Light Scroll
  | floor_1     = 2
  | frequency_1 = 20.00%
}}

...and will result in:

Scrolls.
Scrolls
EnglishJapaneseFloorsItem
Frequency
Light Scroll220.00%

--------------------------------------------------------------------------------
--
--                     Module:Etrian 1 Item Data Cell
--
-- This module covers a list of items in Japanese present in
-- Etrian Mystery Dungeon.
--
--------------------------------------------------------------------------------

p = {}

function p.etrian1ItemDataCell(f)
	-- Gets the arguments from #invoke:Etrian 1 Item Data Cell|etrian1ItemDataCell
	local args = f.args

	-- List of every item's Japanese names
	local list = {
		["Ental"] = "",
	}

	-- Returns the selected item
	return list[args.name]
end

return p