Template:DYK mbox/doc

From blackwiki
< Template:DYK mbox
Revision as of 17:15, 11 February 2013 by imported>John Cline ({{subst:DYKT|doc}} into template)
Jump to navigation Jump to search

Template {{DYK mbox}}

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

Usage

Produces:

See also


Shortcut:
This template uses the following internal syntax

<table class="{{#if:{{{table class|}}}|{{{table class}}}|plainlinks ombox dykbox-notice}}" style="{{#if:{{{table style|}}}|{{{table style}}}|}}">{{#if:{{{table header|}}}|{{{table header}}}|}}{{#if:{{{table row|}}}|{{{table row}}}|<tr>}}{{#if:{{{table data|}}}|{{{table data}}}|<td class="mbox-image">{{#if:{{{file|}}}|[[File:{{{file}}}|{{#if:{{{file size|}}}|{{{file size}}}x{{{file size}}}px|33x33px}}|{{#if:{{{file link|}}}|link={{{file link}}}|link=}}|{{#if:{{{alter|}}}|alt={{{alter}}}|alt=}}]]|[[File:Updated DYK query.svg|33x33px|link=|alt=]]}}</td><td class="mbox-text" style="{{#if:{{{td style|}}}|{{{td style}}}|}}">{{{text}}}</td>}}{{#if:{{{file2|}}}|<td><span style="float:right">{{{file2}}}</span></td>|}}</tr></table>

The internal template code for the default switch, {{DYK mbox}}, produces the following output:

<table class="plainlinks ombox dykbox-notice" style=""><tr><td class="mbox-image">[[File:Updated DYK query.svg|33x33px|link=|alt=]]</td><td class="mbox-text" style="">{{{text}}}</td></tr></table>

which produces:

DYK mbox is a messaging utility template for posting messages to editors regarding DYK nominations. It also supports other templates, internally, to facilitate interactive ease of use on special pages and editing scripts used for administering the DYK WikiProject.

Usage

Several parameters are incorporated that modify the template's output for specialized use. Examples are shown below. To create and use the basic message box, for DYK messaging, paste {{DYK mbox|text="Your message"}} where you want the message box to appear, replace "Your message" with the message you want to post, and save the edit.

Examples

Add your custom message.

{{DYK mbox|text="Your message"}} produces :

See also