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
removed two unneeded tags
mNo edit summary
(removed two unneeded tags)
 
(One intermediate revision by the same user not shown)
Line 1:
{{High-use|22800000|all-pages = yes}}
{{Used in system}}
{{Module rating|p}}
 
This module provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
Line 193 ⟶ 191:
})
</syntaxhighlight>
|}
{{cob}}
 
Also, please note that the <code>valueFunc</code> function is called more or less every time an argument is requested from the <code>args</code> table, so if you care about performance you should make sure you aren't doing anything inefficient with your code.
Line 219 ⟶ 217:
return p
</syntaxhighlight>
|}
{{cob}}
 
<code>Module:ExampleArgs</code> is then called by <code>Template:ExampleArgs</code>, which contains the code <code><nowiki>{{#invoke:ExampleArgs|main|firstInvokeArg}}</nowiki></code>. This produces the result "firstInvokeArg".
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu