Template:Lua: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
m Text replacement - " {{lc:" to "{{lc:" |
||
(6 intermediate revisions 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:L{{lc:ua-based Templates}}]] | ||
}} | }} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}} | }}</includeonly><noinclude>{{documentation}}[[Category:N{{lc:otification Templates}}]] | ||
</noinclude> |
Latest revision as of 22:50, 12 April 2025
This template uses Module:Lua, this script is written in Lua.
For more details, please refer to Wikipedia:Lua and Extension:Scribunto.
Template:Documentation header 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:L ua-based Templates. Setting {{{nocat}}}
will prevent this.
[ View | Edit | History | Purge ]The above documentation is transcluded from Template:Lua/doc.