Template:AfDM: Difference between revisions
Appearance
wikademia>Ilmari Karonen m don't show the {{error:not substituted}} message on Template:Afdx either; also, adding a gratuitous div around the message should force it to be on its own line |
wikademia>Ilmari Karonen m this is now used via Template:Afdx too, add optional "origtag" parameter to make error message correct; also hopefully fix namespace check |
||
| Line 1: | Line 1: | ||
{{#ifeq:{{{substed|yes}}}|yes|<!-- start {{afd}} subst'ed text -->{{#switch: {{FULLPAGENAME}} | Special:Undelete= | Template:Afd= | Template:Afdx= | <includeonly>{{#if: {{NAMESPACE}} | {{error:wrong namespace}} }}</includeonly> }}<div class="boilerplate metadata plainlinks" id="afd" style="margin: 0 5%; padding: 0 7px 0px 7px; background: #EDF1F1; border: 1px solid #999999; text-align: left; font-size:95%;"> | {{#ifeq:{{{substed|yes}}}|yes|<!-- start {{afd}} subst'ed text -->{{#switch: {{FULLPAGENAME}} | Special:Undelete= | Template:Afd= | Template:Afdx= | #default=<includeonly>{{#if: {{NAMESPACE}} | {{error:wrong namespace}} }}</includeonly> }}<div class="boilerplate metadata plainlinks" id="afd" style="margin: 0 5%; padding: 0 7px 0px 7px; background: #EDF1F1; border: 1px solid #999999; text-align: left; font-size:95%;"> | ||
'''This article is being considered for deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]][[Template:Afd|.]]'''<br /> | '''This article is being considered for deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]][[Template:Afd|.]]'''<br /> | ||
Please share your thoughts on the matter at '''[[Wikipedia:Articles for deletion/{{{page|{{{1|{{PAGENAME}}}}}}}}|this article's entry]]''' on the [[Wikipedia:Articles for deletion|Articles for deletion]] page.<br /> | Please share your thoughts on the matter at '''[[Wikipedia:Articles for deletion/{{{page|{{{1|{{PAGENAME}}}}}}}}|this article's entry]]''' on the [[Wikipedia:Articles for deletion|Articles for deletion]] page.<br /> | ||
| Line 6: | Line 6: | ||
<small>''[[Template:AfD footer|Steps to list an article for deletion]]: {{subst:afd}} • {{#ifeq:{{{page|{{{1|{{PAGENAME}}}}}}}}|{{PAGENAME}}|{{#ifexist:Wikipedia:Articles for deletion/{{PAGENAME}}||[{{fullurl:Wikipedia:Articles for deletion/{{PAGENAME}}|action=edit&preload=Template:Afd2+starter&editintro=Template:Afd3+starter}} Preloaded debate] ''OR''}}}} {{subst:afd2|pg={{PAGENAME}}|cat=|text=}} ~~~~ ([[:category:AfD debates|categories]]) • {{subst:afd3|pg={{{page|{{{1|{{PAGENAME}}}}}}}}}} [{{fullurl:Wikipedia:Articles for deletion/Log/{{{date|{{{4|{{CURRENTYEAR}}}}} {{{5|{{CURRENTMONTHNAMEGEN}}}}} {{{6|{{CURRENTDAY}}}}}}}}|action=edit}} log]''</small> | <small>''[[Template:AfD footer|Steps to list an article for deletion]]: {{subst:afd}} • {{#ifeq:{{{page|{{{1|{{PAGENAME}}}}}}}}|{{PAGENAME}}|{{#ifexist:Wikipedia:Articles for deletion/{{PAGENAME}}||[{{fullurl:Wikipedia:Articles for deletion/{{PAGENAME}}|action=edit&preload=Template:Afd2+starter&editintro=Template:Afd3+starter}} Preloaded debate] ''OR''}}}} {{subst:afd2|pg={{PAGENAME}}|cat=|text=}} ~~~~ ([[:category:AfD debates|categories]]) • {{subst:afd3|pg={{{page|{{{1|{{PAGENAME}}}}}}}}}} [{{fullurl:Wikipedia:Articles for deletion/Log/{{{date|{{{4|{{CURRENTYEAR}}}}} {{{5|{{CURRENTMONTHNAMEGEN}}}}} {{{6|{{CURRENTDAY}}}}}}}}|action=edit}} log]''</small> | ||
</div> | </div> | ||
{{#switch: {{FULLPAGENAME}} | Template:Afd= | Template:Afdx= | <includeonly>{{{category|[[Category:Articles for deletion]]}}}</includeonly> }}<!-- end {{afd}} subst'ed text -->|<!-- start {{afd}} template not subst'ed text --><div>{{error:not substituted|afd}}[[Category:Articles for deletion using wrong syntax]]</div><!-- end {{afd}} not subst'ed text -->}}<noinclude>[[Category:Deletion templates]]</noinclude> | {{#switch: {{FULLPAGENAME}} | Template:Afd= | Template:Afdx= | <includeonly>{{{category|[[Category:Articles for deletion]]}}}</includeonly> }}<!-- end {{afd}} subst'ed text -->|<!-- start {{afd}} template not subst'ed text --><div>{{error:not substituted|{{{origtag|afd}}}}}[[Category:Articles for deletion using wrong syntax]]</div><!-- end {{afd}} not subst'ed text -->}}<noinclude>[[Category:Deletion templates]]</noinclude> | ||