<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ADmbox%2Fdoc</id>
	<title>Template:Dmbox/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3ADmbox%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Dmbox/doc&amp;action=history"/>
	<updated>2026-04-10T10:26:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Dmbox/doc&amp;diff=13422&amp;oldid=prev</id>
		<title>Caleb Cooper: Text replacement - &quot;CSS&quot; to &quot;CSS&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Dmbox/doc&amp;diff=13422&amp;oldid=prev"/>
		<updated>2020-10-21T16:28:38Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php?title=Cascading_Style_Sheets&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Cascading Style Sheets (page does not exist)&quot;&gt;CSS&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;https://en.wikipedia.org/wiki/Cascading_Style_Sheets&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Cascading Style Sheets&quot;&gt;CSS&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-risk}}&lt;br /&gt;
{{used in system}}&lt;br /&gt;
{{Commons Import}}&lt;br /&gt;
{{Lua|Module:Message box}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Dmbox/styles.css}}&lt;br /&gt;
{{Mbox templates (small)}}&lt;br /&gt;
This is the {{tl|Dmbox}} ([&amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039;]isambiguation footer [&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.&lt;br /&gt;
&lt;br /&gt;
It is used to build [[Wikipedia:WP:disambiguation|disambiguation]] and [[Wikipedia:set index article|set index article]] message boxes, such as {{tl|Disambiguation}} and {{tl|Shipindex}}. &lt;br /&gt;
&lt;br /&gt;
This template works similarly to {{tl|Ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambiguation style and only has two &amp;quot;type&amp;quot; settings.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Simple usage example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{dmbox | text = Some text.}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{dmbox | text = Some text.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{dmbox | type = setindex | text = Some text.}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{dmbox | type = setindex | text = Some text.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Complex example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{dmbox&lt;br /&gt;
| type      = setindex&lt;br /&gt;
| image     = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:DAB list gray.svg|30px]] }}&lt;br /&gt;
| textstyle=color: red; font-weight: bold; font-style: normal;&lt;br /&gt;
| text      = The message body text.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{dmbox&lt;br /&gt;
| type      = setindex&lt;br /&gt;
| image     = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:DAB list gray.svg|30px]] }}&lt;br /&gt;
| textstyle=color: red; font-weight: bold; font-style: normal;&lt;br /&gt;
| text      = The message body text.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some other parameter combinations:&lt;br /&gt;
&lt;br /&gt;
{{dmbox&lt;br /&gt;
| text  = No type and no image given (&amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
}}&lt;br /&gt;
{{dmbox&lt;br /&gt;
| image = none&lt;br /&gt;
| text  = No type and &amp;#039;&amp;#039;&amp;#039;image=none&amp;#039;&amp;#039;&amp;#039; – No image is used and the &amp;#039;&amp;#039;&amp;#039;text&amp;#039;&amp;#039;&amp;#039; uses the whole message box area.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{dmbox&lt;br /&gt;
| type = setindex&lt;br /&gt;
| imageright = [[Image:Schooner.svg|33px]] &lt;br /&gt;
| text  = type = setindex &amp;lt;br&amp;gt; imageright = &amp;lt;nowiki&amp;gt;[[Image:Schooner.svg|33px]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{dmbox&lt;br /&gt;
| type = setindex&lt;br /&gt;
| imageright = [[Image:Schooner.svg|33px]]&lt;br /&gt;
| text  = &lt;br /&gt;
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
List of all parameters:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{dmbox&lt;br /&gt;
| type  = disambig / setindex&lt;br /&gt;
| image = none / [[Image:Some image.svg|40px]]&lt;br /&gt;
| imageright = [[Image:Some image.svg|40px]]&lt;br /&gt;
| style=CSS values&lt;br /&gt;
| textstyle=CSS values&lt;br /&gt;
| text  = The message body text. &lt;br /&gt;
| nocat = {{{nocat|}}} / true&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Para|type}}&lt;br /&gt;
:If no {{Para|type}} parameter is given the template defaults to type {{code|disambig}}.&lt;br /&gt;
:{{code|disambig}} = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id &amp;quot;disambigbox&amp;quot;. The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].&lt;br /&gt;
&lt;br /&gt;
:{{code|setindex}} = Does &amp;#039;&amp;#039;not&amp;#039;&amp;#039; trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id &amp;quot;setindexbox&amp;quot;.) And adds [[:Category:All set index articles]].&lt;br /&gt;
&lt;br /&gt;
{{Para|nocat}}&lt;br /&gt;
:{{code|true}} = [[Wikipedia:Category suppression|Stops this template from categorizing]]. Useful for tests and demonstrations. Dmbox templates should forward{{when defined as}} {{para|nocat}}, so they too have the option to suppress categories. Thus, it is recommended that Dmbox templates always add something similar to this:&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;nocat = {{{nocat|}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Para|image}}&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;lt;span style=&amp;quot;color:gray&amp;quot;&amp;gt;[No parameter]&amp;lt;/span&amp;gt;&amp;#039;&amp;#039; = If no {{Para|image}} parameter is given, the template uses the default {{para|disambig}} or {{para|setindex}} image, depending on the {{Para|type}} parameter.&lt;br /&gt;
:&amp;#039;&amp;#039;An image&amp;#039;&amp;#039; = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;image = [[Image:Schooner.svg|30px]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt; = Means that no image is used.&lt;br /&gt;
&lt;br /&gt;
{{Para|imageright}}&lt;br /&gt;
:&amp;#039;&amp;#039;&amp;#039;No parameter&amp;#039;&amp;#039;&amp;#039; = If no {{Para|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; = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;imageright = [[Image:Nuvola apps bookcase.png|40px]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&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.&lt;br /&gt;
&lt;br /&gt;
{{Para|style}}&lt;br /&gt;
:Optional [[Wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks &amp;lt;code&amp;gt;&amp;quot; &amp;quot;&amp;lt;/code&amp;gt; but with the ending semicolons &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
::&amp;lt;code&amp;gt;style=margin-bottom: 0.2em;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Para|textstyle}}&lt;br /&gt;
:Optional [[Wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:&lt;br /&gt;
::&amp;lt;code&amp;gt;textstyle=text-align: center;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Para|text}}&lt;br /&gt;
:The message body text. This message box has &amp;#039;&amp;#039;italic&amp;#039;&amp;#039; text as default, thus no need to manually set that.&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
This template currently uses hard coded styles and class names. Later it will only use CSS classes making it easier to skin. (In the meantime it can be skinned by using the &amp;quot;&amp;lt;code&amp;gt;!important&amp;lt;/code&amp;gt;&amp;quot; keyword.)&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;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{dmbox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&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 &amp;amp;lt;nowiki&amp;gt;}}&amp;amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
And now a pipe and end braces &amp;amp;lt;nowiki&amp;gt;|}}&amp;amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{dmbox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&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 &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;. &lt;br /&gt;
And now a pipe and end braces &amp;lt;nowiki&amp;gt;|}}&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&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 we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters. &lt;br /&gt;
&lt;br /&gt;
For more technical details see the [[Wikipedia:Template talk:Dmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.&lt;br /&gt;
For details see wikipedia: [[wikipedia:Template:Dmbox/doc]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Disambiguation message boxes| ]]&lt;br /&gt;
[[Category:Set index article templates| ]]&lt;br /&gt;
[[Category:Mbox and messagebox templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>