Module:TV

From Terra Invicta Official Wiki
Revision as of 19:02, 2 January 2026 by Redwah (talk | contribs) (Created page with "-- This is a LUA version of the Template:VT page. -- The idea is to standardize how Value-Type pairs are presented. local p = {} local IconModule = require('Module:Icon') local VTData = mw.loadData('Module:VT/data') function p.VT( frame ) local VTvalue = frame.args[1] local VTtype = frame.args[2] if not VTtype then return 'ERROR: No type specified for VT Module' end local returnString = VTvalue .. ' ' .. VTData[VTtype] return returnString end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:TV/doc

-- This is a LUA version of the Template:VT page.
-- The idea is to standardize how Value-Type pairs are presented.

local p = {}

local IconModule = require('Module:Icon')

local VTData = mw.loadData('Module:VT/data')



function p.VT( frame )
	local VTvalue = frame.args[1]
	local VTtype = frame.args[2]
	if not VTtype then
		return 'ERROR: No type specified for VT Module'	
	end
	local returnString = VTvalue .. ' ' .. VTData[VTtype]
	return returnString
end

return p