Template:Lua: Difference between revisions
Jump to navigation
Jump to search
创建页面,内容为“{{Message box | image = Lua logo.svg | text = 此模板使用了'''<includeonly>[[</includeonly>{{ns:828}}:{{ucfirst: {{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}} }}<includeonly>]]</includeonly>''',{{ #if: {{{data|}}} | 以及数据模块[[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | 和[[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | 此脚本使用Lua编写}}。<br>{{ #if: {{{data|}}} | 这些脚本均使用wz…” |
Translated. |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Message box | {{Message box | ||
| image = Lua logo.svg | | image = Lua logo.svg | ||
| text = | | text = This template uses '''<includeonly>[[</includeonly>{{ns:828}}:{{ucfirst: {{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}} }}<includeonly>]]</includeonly>''', {{ #if: {{{data|}}} | and data module [[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | and [[{{ns:828}}:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | this script is written in [[wzh:Lua|Lua]]}}.<br>{{ #if: {{{data|}}} | These scripts are written in [[wzh:Lua|Lua]].}} For more details, please refer to [[wzh:Wikipedia:Lua|Wikipedia:Lua]] and [[mw:Special:MyLanguage/Extension:Scribunto|Extension:Scribunto]]. | ||
| <includeonly>nocat = 1</includeonly> | | <includeonly>nocat = 1</includeonly> | ||
}}<includeonly>{{ | }}<includeonly>{{ | ||
Line 9: | Line 9: | ||
| | | | ||
| {{#switch: {{NAMESPACENUMBER}} | | {{#switch: {{NAMESPACENUMBER}} | ||
| 0 | 10 = [[Category: | | 0 | 10 = [[Category:Lua-based Templates]] | ||
}} | }} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}} | }}</includeonly><noinclude>{{documentation}}[[Category:Notification Templates]] | ||
</noinclude> |
Latest revision as of 21:56, 9 November 2024
This template uses Module:Lua, this script is written in Lua.
For more details, please refer to Wikipedia:Lua and Extension:Scribunto.
Use on template documentation pages that utilize Lua modules.
|1=
is the module name without the namespace, defaulting to {{BASEPAGENAME}}
. If the template's data is stored in a separate module or subpage, you can use the |data=
and |data2=
parameters.
Use on the documentation pages of templates that use Lua modules.
Pages using this template will automatically add the template to Category:Lua-based Templates. Setting {{{nocat}}}
will prevent this.
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Lua/doc.