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>John Cline
(ce prose for clarity and readability.)
Line 4: Line 4:
 
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||
 
[[Category:DYK/Pages|Template/Documentation]]<includeonly>{{sandbox other||
 
[[Category:DYK/Administration|{{SUBJECTSPACE}}/Documentation]]
 
[[Category:DYK/Administration|{{SUBJECTSPACE}}/Documentation]]
Line 16: Line 22:
 
[[Category:DYK/{{NAMESPACE}}]]
 
[[Category:DYK/{{NAMESPACE}}]]
 
[[Category:DYK/Pages/Documentation]]
 
[[Category:DYK/Pages/Documentation]]
 
 
[[Category:DYK templates|conditions]]
 
[[Category:DYK templates|conditions]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 03:22, 13 April 2018

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