<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FUserbox%2Fdoc</id>
	<title>Template:MC/Userbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FUserbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Userbox/doc&amp;action=history"/>
	<updated>2026-04-10T19:12:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:MC/Userbox/doc&amp;diff=47009&amp;oldid=prev</id>
		<title>imported&gt;Simanelix: /* Usage */Remove whitespace</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Userbox/doc&amp;diff=47009&amp;oldid=prev"/>
		<updated>2025-11-02T17:47:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage: &lt;/span&gt;Remove whitespace&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation header|clear}}&lt;br /&gt;
&lt;br /&gt;
This template can be used to quickly create a [[WP:UBX|userbox]] for display on a user&amp;#039;s [[WP:UP|user page]] without having to know HTML or Wikitable syntax.&lt;br /&gt;
&lt;br /&gt;
For a list of userboxes, see [[Minecraft Wiki:Userboxes]].&lt;br /&gt;
&lt;br /&gt;
== Params ==&lt;br /&gt;
&amp;quot;id&amp;quot; refers to the first cell of the userbox. &amp;quot;info&amp;quot; refers to the second cell of the userbox. The &amp;quot;id&amp;quot; is usually a icon or name, and the &amp;quot;info&amp;quot; is usually a short statement describing what the userbox is or means. The resulting userbox is a table.&amp;lt;!-- this is probably described elsewhere, but perhaps it is helpful here. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Param !! Description&lt;br /&gt;
|-&lt;br /&gt;
| {{p|bodyclass}}     || Adds an HTML class attribute to the userbox (which is an HTML table; the class is added to the&amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; element), to allow for styling, emission of microformats, etc.&lt;br /&gt;
|-&lt;br /&gt;
| {{p|float}}         || what type of float to use. Can be {{cd|left|right|none}} (default = left).&lt;br /&gt;
|-&lt;br /&gt;
| {{p|border-c}}      || border color (default = {{p|id-c}})&lt;br /&gt;
|-&lt;br /&gt;
| {{p|border-s}}      || border width in pixels (default = &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id}}            || id image and/or text&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-a}}          || id horizontal alignment. Can be {{cd|left|center|right|justify}} (default = center).&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-c}}          || id background color (default = #d0d0d0)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-fc}}         || id font color (default = black)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-s}}          || id text size in &amp;lt;code&amp;gt;px&amp;lt;/code&amp;gt; (default = &amp;lt;code&amp;gt;14&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-p}}          || id cell padding (default = &amp;lt;code&amp;gt;0 1px 0 0&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-lh}}         || id line height (default = &amp;lt;code&amp;gt;1.25em&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-op}}         || id other CSS parameters&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-w}}          || id box width in pixels (default = &amp;lt;code&amp;gt;45&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|id-h}}          || id box height in pixels (default = &amp;lt;code&amp;gt;45&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-class}}    || Adds an HTML class attribute to the &amp;quot;info&amp;quot; HTML table-row, to allow for styling, emission of microformats, etc.&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info}}          || info text and/or image&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-a}}        || info horizontal alignment left/center/right/justify (default = left)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-c}}        || info background color (default = &amp;lt;code&amp;gt;#e0e0e0&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-fc}}       || info font color (default = &amp;lt;code&amp;gt;black&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-s}}        || info text size in points (default = &amp;lt;code&amp;gt;8&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-p}}        || info padding (default = &amp;lt;code&amp;gt;0 4px 0 4px&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-lh}}       || info line height (default = &amp;lt;code&amp;gt;1.25em&amp;lt;/code&amp;gt;)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|info-op}}       || info other CSS parameters&lt;br /&gt;
|-&lt;br /&gt;
| {{p|nocat}}         || if specified, this will prevent the user box from being added to [[:Category:Userboxes]]; otherwise, it will be added;&lt;br /&gt;
|-&lt;br /&gt;
| {{p|usercategory}}  || user category (optional)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|usercategory2}} || 2nd user category (optional)&lt;br /&gt;
|-&lt;br /&gt;
| {{p|usercategory3}} || 3rd user category (optional)&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* All parameters are optional&lt;br /&gt;
* Images should normally be scaled to &amp;lt;code&amp;gt;x45px&amp;lt;/code&amp;gt; or less. See [[mw:Help:Images]].&lt;br /&gt;
&lt;br /&gt;
Most userboxes use only a handful of the parameters. The following subset can be used to quickly convert an HTML userbox into the format used here:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{userbox&lt;br /&gt;
| border-c =&lt;br /&gt;
| info-c   =&lt;br /&gt;
| id-c     =&lt;br /&gt;
| id-fc    =&lt;br /&gt;
| id-s     =&lt;br /&gt;
| id       =&lt;br /&gt;
| info-fc  =&lt;br /&gt;
| info-lh  =&lt;br /&gt;
| info-s   =&lt;br /&gt;
| info     =&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{| style=&amp;quot;background-color: transparent;&amp;quot;&lt;br /&gt;
!style=&amp;quot;width: 300px;&amp;quot;| Code&lt;br /&gt;
!Result&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{userbox}}&amp;lt;/syntaxhighlight&amp;gt; || {{userbox}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{userbox&lt;br /&gt;
| id            = foo&lt;br /&gt;
| id-s          = 20&lt;br /&gt;
| id-c          = #ffffee&lt;br /&gt;
| info          = &amp;#039;&amp;#039;foo bar&amp;#039;&amp;#039;&lt;br /&gt;
| info-c        = #ffeeff&lt;br /&gt;
| info-s        = 12&lt;br /&gt;
| border-c      = #aaffaa&lt;br /&gt;
| border-s      = 2&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt; || {{userbox|id=foo|id-s=20|id-c=#ffffee|info=&amp;#039;&amp;#039;foo bar&amp;#039;&amp;#039;|info-c=#ffeeff|info-s=12|border-c=#aaffaa|border-s=2}}&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot;| Below example shows the default appearance of a userbox, which is (much) higher than the 45px. Compare the height of the one below with the above userbox.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{userbox&lt;br /&gt;
| id            = foo logo&lt;br /&gt;
| id-c          = #ffffee&lt;br /&gt;
| info          = &amp;#039;&amp;#039;We are trying to see&lt;br /&gt;
default distance in between text&lt;br /&gt;
lines, and, see the distance in&lt;br /&gt;
between cell content and its border&lt;br /&gt;
and also see total height.&amp;#039;&amp;#039;&lt;br /&gt;
| info-c        = #ffeeff&lt;br /&gt;
| border-c      = #aaffaa&lt;br /&gt;
| border-s      = 2&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt; || {{userbox|id=foo logo|id-c=#ffffee|info=&amp;#039;&amp;#039;We are trying to see default distance in between text lines, and, see the distance in between cell content and its border and also see total height.&amp;#039;&amp;#039;|info-c=#ffeeff|border-c=#aaffaa|border-s=2}}&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot;| Below example shows how we can change that userbox and further specify parameters to bring down the overall height of the userbox to the recommended height of 45px, even with four text lines. Cell padding parameter &amp;quot;&amp;#039;&amp;#039;info-p&amp;#039;&amp;#039;&amp;quot; can also be set at &amp;quot;&amp;#039;&amp;#039;1pt 1pt 1pt 2pt&amp;#039;&amp;#039;&amp;quot;, or &amp;quot;&amp;#039;&amp;#039;1pt 2pt&amp;#039;&amp;#039;&amp;quot; for better appearance, when there are 4 text lines.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{userbox&lt;br /&gt;
| id            = foo logo&lt;br /&gt;
| id-s          = 14&lt;br /&gt;
| id-c          = #ffffee&lt;br /&gt;
| id-lh         = 1.1em&lt;br /&gt;
| info          = &amp;#039;&amp;#039;We have specified values&lt;br /&gt;
to lessen the distance in between&lt;br /&gt;
text lines &amp;amp; padding space in between&lt;br /&gt;
cell content and its border.&amp;#039;&amp;#039;&lt;br /&gt;
| info-c        = #ffeeff&lt;br /&gt;
| info-s        = 8&lt;br /&gt;
| info-p        = 1pt&lt;br /&gt;
| info-lh       = 1.05em&lt;br /&gt;
| border-c      = #aaffaa&lt;br /&gt;
| border-s      = 1&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt; || {{userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffffee|info=&amp;#039;&amp;#039;We have specified values to lessen the distance in between text lines &amp;amp; padding space in between cell content and its border.&amp;#039;&amp;#039;|info-c=#ffeeff|info-s=8|info-p=1pt|info-lh=1.05em|border-c=#aaffaa|border-s=1}}&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot;| Below example is for advanced users, showing how we can specify other [[wikipedia:Cascading Style Sheets|CSS]] properties, for example, &amp;quot;&amp;#039;&amp;#039;font-family&amp;#039;&amp;#039;&amp;quot;, to change the font or &amp;quot;&amp;#039;&amp;#039;text-align&amp;#039;&amp;#039;&amp;quot; to change the alignment from the default parameters. At below, on the right side are two userboxes: top one is displayed without the &amp;quot;&amp;#039;&amp;#039;font-family&amp;#039;&amp;#039;&amp;quot; or &amp;quot;&amp;#039;&amp;#039;text-align&amp;#039;&amp;#039;&amp;quot; parameters; and the bottom userbox is displayed by using the below codes, with the help of the &amp;quot;&amp;#039;&amp;#039;info-op&amp;#039;&amp;#039;&amp;quot; field.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{userbox&lt;br /&gt;
| id            = foo logo&lt;br /&gt;
| id-s          = 14&lt;br /&gt;
| id-c          = #ffe&lt;br /&gt;
| id-lh         = 1.1em&lt;br /&gt;
| info          = foo bar&lt;br /&gt;
| info-c        = #fef&lt;br /&gt;
| info-s        = 14&lt;br /&gt;
| info-op       = font-family:&amp;#039;Courier New&amp;#039;; text-align:center;&lt;br /&gt;
| border-c      = #afa&lt;br /&gt;
| border-s      = 2&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt; || colspan=&amp;quot;2&amp;quot;| {{Userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffe|info=foo bar|info-c=#fef|info-s=14|border-c=#afa|border-s=2}} &amp;lt;br style=&amp;quot;clear:both&amp;quot;&amp;gt; &amp;lt;br /&amp;gt; {{Userbox|id=foo logo|id-s=14|id-lh=1.1em|id-c=#ffe|info=foo bar|info-c=#fef|info-s=14|info-op=font-family:&amp;#039;Courier New&amp;#039;; text-align:center;|border-c=#afa|border-s=2}}&lt;br /&gt;
|}&amp;lt;!-- customize if needed to illustrate parameter use --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Microformats ==&lt;br /&gt;
;bodyclass : This parameter is inserted into the &amp;quot;class&amp;quot; attribute for the userbox as a whole.&lt;br /&gt;
;info-class : This parameter is inserted into the &amp;quot;class&amp;quot; attribute for the info component.&lt;br /&gt;
&lt;br /&gt;
This template supports the addition of [[wikipedia:microformat|microformat]] information. This is done by adding &amp;quot;class&amp;quot; attributes to various data cells, indicating what kind of information is contained within. To flag a userbox as containing [[wikipedia:hCard|hCard]] information about a person, for example, add the following parameter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
| bodyclass     = vcard&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
| info-class    = vcard&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;then&amp;#039;&amp;#039; (for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
| title         = ...the books of &amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;[[Iain Banks]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...and so forth.&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Userboxes|*]]&lt;br /&gt;
[[Category:User templates]]&lt;br /&gt;
&lt;br /&gt;
[[de:Vorlage:Babelbox]]&lt;br /&gt;
[[es:Plantilla:Userbox]]&lt;br /&gt;
[[fr:Modèle:Boîte utilisateur]]&lt;br /&gt;
[[ja:テンプレート:Userbox]]&lt;br /&gt;
[[ko:틀:유저박스]]&lt;br /&gt;
[[lzh:模板:Userbox]]&lt;br /&gt;
[[nl:Sjabloon:Userbox]]&lt;br /&gt;
[[pt:Predefinição:Userbox]]&lt;br /&gt;
[[ru:Шаблон:Userbox]]&lt;br /&gt;
[[th:แม่แบบ:Userbox]]&lt;br /&gt;
[[uk:Шаблон:Юзербокс]]&lt;br /&gt;
[[zh:Template:Userbox]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[de:Vorlage:Babelbox/Dokumentation]]&lt;br /&gt;
[[es:Plantilla:Userbox/doc]]&lt;br /&gt;
[[fr:Modèle:Boîte utilisateur/doc]]&lt;br /&gt;
[[ja:テンプレート:Userbox/doc]]&lt;br /&gt;
[[lzh:模板:Userbox/doc]]&lt;br /&gt;
[[nl:Sjabloon:Userbox/doc]]&lt;br /&gt;
[[pt:Predefinição:Userbox/doc]]&lt;br /&gt;
[[ru:Шаблон:Userbox/док]]&lt;br /&gt;
[[th:แม่แบบ:Userbox/doc]]&lt;br /&gt;
[[uk:Шаблон:Юзербокс/док]]&lt;br /&gt;
[[zh:Template:Userbox/doc]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Simanelix</name></author>
	</entry>
</feed>