Template:Lua: Difference between revisions

From NeuroWiki
Jump to navigation Jump to search
m 1 revision imported
Translated.
 
Line 1: Line 1:
{{Message box
{{Message box
| image = Lua logo.svg
| 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}}}}} }}]] }} | 此脚本使用[[wzh:Lua|Lua]]编写}}<br>{{ #if: {{{data|}}} | 这些脚本均使用[[wzh:Lua|Lua]]编写。}}更多详情,请参阅[[wzh:Wikipedia:Lua|Wikipedia:Lua]][[mw:Special:MyLanguage/Extension:Scribunto|Extension:Scribunto]]
| 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:基于Lua的模板]]
     | 0 | 10 = [[Category:Lua-based Templates]]
     }}
     }}
   }}
   }}
}}</includeonly><noinclude>{{documentation}}
}}</includeonly><noinclude>{{documentation}}[[Category:Notification Templates]]
<!-- 请将分类/语言链接放在文档页面 --></noinclude>
</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.

[ View | Edit | History | Purge ]Documentation page

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.