View source for Module:Command
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.cmd( f )
local args = f
if f == mw.getCurrentFrame() then
args = f:getParent().args
end
--if args.be then
--local syntax = mw.loadData( 'Module:Command/SyntaxBE' )
--else
local syntax = mw.loadData( 'Module:Command/Syntax')
--end
local fullCommand
local commandName = args[1]:match( '^%s*/?([^%s]+)' ):lower()
local params = {}
local command = {}
--getparams
for i, v in ipairs( args ) do
if not args[i+1] and v == '...' then
fullCommand = true
elseif i > 1 or v:match( '^%s*/?(.+)' ):lower() ~= commandName then
table.insert( params, mw.text.trim( v ) )
000
1:0
Template used on this page:
Return to Module:Command.