Jump to content

User:MIDI/Draft/doc

From Wikipedia, the free encyclopedia

Usage[edit]

This template provides an easy and standardized way to link to user draft articles.

{{User:MIDI/Draft|article|desc=|icon=|published=}}

It requires one unnamed parameter:

  1. the article to be listed

It accepts three named parameters:

  1. desc: a description of the article (similar to WP:SHORTDESC)
  2. icon: the option to include a small icon (such as for DYK nominations, redirects) with an appropriate automatic wikilink
  3. published: a required field to determine whether or not the article is live in the mainspace.

Example[edit]

*{{User:MIDI/Draft|Grand Union Canal|desc=major canal in the UK|icon=DYK|published=1}}

will display as:

*{{User:MIDI/Draft|Buscot Wharf Canal|desc=minor canal arm off the [[River Thames]]|icon=|published=}}

will display as:

Spaces should not be introduced between parameters as to avoid syntax errors.

Notes[edit]

#ifeq: {{{icon}}} | DYK | [[File:Symbol question.svg|16px|link=Template:Did you know nominations/{{{1}}}]]

If the icon parameter is "DYK", the Did you know icon will show () with a link to the article's archived DYK nomination page

#ifeq: {{{icon}}} | DYKnom | [[File:Symbol question orange.png|16px|link=Template:Did you know nominations/{{{1}}}]]

If the icon parameter is "DYKnom", an orange Did you know icon will show () with a link to the article's active DYK nomination page

#ifeq: {{{icon}}} | RDR | {{No redirect|{{{1}}}|{{icon|redirect}}}}

If the icon parameter is "RDR", a redirect icon will show () with a link to the existing redirect page

#if: {{{published|}}} | <s> [...] #if: {{{published|}}} |</s>

If the published parameter is not blank (i.e. the article has been published), the list item is struck out

[[{{{1}}}]] ({{{desc}}})

The first parameter (unnamed) is the article name, which will be linked followed by the value of the desc (description) parameter

#if: {{{published|}}}| | ('''[[User:MIDI/Drafts/{{{1}}}|DRAFT]]''')

If the published parameter is blank (i.e. the article has not been published), a link to the draft article will display (even as a redlink if none yet exists)