Difference between revisions of "Module:HoVoTeamLookup"

From Furry Basketball Association
Jump to: navigation, search
m
m
Line 6: Line 6:
 
local pagesplit = mw.text.split(pagedata, '|')
 
local pagesplit = mw.text.split(pagedata, '|')
 
end
 
end
return pagesplit
+
return frame.args[1]
 
end
 
end
  
 
return p
 
return p

Revision as of 16:13, 4 December 2019

local p = {} function p.teamposition( frame ) local pagedata = mw.title.new('Template:Roster/team'):getContent() if string.find(pagedata, frame.args[1]) then local pagesplit = mw.text.split(pagedata, '|') end return frame.args[1] end return p