模組:Vgname/testcases
外观
![]() | 這是Module:Vgname的測試樣例頁,測試結果請見討論頁。 |
local getArgs = require('Module:Arguments').getArgs
local yesno = require('Module:Yesno')
local p = {}
local langList = {
}
local function bold(cont)
if yesno(_bold) ~= false then
cont = '<b>' .. cont .. '</b>'
end
return cont
end
local function main(t)
local ret = t[1]
ret = bold(ret)
if yesno(t.bracket) ~= false then
ret = '《' .. ret .. '》'
end
return ret
end
local function orig(t)
end
local function eng(t)
end
local function trans(t)
end
local function note(t)
end
function p.vgname(frame)
local ret = ""
local args = getArgs(frame, {
parentOnly = true;
valueFunc = function (key, value)
if value == nil then
return ''
else
return value
end
end;
})
_bold = args.bold
_diff = args.diff
------------------------------------------------------------------------
local ret = main(args)
---------------------------------------------------------------
return ret
end
return p