<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.anneartist.uk/index.php?action=history&amp;feed=atom&amp;title=Template%3ABox%2Fdoc</id>
	<title>Template:Box/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.anneartist.uk/index.php?action=history&amp;feed=atom&amp;title=Template%3ABox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.anneartist.uk/index.php?title=Template:Box/doc&amp;action=history"/>
	<updated>2026-04-17T17:03:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.anneartist.uk/index.php?title=Template:Box/doc&amp;diff=30&amp;oldid=prev</id>
		<title>Mollie: 1 revision imported: All the templates from Cuntel Wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.anneartist.uk/index.php?title=Template:Box/doc&amp;diff=30&amp;oldid=prev"/>
		<updated>2019-01-23T04:55:20Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: All the templates from Cuntel Wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{Doc}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
This is a generic template, nominally designed for use by other templates.  You &amp;#039;&amp;#039;can&amp;#039;&amp;#039; use it directly, but you might be better off using one of its derived templates.&lt;br /&gt;
&lt;br /&gt;
Principal derived templates are [[Template:SideBox]], [[Template:FullBox]] and [[Template:TextBox]].  For more details, see the documentation for those individual templates.&lt;br /&gt;
&lt;br /&gt;
==What it does==&lt;br /&gt;
This template creates a box.  The size, position and colour of the box is configurable through the supplied arguments.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{{Box&lt;br /&gt;
 |bg=&amp;lt;background colour (HTML style)&amp;gt;&lt;br /&gt;
 |fg=&amp;lt;foreground colour (HTML style)&amp;gt;&lt;br /&gt;
 |minw=&amp;lt;minimum width (ems)&amp;gt;&lt;br /&gt;
 |maxw=&amp;lt;maximum width (ems)&amp;gt;&lt;br /&gt;
 |pad=&amp;lt;padding (ems horizontally, exs vertically)&amp;gt;&lt;br /&gt;
 |br=&amp;lt;border colour (HTML style)&amp;gt;&lt;br /&gt;
 |brl=&amp;lt;wide left border colour (HTML style)&amp;gt;&lt;br /&gt;
 |mgn=&amp;lt;margin (ems horizontally, exs vertically)&amp;gt;&lt;br /&gt;
 |bmgn=&amp;lt;bottom margin (exs)&amp;gt;&lt;br /&gt;
 |flt=&amp;lt;float direction (&amp;quot;left&amp;quot; or &amp;quot;right&amp;quot;)&amp;gt;&lt;br /&gt;
 |tag=&amp;lt;tag type (&amp;quot;div&amp;quot;, the default, or &amp;quot;span&amp;quot;)&amp;gt;&lt;br /&gt;
 |text=&amp;lt;text&amp;gt;}}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;All&amp;#039;&amp;#039;&amp;#039; of the arguments are optional, including &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;bg&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;fg&amp;lt;/code&amp;gt;===&lt;br /&gt;
These specify a background and foreground colour, respectively, in [[Help:HTML colour|HTML style]], eg &amp;#039;&amp;#039;#RGB&amp;#039;&amp;#039; or &amp;#039;&amp;#039;#RRGGBB&amp;#039;&amp;#039;.  If either or both is missing, then the box will inherit the corresponding colour(s) from the page.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;minw&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;maxw&amp;lt;/code&amp;gt;===&lt;br /&gt;
These specify a minimum and maximum width, respectively, in &amp;#039;&amp;#039;em&amp;#039;&amp;#039;s.  They are normally used in conjunction with &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; to limit the size of the box, which would otherwise default to full width (block box) or to the size of the enclosed elements (inline box).&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;pad&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies padding (space between the contents of the box and its border).  The same figure is used for horizontal and vertical padding, except that horizontal padding is specified in &amp;#039;&amp;#039;em&amp;#039;&amp;#039;s and vertical in &amp;#039;&amp;#039;ex&amp;#039;&amp;#039;s.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;br&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies a border colour, [[Help:HTML colour|HTML style]], eg &amp;#039;&amp;#039;#RGB&amp;#039;&amp;#039; or &amp;#039;&amp;#039;#RRGGBB&amp;#039;&amp;#039;.  The border will be solid, 1 pixel wide.  If this is missing, then the box will have no border.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;brl&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies a wide left border colour, [[Help:HTML colour|HTML style]], eg &amp;#039;&amp;#039;#RGB&amp;#039;&amp;#039; or &amp;#039;&amp;#039;#RRGGBB&amp;#039;&amp;#039;.  The border will be solid, 0.5em wide.  If this is missing, then the box will have no wide left border, and the left border will be inherited from that specified by &amp;lt;code&amp;gt;br&amp;lt;/code&amp;gt; (if any).&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;mgn&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies margin (space between the box border and surrounding elements).  The same figure is used for horizontal and vertical margin, except that horizontal margin is specified in &amp;#039;&amp;#039;em&amp;#039;&amp;#039;s and vertical in &amp;#039;&amp;#039;ex&amp;#039;&amp;#039;s.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;bmgn&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies bottom margin in &amp;#039;&amp;#039;ex&amp;#039;&amp;#039;s.  It would not normally be used in conjunction with &amp;lt;code&amp;gt;mgn&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;flt&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies the float direction, if any.  If present, it should be either &amp;#039;&amp;#039;left&amp;#039;&amp;#039; or &amp;#039;&amp;#039;right&amp;#039;&amp;#039; to float the box.  If this is missing, then the box will not float.&lt;br /&gt;
&lt;br /&gt;
Note that in the absence of &amp;lt;code&amp;gt;minw&amp;lt;/code&amp;gt; and/or &amp;lt;code&amp;gt;maxw&amp;lt;/code&amp;gt;, the box may occupy 100% of the available width.  In this case, it will not float as there is nowhere left for it to float to.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;tag&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies the type of box.  If present, it should be either &amp;#039;&amp;#039;div&amp;#039;&amp;#039; to create a block box, or &amp;#039;&amp;#039;span&amp;#039;&amp;#039; to create an inline box.  If this is missing, then the default &amp;#039;&amp;#039;div&amp;#039;&amp;#039; will be used.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt;===&lt;br /&gt;
This specifies the content of the box, which may itself be plain text, wiki markup, HTML markup or other templates.&lt;br /&gt;
&lt;br /&gt;
If this is missing, then the entire box is suppressed.  This is useful for derived templates that rely on conditional code.&lt;br /&gt;
&lt;br /&gt;
==Derived templates==&lt;br /&gt;
As stated in the lead, this is a generic template, nominally designed for use by other templates.  Such derived templates provide sensible defaults for many arguments and greatly simplify the majority of use cases.&lt;br /&gt;
&lt;br /&gt;
Principal derived templates are [[Template:SideBox]], [[Template:FullBox]] and [[Template:TextBox]].  For more details, see the documentation for those individual templates.&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Documentation templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mollie</name></author>
	</entry>
</feed>