Difference between revisions of "Template:DYK item/doc"
imported>Wnt (←Created page with '{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> == Usage == <code><nowiki>{{DYK item|Mass surveillan...') |
imported>GoingBatty m (→Usage: typo(s) fixed: returns back → returns using AWB (11376)) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| + | |||
| + | The name of an article is given, and the template returns the name, followed with whether it is listed or not at the standard (or user specified) DYK location. | ||
<code><nowiki>{{DYK item|Mass surveillance in North Korea}}</nowiki></code> | <code><nowiki>{{DYK item|Mass surveillance in North Korea}}</nowiki></code> | ||
| − | The template | + | {{DYK item|Mass surveillance in North Korea}} |
| + | |||
| + | The template takes one parameter, the name of an article which may or may not have been proposed at DYK. The DYK should generally go at a standard position relative to the article, so this should yield the proper DYK link. Except if there are two articles in one hook, in which case the naming system can get strange. For that a second parameter can be used which overrides the name | ||
| + | |||
| + | <code><nowiki>{{DYK item|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi, Mufarrij ibn Daghfal ibn al-Jarrah}}</nowiki></code> | ||
| + | |||
| + | {{DYK item|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi, Mufarrij ibn Daghfal ibn al-Jarrah}} | ||
''Note:'' if the article name contains = (e.g. [[Silence = Death]]) you should use "1=" at the beginning: | ''Note:'' if the article name contains = (e.g. [[Silence = Death]]) you should use "1=" at the beginning: | ||
<code><nowiki>{{DYK item|1=Silence = Death}}</nowiki></code> | <code><nowiki>{{DYK item|1=Silence = Death}}</nowiki></code> | ||
| + | |||
| + | {{DYK item|1=Silence = Death}} | ||
| + | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | ||
<!-- Categories go here and interwikis go in Wikidata. --> | <!-- Categories go here and interwikis go in Wikidata. --> | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 20:48, 5 September 2015
| This is a documentation subpage for Template:DYK item. It contains usage information, categories and other content that is not part of the original template page. |
Usage
The name of an article is given, and the template returns the name, followed with whether it is listed or not at the standard (or user specified) DYK location.
{{DYK item|Mass surveillance in North Korea}}
Mass surveillance in North Korea, listed at DYK.
The template takes one parameter, the name of an article which may or may not have been proposed at DYK. The DYK should generally go at a standard position relative to the article, so this should yield the proper DYK link. Except if there are two articles in one hook, in which case the naming system can get strange. For that a second parameter can be used which overrides the name
{{DYK item|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi|Abu'l-Qasim al-Husayn ibn Ali al-Maghribi, Mufarrij ibn Daghfal ibn al-Jarrah}}
Abu'l-Qasim al-Husayn ibn Ali al-Maghribi, listed at DYK.
Note: if the article name contains = (e.g. Silence = Death) you should use "1=" at the beginning:
{{DYK item|1=Silence = Death}}
Silence = Death, not listed at DYK.