Difference between revisions of "Template:Lua"

From BESA® Wiki
Jump to: navigation, search
(Magic words are case-sensitive)
m (1 revision)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{msgbox
+
<includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude>
| image = Lua logo.svg
+
{{Lua|Module:Lua banner}}
| 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}}
<!-- Put categories/interwiki on the documentation page -->
+
<!-- Categories go on the /doc subpage and interwikis go on Wikidata. -->
 +
</noinclude>

Latest revision as of 14:57, 8 April 2016

Script error Script error