Template:1x/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{template rating|p}}
<!-- 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]]
* [[Template:3x]]


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

Revision as of 17:07, 12 June 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