Jump to content

Template:DYK user topicon/doc

From Wikipedia, the free encyclopedia

Use this template to add an icon on your userpage for the article that you wrote or expanded five times which appeared on Wikipedia:Did you know.

Usage

[edit]
{{DYK user topicon
| article_name = Name of the article
| hook         = The DYK hook that was used
| date         = The date the article was displayed on the main page under [[WP:DYK]]
| sortkey      = Determines the order topicons are shown: recommended is date in YYYY-MM-DD format, to put them in chronological order.
| icon         = Optional name of image file for icon; see below
}}

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:DYK user topicon in articles based on its TemplateData.

TemplateData for DYK user topicon

Shows a 'Did You Know' topicon for user pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Article namearticle_name 1

The title of the article

Page nameoptional
Iconicon

The desired icon override

Default
DYK questionmark icon.svg
Fileoptional
DYK hookhook

The content of the hook, excluding "did you know..."

Stringoptional
Datedate

The date the hook appeared on the Main Page

Example
October 23, 2022
Dateoptional
Sort keysortkey

Allows ordering the icons according to the sortkey given

Unknownoptional
Widthwidth

Uses a different width for the images. Default is 20.

Numberoptional
Heightheight

Uses a different height for the images. Default is 20.

Numberoptional

See also

[edit]