View source for Module:Infocard

From Halopedia, the Halo wiki

You do not have permission to edit this page, for the following reason:

You do not have permission to edit pages in the Module namespace.


You can view and copy the source of this page.

local infocard = {}
function infocard.new()
-- Create a new, blank infocard
local result = { [ 'data' ] = {}, [ 'title' ] = nil }
-- Register withTitle function
function result.withTitle( title )
result[ 'title' ] = tostring( title )
return result
end
-- Register withField function
function result.withField( key, value )
table.insert( result[ 'data' ], {
[ 'key' ] = tostring( key ),
[ 'value' ] = tostring( value )
} )
return result
end
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:Infocard.