Search results
Results from the WOW.Com Content Network
This template uses Lua: Module:Sort table This template extends the functionality of {{ sort list }} to tables, so that tables in articles can be set with a default sorting, and have their rows manually shuffled around every time their data is updated.
This template uses Lua: ... Date table sorting is used to correctly sort and display dates in a sortable table (see Help:Sortable ... Examples input style input code
See Help:Sortable tables#Numerical sorting problems and meta:Help:Sorting#Sort modes Equal rank If you simply code as the second parameter an indicator that two items are equally ranked, e.g. "4=", the template interpreter will treat this as an additional parameter (i.e. parameter 4, which it will then not use).
A table is a sequence, optionally supplemented by named keys: digit["two"]="2". Several table functions like table.concat will only work with the numbered values and ignore named keys. The metatable offers a large, optional set of methods for altering table behavior. For example, you can define a table to be callable like a function.
Lua provides functions to push and pop most simple C data types (integers, floats, etc.) to and from the stack, and functions to manipulate tables through the stack. The Lua stack is somewhat different from a traditional stack; the stack can be indexed directly, for example. Negative indices indicate offsets from the top of the stack.
A name in Lua is either an access of a local variable or a table lookup. [3] math.floor is a table lookup (of the string "floor") in the (global) math table, for example. Table lookups are slower, at runtime, than local variable lookups. Table lookups in tables such as the args table with its "specialness" are a lot slower.
Template parameters [Edit template data] Parameter Description Type Status Number 1 Your number Number required Format output? format If you do not wish the output to be formatted (i.e. separated by thousand separators), please put "no" in this field. (Without quotation marks.) String optional Debug debug If set to "yes", forces output to include debug data String optional Prefix prefix The ...
Insert the given text before the result but after any sort key. sortable=off: No sort key (default). sortable=on: Output a hidden sort key for use in sortable tables. sortable=table: Insert a sort key using table syntax data-sort-value="value"|. sortable=debug: Same as sortable=on but the sort key is displayed for testing.