Template:LuaConstant: Difference between revisions
From Spring
Jump to navigationJump to search
Added info tag to be able to enter a description |
m Added color and table as possible types. |
||
| Line 3: | Line 3: | ||
{{#ifeq: {{{type}}} | number | {{type|number}} | }} | {{#ifeq: {{{type}}} | number | {{type|number}} | }} | ||
{{#ifeq: {{{type}}} | string | {{type|string}} | }} | {{#ifeq: {{{type}}} | string | {{type|string}} | }} | ||
{{#ifeq: {{{type}}} | color | {{type|color}} | }} | |||
{{#ifeq: {{{type}}} | table | {{type|table}} | }} | |||
}} | }} | ||
{{name|{{anchor|{{{name}}}}}[[#{{{name}}}|{{{name}}}]]}} | {{name|{{anchor|{{{name}}}}}[[#{{{name}}}|{{{name}}}]]}} | ||
| Line 9: | Line 11: | ||
==Lua Constant usage example== | ==Lua Constant usage example== | ||
This template creates an anchored entry meant for a Lua constant. Type can be bool, number or | This template creates an anchored entry meant for a Lua constant. Type can be bool, number, string, color or table. | ||
<pre> | <pre> | ||
Latest revision as of 22:22, 28 February 2021
Lua Constant usage example
This template creates an anchored entry meant for a Lua constant. Type can be bool, number, string, color or table.
{{LuaConstant
|type = number
|name = ThisIsANumber
|info = This is a description.}}
number ThisIsANumber
- This is a description.