વિભાગ:Userbox/doc: આવૃત્તિઓ વચ્ચેનો તફાવત
Content deleted Content added
KartikMistry (ચર્ચા | યોગદાન) નાનું en:Module:Userbox/doc માંથી આયાત કરેલ ૯ પુનરાવર્તનો |
નાનું Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
લીટી ૩૦:
To generate a userbox directly from Lua, first load the module.
<
local userbox = require('Module:Userbox')
</syntaxhighlight>
You can then run any of the three templates with the code:
<
userbox.main(functionName, args)
</syntaxhighlight>
For {{tl|userbox}} use the function name "<code>_userbox</code>"; for {{tl|userbox-2}} use the function name "<code>_userbox-2</code>"; and for {{tl|userbox-r}} use the function name "<code>_userbox-r</code>". The <code>args</code> parameter is a table of arguments to pass to the different userbox functions. To see a list of valid arguments, please consult the individual template pages.
|