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

From blackwiki
Jump to navigation Jump to search
imported>DePiep
m (add category:DYK templates (via WP:JWB))
imported>Wugapodes
(add noinclude tags to prevent pages using the template being categorized per CAT:DT)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<noinclude>{{Deprecated template|DYK conditions|DYK tools|date=May 2020}}</noinclude>
 
__NOTOC__
 
__NOTOC__
 
<div style="position:relative; top:2em"><span id="Template:DYKC|DYKC"></span></div><table class="shortcutbox noprint" style="float:right; border:1px solid #aaa; background:#fff; margin:.3em .3em .3em 1em; padding:3px; text-align:center;"><tr><th style="border:none; background:transparent;" class="plainlist"><small>Shortcut:<ul><li>'''<nowiki>{{</nowiki>[[Template:DYKC|DYKC]]<nowiki>}}</nowiki>'''</li></ul></small></th></tr></table>
 
<div style="position:relative; top:2em"><span id="Template:DYKC|DYKC"></span></div><table class="shortcutbox noprint" style="float:right; border:1px solid #aaa; background:#fff; margin:.3em .3em .3em 1em; padding:3px; text-align:center;"><tr><th style="border:none; background:transparent;" class="plainlist"><small>Shortcut:<ul><li>'''<nowiki>{{</nowiki>[[Template:DYKC|DYKC]]<nowiki>}}</nowiki>'''</li></ul></small></th></tr></table>
 
This is a {{DYK blue}} special purpose template.
 
This is a {{DYK blue}} special purpose template.
 
== Template <b>{{tlx|DYK conditions}}</b> ==
 
== Template <b>{{tlx|DYK conditions}}</b> ==
This template was developed for {{DYK blue}} specialized use. It allows the inclusion of template switches that will trigger off the included conditions, without the impact of obfuscation that occurs when the full syntax is added to the template directly.  
+
This template was developed for {{DYK blue}} specialized use. It is coded with [[Help:Conditional expressions|conditional expressions]] that trigger the template's custom output based on the state of its monitored conditions and other [[WP:VAR|variables]] it discerns. The template's functionality does not depend on parameter usage or additional syntax.
 +
 
 
=== Usage ===
 
=== Usage ===
* Either '''{{tlx|DYK conditions}}''' or '''{{tlx|DYKC}}''' may be used. Without parameters, it is for integral use with '''{{tlx|NewDYKnomination}}'''. It adds the condition that '''<code><nowiki>#if:</nowiki></code>''' the nomination is transcluded to an article talk page, or a user talk page, a level two header will be included, and the rest of the content displays within that level two section. When the nomination archives, all of the transcluded content will disappear, including the header. The following is an example of the level two header that appears in the specified namespace:  
+
 
=={{DYK blue}} nomination==
+
{{DYKC}}
 +
* Either '''{{tlx|DYK conditions}}''' or '''{{tlx|DYKC}}''' may be used without parameters, integrally with '''{{tlx|NewDYKnomination}}.''' When transcluded in template space, the toolbox shown to the right is rendered. '''<code><nowiki>#if:</nowiki></code>''' the nomination is transcluded to an article talk page or user talk page, a level two header will be included and the rest of the content will display in that section. When the nomination archives, all of the transcluded content will disappear, including the header. The following example is of the level two header that appears on the specified talk pages:  
 +
 
 +
== {{DYK blue}} nomination ==
  
 
=== See also ===
 
=== See also ===
 +
 
* [[WP:DYK]]
 
* [[WP:DYK]]
[[Category:DYK/Pages|Template/Documentation]]<includeonly>{{sandbox other||
+
 
 +
<includeonly>{{sandbox other||
 
[[Category:DYK/Administration|{{SUBJECTSPACE}}/Documentation]]
 
[[Category:DYK/Administration|{{SUBJECTSPACE}}/Documentation]]
 
[[Category:DYK/{{SUBJECTSPACE}}]]
 
[[Category:DYK/{{SUBJECTSPACE}}]]

Latest revision as of 01:37, 27 October 2020

Shortcut:

This is a Did you knowDYK comment symbol special purpose template.

Template {{DYK conditions}}

This template was developed for Did you knowDYK comment symbol specialized use. It is coded with conditional expressions that trigger the template's custom output based on the state of its monitored conditions and other variables it discerns. The template's functionality does not depend on parameter usage or additional syntax.

Usage

  • Either {{DYK conditions}} or {{DYKC}} may be used without parameters, integrally with {{NewDYKnomination}}. When transcluded in template space, the toolbox shown to the right is rendered. #if: the nomination is transcluded to an article talk page or user talk page, a level two header will be included and the rest of the content will display in that section. When the nomination archives, all of the transcluded content will disappear, including the header. The following example is of the level two header that appears on the specified talk pages:

Did you knowDYK comment symbol nomination

See also