문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
문서의 원본을 보거나 복사할 수 있습니다.
-- 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
이 문서에서 사용한 틀:
모듈:Arguments 문서로 돌아갑니다.