Module:Arguments/doc: Difference between revisions

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
→‎Known limitations: don't give Module:Toolbar as an example - it turns out that "if frame == mw.getCurrentFrame()" isn't good coding practice
(use value consistently for valueFunc, and tweak whitespace)
(→‎Known limitations: don't give Module:Toolbar as an example - it turns out that "if frame == mw.getCurrentFrame()" isn't good coding practice)
Line 246:
=== Known limitations ===
 
The use of metatables also has its downsides. Most of the normal Lua table tools won't work properly on the args table, including the <code>#</code> operator, the <code>next()</code> function, and the functions in the table library. If using these is important for your module, you should use your own argument processing function instead of this module. See [[Module:Toolbar]] for a basic example of such a function.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu