Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Test: Difference between revisions

From MassiveCraft Wiki
No edit summary
No edit summary
Line 1: Line 1:
local p = {}
local p = {}


name=""
names = ""
age=""
gender=""
race=""


function p.info(frame)
function p.info(frame)
name=frame.args.Name
age=frame.args.Age
gender=frame.args.Gender
race=frame.args.Race
full = name .. " is a \n\n" .. age .. " year old " .. gender .. " " .. race .. "."
names=frame.args.names
return(full)
local t = {}
  local function helper(names)
  table.insert(t, names) return "" end
  if not str:gsub("%w+", helper):find"%S" then return t end
end
end
return p

Revision as of 05:35, 30 December 2015

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

local p = {}

names = ""

function p.info(frame)
	
	names=frame.args.names
	
	 local t = {}
  local function helper(names) 
  	table.insert(t, names) return "" end
  if not str:gsub("%w+", helper):find"%S" then return t end
end