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
→‎Frames and parent frames: note about setting both frameOnly and parentOnly
(→‎Known limitations: don't give Module:Toolbar as an example - it turns out that "if frame == mw.getCurrentFrame()" isn't good coding practice)
(→‎Frames and parent frames: note about setting both frameOnly and parentOnly)
Line 225:
** <code><nowiki>{{ExampleArgs|firstTemplateArg}}</nowiki></code> &rarr; firstTemplateArg
** <code><nowiki>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</nowiki></code> &rarr; firstTemplateArg secondTemplateArg
 
Note: if you set both the <code>frameOnly</code> and <code>parentOnly</code> options, the module won't fetch any arguments at all from #invoke. This is probably not what you want.
 
=== Writing to the args table ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu