變更
小
本模板用于标示使用This template is used to show that templates have been converted to [[Lua (programming language)|Lua]] 语言编译的模板,可放置于模板的文档及讨论页,并将模板自动归类于. It is placed at the top of the template's /doc page. It automatically adds the template to [[:Category: 基于Lua编程语言的模板Lua-based templates]] 。, or to one of its subcategories.
其中參數<code>模块1</code>為必填; All parameters : {{tlx|Lua|''module 1''|''module 2''|''module 3''|...|category{{=}}''custom category''|nocat{{=}}''true''}}
== 示例 ==The first module name is required.
本模板如果置於模板名字空間下,而且該頁面不是附頁、/doc、/sandbox、/sandbox2、/testcases,就會將頁面加入到[[:===Category:基于Lua编程语言的模板]]分類當中。<!--如需要加入到別的分類,可使用{{para|category}}參數,如{{para|category|基于Lua字符的模板}}。要不加入分類,可用suppression===To suppress all categorisation, use {{para|nocat|true}} 。-->. (As well as "true", the values "yes", "y", and "1" will also work.)
Reverted edits by 208.54.86.246 (talk) to last version by Plagiat
{{Documentation subpage}}
{{template Template shortcut|lua Lua talk}}{{Lua{{\sandbox}}|Module:Lua banner}}<!-- Categories go at the bottom of this page , and interwikis go in on Wikidata. -->
== 用法 Usage ==
; 基本用法Basic : {{tlx|luaLua| 模块1|模块2|...''module name''}}
== Examples == *{{tlx|Lua|Module:TestBananas}}{{Lua{{\sandbox}}|Module:TestBananas|nocat=true}}連到1個模組
{{clear}}
*{{tlx|luaLua|Module:TestBananas|Module:BananasArgs}}{{Lua{{\sandbox}}|Module:TestBananas|Module:BananasArgs|nocat=true}}連到多個模組
{{clear}}
*{{tlx|Lua|Module:AbcBananas|Module:BananasArgs|Module:HelloWorld}}{{Lua{{\sandbox}}|Module:AbcBananas|Module:BananasArgs|Module:HelloWorld|nocat=true}}若連到1個不存在的模組將出現頁面不存在的紅色超連結
{{clear}}
*{{tlx|luaLua}}{{Lua{{\sandbox}}|nocat=true}}若沒有連到模組將出現錯誤:<strong class="error">錯誤:未指定模組</strong>
{{clear}}
== 分類 Categorisation == ===Template category===This template adds pages to [[:Category:Lua-based templates]] if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the {{para|category}} parameter, e.g. {{para|category|Lua String-based templates}}. Some modules have a default category other than [[:Category:Lua-based templates]]:* [[Module:String]] has the default category [[:Category:Lua String-based templates]].* [[Module:Math]] has the default category [[:Category:Templates based on the Math Lua module]].* [[Module:BaseConvert]] has the default category [[:Category:Templates based on the BaseConvert Lua module]].* [[Module:Citation]] and [[Module:Citation/CS1]] both have the default category [[:Category:Lua-based citation templates]]. ===Error category===If no modules are specified, the transcluded page will be added to [[:Category:Lua templates with errors]].
== 参见 See also ==
* [[Wikipedia:Lua]]
* {{tl|module rating}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox || <!-- Categories go here, and interwikis go in on Wikidata . -->[[Category: 維基百科Lua模板Wikipedia Lua templates| ]] }}</includeonly>