Jump to content

Module:Arguments: Difference between revisions

Created page with "-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string'..."
en>MusikAnimal
m (1 revision imported)
 
(Created page with "-- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string'...")
Line 112: Line 112:
fargs = frame.args
fargs = frame.args
else
else
local title = parent:getTitle():gsub('/sandbox$', '')
local title = parent:getTitle():gsub('/تمرین$', '')
local found = false
local found = false
if matchesTitle(options.wrappers, title) then
if matchesTitle(options.wrappers, title) then