
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AImbox%2Fdoc</id>
	<title>Template:Imbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://zoophilia.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AImbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Imbox/doc&amp;action=history"/>
	<updated>2026-05-11T01:55:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://zoophilia.wiki/index.php?title=Template:Imbox/doc&amp;diff=133664&amp;oldid=prev</id>
		<title>SockyPaws: Create template documentation page</title>
		<link rel="alternate" type="text/html" href="https://zoophilia.wiki/index.php?title=Template:Imbox/doc&amp;diff=133664&amp;oldid=prev"/>
		<updated>2024-11-23T20:26:54Z</updated>

		<summary type="html">&lt;p&gt;Create template documentation page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&amp;lt;!-- Please place category links where indicated at the bottom of this page. Thank you. --&amp;gt;&lt;br /&gt;
{{Lua|Module:Message box}}&lt;br /&gt;
{{Mbox templates (small)}}&lt;br /&gt;
This is the {{Template link general|plaincode=on|Imbox}} (&amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039;mage &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039;essage &amp;#039;&amp;#039;&amp;#039;box&amp;#039;&amp;#039;&amp;#039;) metatemplate that is used to build message box templates for file (image) pages. It offers several different colors, uses default images if no image parameter is given and has some other features as well.&lt;br /&gt;
&lt;br /&gt;
This template works near-identically to {{Template link general|plaincode=on|Ambox}} and uses the same parameters.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
=== Simple ===&lt;br /&gt;
{{Template link general|code=on|Imbox|2=text={{Var|Some text.}}}} &amp;lt;span style=&amp;quot;font-size: 1.75rem; font-weight: 800; vertical-align: text-top;&amp;quot;&amp;gt;⮷&amp;lt;/span&amp;gt;&lt;br /&gt;
{{Imbox|text=Some text.}}&lt;br /&gt;
&lt;br /&gt;
=== Complex ===&lt;br /&gt;
{{Template link general|code=on|Imbox|2=type=style|3=image=&amp;amp;lsqb;&amp;amp;lsqb;File:Emblem-question-yellow.svg&amp;amp;verbar;40px&amp;amp;rsqb;&amp;amp;rsqb;|4=style=width: 400px;|5=textstyle=color: #f00; font-style: italic; font-weight: 700;|6=text=The message body text.}}&lt;br /&gt;
{{Imbox|type=style|image=[[File:Emblem-question-yellow.svg|40px]]|style=width: 400px;|textstyle=color: #f00; font-style: italic; font-weight: 700;|text=The message body text.}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Image message box types ===&lt;br /&gt;
The following examples use different &amp;#039;&amp;#039;&amp;#039;{{Code|type}}&amp;#039;&amp;#039;&amp;#039; parameters but no image parameters, thus they use the default images for each type.&lt;br /&gt;
{{Imbox|type=speedy|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #f00 solid 2px;&amp;quot;&amp;gt;speedy&amp;lt;/span&amp;gt; – the type designed to draw the most attention.}}&lt;br /&gt;
{{Imbox|type=delete|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #f00 solid 2px;&amp;quot;&amp;gt;delete&amp;lt;/span&amp;gt; – very similar to speedy, minus the red background.}}&lt;br /&gt;
{{Imbox|type=content|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #ff8c00 solid 2px;&amp;quot;&amp;gt;content&amp;lt;/span&amp;gt; – for major warnings and problems.}}&lt;br /&gt;
{{Imbox|type=style|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #ffa500 solid 2px;&amp;quot;&amp;gt;style&amp;lt;/span&amp;gt; – for minor warnings and problems.}}&lt;br /&gt;
{{Imbox|type=notice|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #1e90ff solid 2px;&amp;quot;&amp;gt;notice&amp;lt;/span&amp;gt; a versatile type for notices and messages of any kind, both permanent and temporary.}}&lt;br /&gt;
{{Imbox|type=move|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #8a2be2 solid 2px;&amp;quot;&amp;gt;move&amp;lt;/span&amp;gt; – for important but short-lived situations, such as page move and rename proposals.}}&lt;br /&gt;
{{Imbox|type=protection|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #789 solid 2px;&amp;quot;&amp;gt;protection&amp;lt;/span&amp;gt; – ideal for long-term or permanent information about pages.}}&lt;br /&gt;
{{Imbox|type=license|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #2f4f4f solid 2px;&amp;quot;&amp;gt;license&amp;lt;/span&amp;gt; – for internal wiki functions, like licenses on page in File: namespace (e.g. {{Template link general|plaincode=on|GFDL}}.}}&lt;br /&gt;
{{Imbox|type=featured|text=type=&amp;lt;span style=&amp;quot;font-weight: 700; text-decoration: underline #ff4500 solid 2px;&amp;quot;&amp;gt;featured&amp;lt;/span&amp;gt; – for announcements and helpful messages targeted mostly towards readers and less so fellow editors.}}&lt;br /&gt;
&lt;br /&gt;
=== Custom images ===&lt;br /&gt;
The default images shown above are mostly for convenience. In many cases, it is more appropriate to use an image more specifically related to the message being displayed. These examples use the &amp;#039;&amp;#039;&amp;#039;{{Code|image}}&amp;#039;&amp;#039;&amp;#039; parameter to specify an image other than the default.&lt;br /&gt;
{{Imbox|type=style|image=[[File:Zoowiki zetapin logo.png|x48px]]|text=type=style&amp;lt;br /&amp;gt;image=&amp;lt;nowiki&amp;gt;[[File:Zoowiki zetapin logo.png|x48px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Imbox|type=move|image=[[File:Zeta templatelogo.png|x48px]]|text=type=move&amp;lt;br /&amp;gt;image=&amp;lt;nowiki&amp;gt;[[File:Zeta templatelogo.png|x48px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Imbox|type=license|image=[[File:Mlogo.png|48px]]|text=type=license&amp;lt;br /&amp;gt;image=&amp;lt;nowiki&amp;gt;[[File:Mlogo.png|48px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Special ===&lt;br /&gt;
Some other parameter combinations…&lt;br /&gt;
{{Imbox|text=No type and no image given (&amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039;)}}&lt;br /&gt;
{{Imbox|image=none|text=No type and &amp;#039;&amp;#039;&amp;#039;{{Para|image|none}}&amp;#039;&amp;#039;&amp;#039; – No image is used and the &amp;#039;&amp;#039;&amp;#039;{{Para|text}}&amp;#039;&amp;#039;&amp;#039; uses the whole message box area.}}&lt;br /&gt;
{{Imbox|type=license|image=[[File:PD-icon.svg|x36px]]&amp;lt;br /&amp;gt;[[File:Ambox warning yellow.svg|x36px]]|imageright=[[File:Mike.png|x72px]]|text=type=license&amp;lt;br /&amp;gt;image=&amp;lt;nowiki&amp;gt;[[File:PD-icon.svg|x36px]]&amp;amp;lt;br /&amp;gt;[[File:Ambox warning yellow.svg|x36px]]&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;imageright=&amp;lt;nowiki&amp;gt;[[File:Mike.png|x72px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Imbox|type=license|image=[[File:PD-icon.svg|x40px]]|below={{Imbox|type=content|text=&amp;#039;&amp;#039;&amp;#039;This license tag is deprecated!&amp;#039;&amp;#039;&amp;#039;}}|text=type=license&amp;lt;br /&amp;gt;image=&amp;lt;nowiki&amp;gt;[[File:PD-icon.svg|x40px]]&amp;lt;/nowiki&amp;gt;&amp;lt;br /&amp;gt;below=&amp;lt;nowiki&amp;gt;{{Imbox|type=content|text=&amp;#039;&amp;#039;&amp;#039;This license tag is deprecated!&amp;#039;&amp;#039;&amp;#039;}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
A list of all the template parameters:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left: 3em; max-width: 37.5vw; overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Imbox&lt;br /&gt;
 | name       = Name of the template&lt;br /&gt;
 | type       = speedy / delete / content / style / notice / &lt;br /&gt;
                move / protection / license / featured&lt;br /&gt;
 | image      = none / [[File:Some image.svg|40px]]&lt;br /&gt;
 | imageright = [[File:Some image.svg|40px]]&lt;br /&gt;
 | style      = CSS value(s)&lt;br /&gt;
 | textstyle  = CSS value(s)&lt;br /&gt;
 | text       = The message body text.&lt;br /&gt;
 | below      = More text, or another Imbox.&lt;br /&gt;
 | plainlinks = no&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; {{Para|name}} : (optional) The name of the template. This adds a CSS class with the name {{Code|box-{{Var|name}}}} to the HTML box element, for use by bots or scripts.&lt;br /&gt;
; {{Para|type}} : If no {{Code|type}} parameter is given, the template defaults to type &amp;#039;&amp;#039;&amp;#039;{{Code|notice}}&amp;#039;&amp;#039;&amp;#039;. That means it gets a blue border.&lt;br /&gt;
; {{Para|image}} : &amp;#039;&amp;#039;&amp;#039;No parameter&amp;#039;&amp;#039;&amp;#039; ⟹ If no &amp;#039;&amp;#039;&amp;#039;image&amp;#039;&amp;#039;&amp;#039; parameter is given, the template uses a default image. Which default image it uses depends on the {{Code|type}} parameter.&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;An image&amp;#039;&amp;#039;&amp;#039; ⟹ Should be an image within the usual wiki &amp;#039;File:&amp;#039; notation; 40–50px in width is usually about right, depending on the image&amp;#039;s aspect ratio (but the message box can handle images of any size). For example:&lt;br /&gt;
:: {{Code|&amp;lt;nowiki&amp;gt;image=[[File:Gnome-dev-camera.svg|40px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;{{Para|image|none}}&amp;#039;&amp;#039;&amp;#039; ⟹ Which means that an image is used.&lt;br /&gt;
; {{Para|imageright}} : &amp;#039;&amp;#039;&amp;#039;No parameter&amp;#039;&amp;#039;&amp;#039; ⟹ If no {{Code|imageright}} parameter is given, then no image is shown on the right side.&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;An image&amp;#039;&amp;#039;&amp;#039; ⟹ This should be an image within the usual wiki &amp;#039;File:&amp;#039; notation; 40–50px in width is usually about right, depending on the image&amp;#039;s aspect ratio (but the message box can handle images of any size). For example:&lt;br /&gt;
:: {{Code|&amp;lt;nowiki&amp;gt;imageright=[[File:Nuvola apps bookcase.png|40px]]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
: &amp;#039;&amp;#039;&amp;#039;Anything&amp;#039;&amp;#039;&amp;#039; ⟹ Any other object that you want to show on the right side of the message box.&lt;br /&gt;
; {{Para|style}} : Optional [[wikipedia:Cascading Style Sheets|CSS]] property declarations, used by the entire message box table; not enclosed in quotation marks ({{Code|&amp;quot; &amp;quot;}} but each terminated with a semicolon ({{Code|;}}). For example:&lt;br /&gt;
:: {{Code|1=style=margin-bottom: 0.5em;}}&lt;br /&gt;
; {{Para|textstyle}} : Optional [[wikipedia:Cascading Style Sheets|CSS]] property declarations, used only by the &amp;#039;&amp;#039;text&amp;#039;&amp;#039; cell of the message box table. For example:&lt;br /&gt;
:: {{Code|1=textstyle=text-align: center;}}&lt;br /&gt;
; {{Para|text}} : The message body text.&lt;br /&gt;
; {{Para|below}} : A full-width area below the images and text area; it can take text or any kind of object, or even another Imbox.&lt;br /&gt;
:: {{Code|&amp;lt;nowiki&amp;gt;below={{Imbox|type=content|text=This license tag is deprecated.}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
; {{Para|plainlinks}} : (default: {{Code|yes}}) If external link arrows ([[File:External.svg|10px]]) are desired, specify:&lt;br /&gt;
:: {{Para|plainlinks|no}}&lt;br /&gt;
&lt;br /&gt;
== Technical details ==&lt;br /&gt;
The &amp;#039;Image:&amp;#039; namespace was renamed to &amp;#039;File:&amp;#039; on {{#formatdate:2008-12-11|mdy}}, however this template long predates that, which is why it is named &amp;quot;Imbox&amp;quot; as in &amp;quot;Image message box.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you need to use special characters in the text parameter, then you need to escape them like this:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;margin-left: 3em; max-width: 40vw; overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{Imbox&lt;br /&gt;
 | text = &amp;lt;div&amp;gt;Equal sign = and a start and end brace { } work fine as they are.&lt;br /&gt;
But here is a pipe {{!}} and two end braces {{))}}.&lt;br /&gt;
And now a pipe and end braces {{!))}}.&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Imbox|text=&amp;lt;div&amp;gt;Equal sign = and a start and end brace { } work fine as they are. But here is a pipe &amp;amp;verbar; and two end braces &amp;amp;rbrace;&amp;amp;rbrace;. And now a pipe and end braces &amp;amp;verbar;&amp;amp;rbrace;&amp;amp;rbrace;.&amp;lt;/div&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
This template uses the {{Code|imbox}} CSS classes in [[mediawikiwiki:Module:Message box/imbox.css|Module:Message box/imbox.css]] for most of its styling, thus it is fully skinnable.&lt;br /&gt;
&lt;br /&gt;
Internally, this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way meta-templates are coded since wiki markup has several limitations. For instance, it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and special characters in parameters.&lt;br /&gt;
&lt;br /&gt;
The default images for this meta-template are (mostly) in PNG format instead of the newer SVG. The main reason is that some older web browsers have trouble with the transparent SVG images. For those older browsers, these PNG images have been modified so that the color of their default background matches the background color of the template. The default background that the MediaWiki parser renders for SVG images is always pure white, and that creates a white box around the images when displayed in older browsers.&lt;br /&gt;
&lt;br /&gt;
For more technical details, see the [[wikipedia:Template talk:Imbox|talk page]]. Since this template works almost exactly like the other message boxes, their talk pages and related pages might also contain useful information; see the [[#See also|§ See also]] section below.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Mbox templates see also}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&amp;lt;!-- Please place category links below this line. Thank you. --&amp;gt;&lt;br /&gt;
[[Category:File copyright templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:File namespace templates|*]]&lt;br /&gt;
[[Category:Message box templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>SockyPaws</name></author>
	</entry>
</feed>