Template:DYK/Tags/doc

From Wikipedia, the free encyclopedia

The root function of this template is:

{{{{{|safesubst:}}}#switch:{{{1}}}
| user
| #default =
}}

It allows a variety of switches for specific Did you knowDYK comment symbol uses.

Template {{DYK/Tags}}[edit]

This template is used by Did you knowDYK comment symbol to tag a variety of project pages, according to the needs of the project.

Usage[edit]

Template {{DYK/Tags}} is a multipurpose template, with specific applications, designed to meet the specialized needs of Did you knowDYK comment symbol. It will be expanded to meet additional needs as they are identified—in the course of supporting the DYK mission.

Examples[edit]

Expand examples → → →

Transclusion examples

  • {{DYK/Tags}} or {{DYKT}} may be used to produce the |default= portion of this template. It becomes the basic top-notice for all DYK categories and sub-categories. Either syntax shown produces the following example:



The main category for this sub-category is: Category:Wikipedia Did you know.
The main page for this category is: Wikipedia:Did you know.


{{DYKT}} must only be used in the category namespace. The template will produce an error message if it is present in any other namespace. The parameters must be switched when it is used in other areas—for example: the |talk= switch allows its use on talk pages, in any namespace—as described below:

  • {{DYK/Tags|talk}} or {{DYKT|talk}} may be used for tagging remote talk pages that are rarely monitored—directing editors to an active talk page where they are more likely to get an appropriate and timely response. Either syntax shown produces the following example:





The template's internal code will detect its location and automatically adjust its prose for that subject-space. Consider these category talk, template talk, and Wikipedia talk examples.

Substitution examples

The "|doc=" switch produces DYK specific output for creating template documentation pages. By saving the template's document page with {{subst:DYKT|doc}} in place, a completely usable documentation page is created for the templates basic function. The pre-loaded text and syntax will result in the following comparative example:

{{subst:DYK/Tags|doc}} markup preload Standard {{documentation}} markup preload
{{Documentation subpage}}
__NOTOC__

This is a {{DYK blue}} special purpose template.
== Template <b>{{tlx|DYK message}}</b> ==
This template was developed for {{DYK blue}} specialized use. 
=== Usage ===
* Using <b>{{tlx|DYK message}}</b>
<b>Produces:</b>
{{DYK message}}
=== Examples ===
{{DYK cbox|
Examples go here.
}}
=== See also ===
* {{Tl|DYK blue}}
<includeonly>{{sandbox other||
[[Category:DYK/Administration|{{SUBJECTSPACE}}/Documentation]]

}}</includeonly>
{{Documentation subpage}}

== Usage ==

== See also ==

<includeonly>
<!-- Categories and interwikis go here: -->

</includeonly>


See also[edit]