• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:DYK mbox

  • Language
  • Watch
  • View source
DYK review icon
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{DYKM}}

{{DYK mbox}} is a messaging utility template for posting messages related to Did you knowDYK comment symbol operations. It also supports other templates, internally—to facilitate interactive ease of use, on special pages, and editing scripts, used for the administration of Did you knowDYK comment symbol.

Contents

  • 1 Template {{DYK mbox}}
    • 1.1 Usage
      • 1.1.1 Examples
      • 1.1.2 Full code
    • 1.2 See also

Template {{DYK mbox}}

This template was developed for the specialized needs of Did you knowDYK comment symbol.

Usage

Either the basic syntax, {{DYK mbox}} or the shortcut, {{DYKM}} will produce:


DYK review icon


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:


DYK review iconInserts your custom message.


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:


 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 |1=. Therefor the following code: {{DYKM|small=y|1=This is the small box text}} produces the following:


DYK question mark iconThis is the small box 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.

{{DYKM|text="Your top-box message"}}
{{DYKM|text="Your bottom-box message"}}

To produce:



DYK review icon"Your top-box message"
DYK review icon"Your bottom-box message"

Full code

Parameters
{{DYKM
 | small = Changes from the larger box to a smaller one
 | file = Allows the left side image to be changed
 | text = (or the |1#switch) Allows a custom text message
 | file2 = Allows a right side image
 | sfile2 = Adds a right side image for the small-box
}}

See also

  • {{DYK prose}}
  • {{DYK mbox}}
  • {{DYK/msg}}
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.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:DYK_mbox&oldid=6130116"
Last edited on 8 May 2022, at 22:53

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 8 May 2022, at 22:53.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop