求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

模块:Lua banner/doc

增加 807 位元組, 9 年前
建立内容为“本模块用于执行{{tl|lua}}模板。 == 通过wikitext使用 == 本模块不能直接被wikitext使用,只能通过{{tl|lua}}模板调用。...”的新页面
本模块用于执行{{tl|lua}}模板。

== 通过wikitext使用 ==

本模块不能直接被wikitext使用,只能通过{{tl|lua}}模板调用。请参阅模板说明书。

== 通过Lua模块使用 ==

为通过其他Lua模块使用本模块,先要载入本模块。

<source lang="lua">
local mLuaBanner = require('Module:Lua banner')
</source>

然后可以通过_main功能生成边框。

<source lang="lua">
mLuaBanner._main(args)
</source>
<!--
变量<var>args</var>需要作为一个包含arguments的表格以通过模块。为看different arguments that can be specified and how they affect the module output, please refer to the {{tl|lua}} template documentation.
-->
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->

}}</includeonly>