Difference between revisions of "Template:DYK mbox"

From blackwiki
Jump to navigation Jump to search
imported>John Cline
(ce code)
imported>John Cline
(switch order)
Line 2: Line 2:
 
  | user
 
  | user
 
  | #default=<includeonly>{{#if:{{{olb|}}}|<br />|}}{{#ifeq:{{{small|}}}||{{#ifeq:{{NAMESPACE}}|Template|<table class="{{#if:{{{table class|}}}|{{{table class}}}|plainlinks ombox dykbox-notice" style="{{#if:{{{table style|}}}|{{{table style}}}|}}">}}
 
  | #default=<includeonly>{{#if:{{{olb|}}}|<br />|}}{{#ifeq:{{{small|}}}||{{#ifeq:{{NAMESPACE}}|Template|<table class="{{#if:{{{table class|}}}|{{{table class}}}|plainlinks ombox dykbox-notice" style="{{#if:{{{table style|}}}|{{{table style}}}|}}">}}
{{#if:{{{th|}}}|{{{th}}}|}}{{#if:{{{tr|}}}|{{{tr}}}|<tr>}}{{#if:{{{td|}}}|{{{td}}}|<td class="mbox-image">}}{{#ifeq:{{{xfile|}}}||{{#if:{{{file|}}}|{{{file}}}|[[File:Updated DYK query.svg|40x40px|link=http://en.wikipedia.org/wiki/Wikipedia:DYK|alt=DYK question mark icon]]|}}}}</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>{{{cats|}}}{{#if:{{{clb|}}}|<br />|}}
+
{{#if:{{{th|}}}|{{{th}}}|}}{{#if:{{{tr|}}}|{{{tr}}}|<tr>}}{{#if:{{{td|}}}|{{{td}}}|<td class="mbox-image">}}{{#ifeq:{{{rsf|}}}|||{{#ifeq:{{{rsf|}}}|y|[[File:Updated DYK query.svg|40x40px|link=http://en.wikipedia.org/wiki/Wikipedia:DYK|alt=DYK question mark icon]]|{{{rsf}}}</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>{{{cats|}}}{{#if:{{{clb|}}}|<br />|}}
 
  |{{#if:{{{solb|}}}|<br />|}}<table class="plainlinks ombox mbox-small dykbox-notice">
 
  |{{#if:{{{solb|}}}|<br />|}}<table class="plainlinks ombox mbox-small dykbox-notice">
 
<tr><td class="mbox-image">{{#ifeq:{{{sxfile|}}}||{{#if:{{{sfile|}}}|{{{sfile}}}|[[File:Updated DYK query.svg|29x29px|link=http://en.wikipedia.org/wiki/Wikipedia:DYK|alt=DYK question mark icon]]|}}}}</td>
 
<tr><td class="mbox-image">{{#ifeq:{{{sxfile|}}}||{{#if:{{{sfile|}}}|{{{sfile}}}|[[File:Updated DYK query.svg|29x29px|link=http://en.wikipedia.org/wiki/Wikipedia:DYK|alt=DYK question mark icon]]|}}}}</td>

Revision as of 23:11, 12 February 2013

Template documentation[view] [edit] [history] [purge]
Shortcut:

{{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.

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:


{{safesubst:#switch:{{{1}}}

| user
| #default={{#ifeq:||