| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Indian Journal of Plastic Surgery: Templates for Writing ijps.org | Lombard Animal Hospital - Portland, Oregon | Spotlight | Polaroid v1.0... lombardanimalhospital.com | Website Template soap-notes.net | AllWebCo Website Template hawaiifacs.org |
[edit] [] This documentation is transcluded from Template:Dmbox/doc. (edit | history) This template has a sandbox (edit) and testcases (edit) for editors to experiment.
This is the {{dmbox}} or disambiguation footer message box meta-template. It is used to build disambiguation and set index article boxes, such as {{disambig}} and {{shipindex}}. This template works similarly to {{ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambig style and only has two "type" settings.
UsageSimple usage example: {{dmbox | text = Some text.}}
{{dmbox | type = setindex | text = Some text.}}
Complex example: {{dmbox | type = setindex | image = {{nowrap| [[Image:Schooner.svg|30px]] [[Image:List gray.svg|30px]] }} | textstyle = color: red; font-weight: bold; font-style: normal; | text = The message body text. }}
Some other parameter combinations:
ParametersList of all parameters: {{dmbox | type = disambig / setindex | image = none / [[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | style = CSS values | textstyle = CSS values | text = The message body text. | nocat = {{{nocat|}}} / true }} type
nocat
image
imageright
style
textstyle
text
Technical detailsThis 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 " If you need to use special characters in the text parameter then you need to escape them like this: {{dmbox | text = <div> Equal sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces <nowiki>|}}</nowiki>. </div> }}
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 parser functions and special characters in parameters. For more technical details see the talk page. Since this template works almost exactly like {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} and {{ombox}} their talk pages and related pages might also contain more details. See alsoThere are several meta-templates in the mbox family:
Closely related meta-templates:
Other pages:
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| ↑ top of page ↑ | about thumbshots |