Search results
Results from the WOW.Com Content Network
Banner for templates that rely on Lua modules Template parameters Parameter Description Type Status Module 1 1 Name of the main module used in the template. Use multiple parameters to specify multiple modules. Page name required Module 2 2 Name of the second module. Page name optional Module 3 3 Name of the third module. Page name optional Module 4 4 Name of the fourth module. Page name ...
Contents move to sidebar hide (Top) 1 ... Toggle Examples subsection. 2.1 Package items. 3 Template data. Toggle the table of contents. Template: Lua autodoc. Add ...
The template argument size counter keeps track of the total length of template arguments that have been substituted. Its limit is the same as the article size limit. Example: {{3x|{{2x|abcde}}}} has a template argument size of 40 bytes: the argument abcdeabcde is counted 3 times, the argument abcde twice.
The table below shows the output from a template call (we'll call the template {{Conditional tables/example 1}}) with different values for {{{variable_foo}}}: Template call Result
Scribunto Lua reference manual; Programming in Lua; Introduction to Lua patterns; About regex. Lua "patterns" are based on Regex (Patterns are a reduced set of regex). Help:Lua metamodules: Lua in Wikipedia has several meta-modules available that can make core functions easily available.
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.
This module provides a framework for making templates which produce a template test case.While test cases can be made manually, using Lua-based templates such as the ones provided by this module has the advantage that the template arguments only need to be input once, thus reducing the effort involved in making test cases and reducing the possibility of errors in the input.
args is a table containing the module arguments. See the template documentation for more information about the available arguments, and for general caveats about this module's use. The above documentation is transcluded from Module:Table row counter/doc .