Template:LuaConstant: Difference between revisions
From Spring
Jump to navigationJump to search
Created page with "<includeonly>{{var|1= {{#ifeq: {{{type}}} | bool | {{type|bool}} | }} {{#ifeq: {{{type}}} | number | {{type|number}} | }} {{#ifeq: {{{type}}} | string | {{type|string}} | }} }..." |
Added info tag to be able to enter a description |
||
| Line 4: | Line 4: | ||
{{#ifeq: {{{type}}} | string | {{type|string}} | }} | {{#ifeq: {{{type}}} | string | {{type|string}} | }} | ||
}} | }} | ||
{{name|{{anchor|{{{name}}}}}[[#{{{name}}}|{{{name}}}]]}}</includeonly><noinclude> | {{name|{{anchor|{{{name}}}}}[[#{{{name}}}|{{{name}}}]]}} | ||
:{{#if: {{{info|}}} | {{{info}}} | }}</includeonly><noinclude> | |||
==Lua Constant usage example== | ==Lua Constant usage example== | ||
| Line 13: | Line 14: | ||
{{LuaConstant | {{LuaConstant | ||
|type = number | |type = number | ||
|name = ThisIsANumber}}</pre> | |name = ThisIsANumber | ||
|info = This is a description.}}</pre> | |||
{{LuaConstant | {{LuaConstant | ||
|type = number | |type = number | ||
|name = ThisIsANumber}}</noinclude> | |name = ThisIsANumber | ||
|info = This is a description.}}</noinclude> | |||
Revision as of 22:13, 28 February 2021
Lua Constant usage example
This template creates an anchored entry meant for a Lua constant. Type can be bool, number or string.
{{LuaConstant
|type = number
|name = ThisIsANumber
|info = This is a description.}}
number ThisIsANumber
- This is a description.