<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/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://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AUserbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Userbox/doc&amp;action=history"/>
	<updated>2026-05-08T04:38:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Userbox/doc&amp;diff=147535&amp;oldid=prev</id>
		<title>imported&gt;Andrybak: /* Tracking categories */ a tracking category has been renamed per Wikipedia:Categories_for_discussion/Log/2021_January_19#Category:Pages_with_misplaced_templates</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Userbox/doc&amp;diff=147535&amp;oldid=prev"/>
		<updated>2021-01-31T02:29:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Tracking categories: &lt;/span&gt; a tracking category has been renamed per &lt;a href=&quot;https://en.wikipedia.org/wiki/Categories_for_discussion/Log/2021_January_19#Category:Pages_with_misplaced_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Categories for discussion/Log/2021 January 19&quot;&gt;Wikipedia:Categories_for_discussion/Log/2021_January_19#Category:Pages_with_misplaced_templates&lt;/a&gt;&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(&amp;#039;Module:Userbox&amp;#039;)&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>imported&gt;Andrybak</name></author>
	</entry>
</feed>