<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AUserbox%2Fdoc</id>
	<title>Module:Userbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AUserbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Userbox/doc&amp;action=history"/>
	<updated>2026-06-13T18:39:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Userbox/doc&amp;diff=479948&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Userbox/doc&amp;diff=479948&amp;oldid=prev"/>
		<updated>2021-07-16T07:50:08Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-use|233415}}&lt;br /&gt;
{{Lua|Module:Category handler|Module:Arguments|Module:Color contrast}}&lt;br /&gt;
&lt;br /&gt;
This module does the processing for three userbox templates, {{tl|userbox}}, {{tl|userbox-2}} and {{tl|userbox-r}}.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Template&lt;br /&gt;
! Description&lt;br /&gt;
! Examples&lt;br /&gt;
|-&lt;br /&gt;
| {{tl|userbox}}&lt;br /&gt;
| Makes userboxes with an id on the left-hand side, or with no id.&lt;br /&gt;
| {{userbox|id=id}}&lt;br /&gt;
{{clear}}&lt;br /&gt;
{{userbox}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tl|userbox-2}}&lt;br /&gt;
| Makes userboxes with an id on both the left- and right-hand sides.&lt;br /&gt;
| {{userbox-2}}&lt;br /&gt;
|-&lt;br /&gt;
| {{tl|userbox-r}}&lt;br /&gt;
| Makes userboxes with an id on the right-hand side.&lt;br /&gt;
| {{userbox-r}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use any of these templates from a wiki page, please see the individual template pages for documentation. To generate userboxes directly from Lua, read on.&lt;br /&gt;
&lt;br /&gt;
== Generating userboxes from Lua ==&lt;br /&gt;
&lt;br /&gt;
To generate a userbox directly from Lua, first load the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local userbox = require('Module:Userbox')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then run any of the three templates with the code:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
userbox.main(functionName, args)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For {{tl|userbox}} use the function name &amp;quot;&amp;lt;code&amp;gt;_userbox&amp;lt;/code&amp;gt;&amp;quot;; for {{tl|userbox-2}} use the function name &amp;quot;&amp;lt;code&amp;gt;_userbox-2&amp;lt;/code&amp;gt;&amp;quot;; and for {{tl|userbox-r}} use the function name &amp;quot;&amp;lt;code&amp;gt;_userbox-r&amp;lt;/code&amp;gt;&amp;quot;. The &amp;lt;code&amp;gt;args&amp;lt;/code&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
== Tracking categories ==&lt;br /&gt;
* {{clc|Userboxes with insufficient color contrast}}&lt;br /&gt;
* {{clc|Pages with templates in the wrong namespace}}&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>