Anonymous user
Module:Arguments/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
→Recommended practice: make this easier to digest for idiots like me
(→Basic use: add some headers) |
(→Recommended practice: make this easier to digest for idiots like me) |
||
Line 49:
return p
</syntaxhighlight>
The way this is called from a template is <code>{{#invoke:Example|main}}</code> (optionally with some parameters like <code>{{#invoke:Example|main|arg1=value1|arg2=value2}}</code>), and the way this is called from a module is <syntaxhighlight lang=lua inline>require('Module:Example')._main({arg1 = value1, arg2 = value2})</syntaxhighlight>.
=== Multiple functions ===
|