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

From blackwiki
Jump to navigation Jump to search
blackwiki>Swpb
blackwiki>Cpiral
(ce)
Line 4: Line 4:
 
== Usage ==
 
== Usage ==
  
{{user|Zenexer}}'s explanation:
+
Echo the first argument to the template through the rendering engine.
 
+
* See how {{param|1}} behaves in a template.
:This template is particularly useful as a meta-metatemplate. A metatemplate can use, for example, <code><nowiki>{{1x|<}}includeonly{{1x|>}}</nowiki></code> to generate an <code>&lt;includeonly&gt;</code> tag. Unlike such a tag made with XML/HTML entities (&lt; and &gt;), this tag will be evaluated when the resulting template is substituted.
+
* 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;).
  
 
== See also ==
 
== See also ==

Revision as of 21:52, 16 December 2015

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 (< and >).

See also