Template:1x/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->


== Usage ==
== Usage ==
Echo the first argument to the template through the rendering engine.
Echo the first argument to the template through the rendering engine.
* See how <code>{{{1}}}</code> behaves in a template.
* See how <code>{{{1}}}</code> 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 (&amp;lt; and &amp;gt;).
* As a metatemplate, for example, <code><nowiki>{{1x|<}}includeonly{{1x|>}}</nowiki></code> generates an {{tag|includeonly|o}} 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 ==
* [[Template:3x]]
* {{tl|3x}}


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||{{testcases other||
<!-- Add categories below this line, and interwikis at Wikidata -->
 
[[Category:Text-specific formatting and function templates]]
<!-- Categories below this line, please -->
}}</includeonly>
[[Category:Utility templates]]
}}}}</includeonly>

Latest revision as of 02:40, 20 August 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.

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