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
Content deleted Content added
→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: | Line 225: | ||
** <code><nowiki>{{ExampleArgs|firstTemplateArg}}</nowiki></code> → firstTemplateArg |
** <code><nowiki>{{ExampleArgs|firstTemplateArg}}</nowiki></code> → firstTemplateArg |
||
** <code><nowiki>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</nowiki></code> → firstTemplateArg secondTemplateArg |
** <code><nowiki>{{ExampleArgs|firstTemplateArg|secondTemplateArg}}</nowiki></code> → 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 === |
=== Writing to the args table === |