Extension:ArrayFunctions/Lua functions

ArrayFunctions provides the following Lua (Scribunto) functions.

Lua functions

edit

mw.af.export

edit
ArrayFunctions version
1.0

This Lua function exports a Lua table as an ArrayFunctions array.

Description

edit
mw.af.export( table )

Parameters

edit
table : array
The array to export.

Return values

edit

Returns the table as an ArrayFunctions array.

mw.af.import

edit
ArrayFunctions version
1.6

This Lua function imports an ArrayFunctions array as a Lua table.

Description

edit
mw.af.import( array )

Parameters

edit
array : array
The array to import.

Return values

edit

Returns the array as a Lua table.