打开/关闭搜索
搜索
打开/关闭菜单
1.3K
143
375
74K
医林拾薪
导航
首页
医林拾薪论坛
最近更改
随机页面
特殊页面
上传文件
快捷入口
医学本科题库
待翻译的英语单词
待补充英文的名词
小工具
导出ANKI卡组
本科题库创建向导
题库录入工具
录入英语单词
录入名称解释
Toggle preferences menu
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“模块:Helloworld”的源代码
来自医林拾薪
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
模块
讨论
更多操作
←
模块:Helloworld
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local p = {}; --All Lua modules on Wikipedia must begin by defining a variable --that will hold their externally accessible functions. --Such variables can have whatever name you want and may --also contain various data as well as functions. p.hello = function( frame ) --Add a function to "p". --Such functions are callable in Wikipedia --via the #invoke the command. --"frame" will contain the data that Wikipedia --sends this function when it runs. -- 'Hello' is the name of your choice. The same name needs to be referred to when the module is used. return "Hello World!" + frame.args[1] --This tells us to quit this function and send the information in --"str" back to Wikipedia. end -- end of the function "hello" return p
本页使用的模板:
模块:Helloworld/doc
(
查看源代码
)
返回
模块:Helloworld
。