打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模块:TestPaper:修订间差异

来自医林拾薪
无编辑摘要
无编辑摘要
 
(未显示同一用户的4个中间版本)
第3行: 第3行:
function p.singleChoice( f )
function p.singleChoice( f )
local args = f:getParent().args
local args = f:getParent().args
local finalText = '<quiz>\n{Question|type="()"}\n'
local finalText = '<p>12345</p>'
local text
local text
for k, v in pairs( args ) do
for k, v in pairs( args ) do
     finalText = finalText..'- '..v..'\n'
     finalText = finalText..'- '..v..''
end
end
finalText = finalText..'</quiz>\n'
     return finalText
     return finalText
end
end
return p
return p

2022年1月25日 (二) 01:21的最新版本

可在模块:TestPaper/doc创建此模块的帮助文档

脚本错误:Lua错误:无法创建进程:proc_open(/home/pi/LUA/error.log): Failed to open stream: 权限不够

local p = {}

function p.singleChoice( f )
	local args = f:getParent().args
	local finalText = '<p>12345</p>'
	local text
	for k, v in pairs( args ) do
    	finalText = finalText..'- '..v..''
	end
    return finalText
end
return p