This is a documentation subpage for User:MIDI/Draft. It may contain usage information, categories and other content that is not part of the original user template page. |
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:
It accepts three named parameters:
*((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.
#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)