Difference between revisions of "Template:LatestAfD/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sam Sailor
(Cr)
imported>Swpb
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
{{lua|Module:LatestAfD}}
This template links to the most recent AfD discussion for the specified article, for pages with up to five AfD discussions. Optional display text may be specified. For pages without an AfD or with more than five AfDs, a warning message is displayed.
+
This template links to the ''most recent'' [[WP:AfD|AfD]] discussion for a given article. Optional display text may be specified. For pages without an AfD, a warning message is displayed.
  
 
== Usage ==
 
== Usage ==
<code><nowiki>{{latestAfD|<article>|<display text>}}</nowiki></code>
+
<code><nowiki>{{latestAfD|<article>|<optional display text>}}</nowiki></code>
  
'''Examples''':
+
===Examples===
*No AfDs: <code><nowiki>{{latestAfD|Cheese}}</nowiki></code> → {{latestAfD|Cheese}}
 
*One AfD: <code><nowiki>{{latestAfD|Horseplay (band)}}</nowiki></code> → {{latestAfD|Horseplay (band)}}
 
*Two to five AfDs: <code><nowiki>{{latestAfD|Ashley Golebiewski}}</nowiki></code> → {{latestAfD|Ashley Golebiewski}}
 
*More than five AfDs: <code><nowiki>{{latestAfD|Daniel Brandt}}</nowiki></code> → {{latestAfD|Daniel Brandt}}
 
  
 +
Article with no AfDs: {{demo-inline|<nowiki>{{latestAfD|Cheese}}</nowiki>}}
 +
 +
Article with one AfD: {{demo-inline|<nowiki>{{latestAfD|Horseplay (band)}}</nowiki>}}
 +
 +
Article with several AfDs: {{demo-inline|<nowiki>{{latestAfD|Angela Beesley}}</nowiki>}}
 +
 +
 +
'''Note:''' This template relies on AfDs following the standard naming convention. AfDs not adhering to the convention will not be detected.
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Latest revision as of 18:15, 13 August 2020

This template links to the most recent AfD discussion for a given article. Optional display text may be specified. For pages without an AfD, a warning message is displayed.

Usage

{{latestAfD|<article>|<optional display text>}}

Examples

Article with no AfDs: {{latestAfD|Cheese}}Warning: No AfD discussion exists for the linked article.

Article with one AfD: {{latestAfD|Horseplay (band)}}Warning: No AfD discussion exists for the linked article.

Article with several AfDs: {{latestAfD|Angela Beesley}}Warning: No AfD discussion exists for the linked article.


Note: This template relies on AfDs following the standard naming convention. AfDs not adhering to the convention will not be detected.