Module:Save Surala Item Data Cell

MDFW - The Mystery Dungeon Tree of Information.
Revision as of 21:56, 22 March 2023 by Adkuate (talk | contribs) (Created page with "-------------------------------------------------------------------------------- -- -- Module:Save Surala Item Data Cell -- -- This module covers a list of items in Japanese present in -- Shiren the Wanderer BS: Save Surala. -- -- Parameters -- -- name: Insert the item's English name there. -- -------------------------------------------------------------------------------- p = {} function p.saveSuralaItemDataCell(f) -- Gets the arguments from #invo...")
(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 Shiren the Wanderer BS: Save Surala for use only in modules such as Modules:Save Surala Dungeon Items table row.

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

{{#invoke:Save Surala Dungeon Items table|main
  | category      = Gitan
  | low_amount_1  = 20
  | high_amount_1 = 200
  | floors_1      = 1 - 5
}}

...and will result in:

Gitan's sprite.
Gitan
Lowest amountHighest amountFloors
202001 - 5

--------------------------------------------------------------------------------
--
--                     Module:Save Surala Item Data Cell
--
-- This module covers a list of items in Japanese present in
-- Shiren the Wanderer BS: Save Surala.
--
-- Parameters
--
-- name: Insert the item's English name there.
--
--------------------------------------------------------------------------------

p = {}

function p.saveSuralaItemDataCell(f)
	-- Gets the arguments from #invoke:Save Surala Item Data Cell|saveSuralaItemDataCell
	local args = f.args

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

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

return p