Difference between revisions of "Template:Afd"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
<table class="metadata plainlinks ambox
<!-- Please do not remove or change this AfD message until the issue is settled -->
{{#switch:{{{type|}}}
{{<includeonly>subst:</includeonly>#ifeq:{{{1|a}}}|{{{1|b}}}||{{<includeonly>subst:</includeonly>#ifexist:Wikipedia:Articles for deletion/{{<includeonly>subst:</includeonly>PAGENAME}}|{{<includeonly>subst:</includeonly>lessthan}}!-- The nomination page for this article already existed when this tag was added. If this was because the article had been nominated for deletion before, and you wish to renominate it, please replace "page={{<includeonly>subst:</includeonly>PAGENAME}}" with "page={{<includeonly>subst:</includeonly>PAGENAME}} (2nd nomination)" below before proceeding with the nomination.
| speedy    = ambox-speedy
-->}}}}{{AfDM|page={{<includeonly>subst:</includeonly>#ifeq:{{{1|a}}}|{{{1|b}}}|{{{1}}}|{{<includeonly>subst:</includeonly>PAGENAME}}}}|logdate={{<includeonly>subst:</includeonly>#time:Y F j|{{<includeonly>subst:</includeonly>CURRENTTIMESTAMP}} }}|substed=yes{{<includeonly>subst:</includeonly>ns:0}} }}
| delete    = ambox-delete
{{<includeonly>subst:</includeonly>lessthan}}!-- For administrator use only: {{oldafdfull|page={{<includeonly>subst:</includeonly>#ifeq:{{{1|a}}}|{{{1|b}}}|{{{1}}}|{{<includeonly>subst:</includeonly>PAGENAME}}}}|date={{<includeonly>subst:</includeonly>#time:j F Y|{{<includeonly>subst:</includeonly>CURRENTTIMESTAMP}} }}|result='''keep'''}} -->
| content    = ambox-content
<!-- End of AfD message, feel free to edit beyond this point --><noinclude>
| style      = ambox-style
{{template doc}}<!-- Add categories, documentation, and interwiki links to the /doc subpage, not here! -->
| move      = ambox-move
| protection = ambox-protection
| notice    <!-- notice = default -->
| #default  = ambox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <td class="mbox-image"><div style="width: 52px;">
  {{#ifeq:{{{image|}}}|blank
  | &nbsp;
  | {{#if:{{{image|}}}
    | {{{image}}}
    | {{#switch:{{{type|}}}
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
      | delete    = [[Image:Ambox deletion.png|40x40px]]
      | content    = [[Image:Ambox content.png|40x40px]]
      | style      = [[Image:Ambox style.png|40x40px]]
      | move      = [[Image:Ambox move.png|40x40px]]
      | protection = [[Image:Ambox protection.png|40x40px]]
      | notice    <!-- notice = default -->
      | #default  = [[Image:Ambox notice.png|40x40px]]
      }}
    }}
  }}</div></td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
| speedy
| delete
| content
| style
| move
| protection
| notice    =   <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<noinclude>
 
{{pp-template|small=yes}}
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 February 2009

[edit] Template-info.svg Template documentation

Documentation

This template will categorise articles into Category:Articles for deletion. This template is a self-reference and so is part of the Wikipedia project rather than the encyclopedic content.

This template should always be substituted onto pages it appears on, because it requires that the {{PAGENAME}} variable be substituted. (This is so that the link to the AFD discussion does not break when the page is renamed during AFD discussions.) If this template is not substituted, a warning message will be shown instead.

This template results in 3 lines of wikitext that make use of {{AfDM}}.

Usage

For Wikipedia:Proposed deletion use {{Prod}}. WP:PROD takes load off WP:AFD and should always be used instead if reasonable.

{{subst:afd}}

This template will place a notice that the page has been nominated for deletion. It should be placed at the top of the page and substituted.

{{subst:afd|Weather in London}}
{{subst:afd|Weather in London (2nd nomination)}}

The parameter will link to a specific AFD discussion sub-page. Use this for linking multiple articles to a single AFD discussion page (bulk nominations) or for re-nominations of articles that have already been nominated for deletion before. (For the latter purpose, the {{afdx}} template can also be used. )

See also

ar:قالب:حذف bg:Шаблон:Изтриване de:Vorlage:Löschantrag es:Plantilla:CdbM fr:Modèle:Suppression ja:Template:Sakujo nds-nl:Sjabloon:Vort nl:Sjabloon:Weg pl:Szablon:SDU sv:Mall:Sffr vi:Tiêu bản:Bỏ phiếu xoá vls:Patrôon:Weg