Template:1x/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
== 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 | * 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 (&lt; and &gt;). | ||
== See also == | == See also == | ||
* [[Template:3x]] | * [[Template:3x]] | ||
<includeonly> | <includeonly>{{sandbox other||{{testcases other|| | ||
<!-- | |||
<!-- 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 16:07, 12 June 2023
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 (< and >).
See also