Difference between revisions of "Template:1x/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Stylez995
m (Reverted 1 edit by 66.87.134.148 (talk) to last revision by Meters. (TW))
blackwiki>Andrybak
(clarify HTML entities)
Line 6: Line 6:
 
Echo the first argument to the template through the rendering engine.
 
Echo the first argument to the template through the rendering engine.
 
* See how {{param|1}} behaves in a template.
 
* See how {{param|1}} behaves in a template.
* As a metatemplate, for example, <code><nowiki>{{1x|<}}includeonly{{1x|>}}</nowiki></code> generates an <code>&lt;includeonly&gt;</code> tag that will be evaluated when the resulting template is substituted, unlike such a tag made with XML/HTML entities (&lt; and &gt;).
+
* As a metatemplate, for example, <code><nowiki>{{1x|<}}includeonly{{1x|>}}</nowiki></code> generates an <code>&lt;includeonly&gt;</code> tag that will be evaluated when the resulting template is substituted, unlike such a tag made with XML/HTML entities (&amp;lt; and &amp;gt;).
  
 
== See also ==
 
== See also ==

Revision as of 12:52, 11 May 2019

Usage

Echo the first argument to the template through the rendering engine.

  • See how {{{1}}} behaves in a template.
  • As a metatemplate, for example, {{1x|<}}includeonly{{1x|>}} generates an <includeonly> tag that will be evaluated when the resulting template is substituted, unlike such a tag made with XML/HTML entities (&lt; and &gt;).

See also