વિભાગ:Userbox/doc: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
નાનું 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.
 
<sourcesyntaxhighlight lang="lua">
local userbox = require('Module:Userbox')
</syntaxhighlight>
</source>
 
You can then run any of the three templates with the code:
 
<sourcesyntaxhighlight lang="lua">
userbox.main(functionName, args)
</syntaxhighlight>
</source>
 
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.