Template:DYK mbox
| The above documentation is transcluded from Special:ExpandTemplates/doc. (edit | history) Please add categories and interwikis to the /doc subpage. Subpages of this page. A print version of this template exists at /Print. If you make a change to this template, please update the print version as well.
Template
|
| {{{text}}} |
You can either use {{DYKM|text=Inserts your custom message.}}, or default through the unnamed parameter switch, {{DYKM|Inserts your custom message.}} to produce the following:
| Inserts your custom message. |
You can use |xfile= to eliminate the image; the text floats to the left margin, and the box only grows as large as the included text; {{DYKM|xfile=true}} is shown below:
| {{{text}}} |
Or you could use a non printable character in place of the image {{DYKM|file= |text}} which maintains the image's margin as if it were in place and the size of the box is maintained as shown below:
| [[File: |33x33px|link=|alt=]] | {{{text}}} |
The |small= parameter switches from the 80% width, center aligned, message box to a smaller box that aligns to the right side of the line it is added to. It uses similar parameters as the main box except they begin with a small s, for example the text parameter for the small box is |stext=. Therefor the following code: {{DYKM|small=y|stext=This is the small box text}} produces the following:
| {{{text}}} |
Several other parameters are incorporated that modify the template's output for specialized use (examples are shown below)).
Examples
Custom messaging examples are included as expandable content.
| Expand examples → → → | ||||
|---|---|---|---|---|
| You can stack the template to produce multiple rows.
To produce:
Full code
|
See also
| The above documentation is transcluded from Template:DYK mbox/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |