Template:Lua: Difference between revisions

probably not the most elegant way to add this
m 1 revision imported
 
(32 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{msgbox
{{message box
| image = Lua logo.svg
| image = Lua logo.svg
| text  = This template uses '''<includeonly>[[</includeonly>Module:{{ucfirst: {{{1|{{BASEPAGENAME}}}}} }}<includeonly>]]</includeonly>''', a script written in the [[wikipedia:Lua (programming language)|Lua programming language]]{{ #if: {{{data|}}} | , with data values stored in [[Module:{{ ucfirst: {{{data}}} }}]] }}. Please see [[wp:Lua]] and [[mw:Extension:Scribunto]] to learn more about Lua.
| text  = This {{#ifeq:{{NAMESPACENUMBER}}|828|module depends on|template uses}} '''<includeonly>[[</includeonly>Module:{{ucfirst: {{PAGENAME:{{{1|{{#ifeq:{{SUBPAGENAME}}|doc|{{BASEPAGENAME}}|{{PAGENAME}}}}}}}}} }}<includeonly>]]</includeonly>''', {{ #if: {{{data|}}} | with data stored in [[Module:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | &#32;and [[Module:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | a script written in [[wp:Lua|Lua]] }}.<br>{{ #if: {{{data|}}} | These scripts are written in [[wp:Lua|Lua]]. }}
| <includeonly>nocat = 1</includeonly>
}}<includeonly>{{
}}<includeonly>{{
#if: {{{nocat|}}}
#if: {{{nocat|}}}
|
|
| {{#ifeq: {{SUBPAGENAME}} | doc
| {{#switch: {{SUBPAGENAME}}  
   |
  | doc | sandbox | testcases =
  | [[Category:Lua-based templates]]
   | {{#switch: {{NAMESPACENUMBER}}
    | 0 | 10 = [[Category:Lua-based templates]]
    }}
   }}
   }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{/doc}}
{{documentation}}
<!-- Put categories/interwikis on the documentation page -->
</noinclude>