Homepage
Games
News
News βΎ
All
Transfers
Drama
Business
Sponsors
Mergers
Investors
Hires
Companies
More
People
Tournaments
Brands
Brands βΎ
Companies
Organizations
Sponsors
Other
Locations
Search
Editing
Module:MatchList
From TwogPedia
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local getArgs = require('Module:Arguments').getArgs local MatchList = {} local VariablesLua = mw.ext.VariablesLua function MatchList.main(frame) local args = getArgs(frame) VariablesLua.vardefine('matchList', 1) if args.bestof then VariablesLua.vardefine('bestof', args.bestof) end if args.stage then VariablesLua.vardefine('stage', args.stage) end if args.twitch then VariablesLua.vardefine('twitch', args.twitch) end if args.youtube then VariablesLua.vardefine('youtube', args.youtube) end local tableContainer = mw.html.create('div') :addClass('matchList matchInfo') :css('width', args.width or '350px') local title = mw.html.create('div') :addClass('matchList-title') :wikitext(args.title) tableContainer:node(title) local i = 1 while (args[i] ~= nil) do if string.find(args[i], '<div') ~= nil then tableContainer:node(args[i]) else local playday = mw.html.create('div') :addClass('matchList-playday') :wikitext(args[i]) tableContainer:node(playday) end i = i + 1 end -- if tournament, title, promote, relegate ~= nil -- reset var values VariablesLua.vardefine('matchList', 0) if args.stage then VariablesLua.vardefine('stage', 0) end if args.twitch then VariablesLua.vardefine('twitch', 0) end if args.youtube then VariablesLua.vardefine('youtube', 0) end return tableContainer end return MatchList
Summary:
Please note that all contributions to TwogPedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TwogPedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Template used on this page:
Module:MatchList/doc
(
edit
)
No categories
Edit