Difference between revisions of "Template:DYK article/doc"

From blackwiki
Jump to navigation Jump to search
imported>TheCoffee
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template creates a link to an article that was featured in …')
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 22: Line 22:
 
* [[Template:DYK pass]], another format
 
* [[Template:DYK pass]], another format
  
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<includeonly>{{Sandbox other||<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:DYK templates for record-keeping]]
 
[[Category:DYK templates for record-keeping]]
 
[[Category:Inline templates|{{PAGENAME}}]]
 
[[Category:Inline templates|{{PAGENAME}}]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:47, 25 April 2020

This template creates a link to an article that was featured in the Did you know section of the Main Page, along with a link to the revision of Template:Did you know where the article appeared.

Usage

Syntax:

{{DYK article|Article|OldRevID|YYYY-MM-DD}}

Example:

{{DYK article|Janina San Miguel|243377379|2008-10-06}}

The above generates:

Janina San Miguel (2008-10-06)

If the third parameter is omitted, it generates:

Janina San Miguel ([1])

See also