Content deleted Content added
sandboxify |
use getArgs |
||
Line 5:
local getImageName = require( 'Module:Portal' ).image
local yesno = require( 'Module:Yesno' )
local getArgs = require('Module:Arguments').getArgs
local p = {}
Line 167 ⟶ 168:
-- Processes external arguments and sends them to the other functions.
function p.main( frame )
▲ origArgs = frame
-- Process the args to make an array of portal names that can be used with
-- ipairs. We need to use ipairs because we want to list all the portals in
Line 192 ⟶ 181:
if mw.ustring.find( v, '%S' ) then -- Remove blank values.
table.insert( portals, k )
if type( v ) == 'string' then
v = mw.text.trim( v )
|