View source for Module:Arguments
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- 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' then
val = val:match('^%s*(.-)%s*$')
if val == '' then
return nil
else
return val
end
000
1:0
Templates used on this page:
- Template:= (view source) (⧼restriction-level-templateeditor⧽)
- Template:Code (view source) (⧼restriction-level-templateeditor⧽)
- Template:Documentation subpage (view source) (⧼restriction-level-templateeditor⧽)
- Template:Module doc (view source)
- Template:Para (view source) (⧼restriction-level-templateeditor⧽)
- Template:Sandbox other (view source) (⧼restriction-level-templateeditor⧽)
- Template:Tag (view source) (⧼restriction-level-templateeditor⧽)
- Template:Template link code (view source) (⧼restriction-level-templateeditor⧽)
- Template:Template link with link off (view source) (⧼restriction-level-templateeditor⧽)
- Template:Testcases other (view source) (⧼restriction-level-templateeditor⧽)
- Template:Tlc (view source) (⧼restriction-level-templateeditor⧽)
- Template:Tlf (view source) (⧼restriction-level-templateeditor⧽)
- Module:Arguments (view source) (⧼restriction-level-templateeditor⧽)
- Module:Arguments/doc (view source)
- Module:Effective protection expiry (view source) (⧼restriction-level-templateeditor⧽)
- Module:Effective protection level (view source) (⧼restriction-level-templateeditor⧽)
- Module:File link (view source) (⧼restriction-level-templateeditor⧽)
- Module:Module doc (view source) (⧼restriction-level-templateeditor⧽)
- Module:Module doc/config (view source) (⧼restriction-level-templateeditor⧽)
- Module:Module doc/styles.css (view source) (⧼restriction-level-templateeditor⧽)
- Module:No globals (view source) (⧼restriction-level-templateeditor⧽)
- Module:Protection banner (view source) (⧼restriction-level-templateeditor⧽)
- Module:Protection banner/config (view source) (⧼restriction-level-templateeditor⧽)
- Module:String (view source) (⧼restriction-level-templateeditor⧽)
- Module:Template link general (view source) (⧼restriction-level-templateeditor⧽)
- Module:Yesno (view source) (⧼restriction-level-templateeditor⧽)
Return to Module:Arguments.