Difference between revisions of "Template:Lua"

From BESA® Wiki
Jump to: navigation, search
m (45 revisions)
(Magic words are case-sensitive)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude>
+
{{msgbox
{{Lua|Module:Lua banner}}
+
| image = Lua logo.svg
 +
| text  = This template uses '''<includeonly>[[</includeonly>Module:{{ucfirst: {{PAGENAME:{{{1|{{BASEPAGENAME}}}}}}} }}<includeonly>]]</includeonly>''', {{ #if: {{{data|}}} | with data stored in [[Module:{{ ucfirst: {{PAGENAME:{{{data}}}}} }}]]{{ #if: {{{data2|}}} | &#32;and [[Module:{{ ucfirst: {{PAGENAME:{{{data2}}}}} }}]] }} | a script written in [[wikipedia:Lua (programming language)|Lua]] }}.<br>{{ #if: {{{data|}}} | These scripts are written in [[wikipedia:Lua (programming language)|Lua]]. }} Please see [[wp:Lua]] and [[mw:Extension:Scribunto]] to learn more.
 +
| <includeonly>nocat = 1</includeonly>
 +
}}<includeonly>{{
 +
#if: {{{nocat|}}}
 +
|
 +
| {{#ifeq: {{SUBPAGENAME}} | doc
 +
  |
 +
  | {{#switch: {{NAMESPACENUMBER}}
 +
    | 0 | 10 = [[Category:Lua-based templates]]
 +
    }}
 +
  }}
 +
}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
+
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
+

Revision as of 07:55, 23 January 2016

This template uses Module:Lua, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

Script error