Template:1x
From The Right Wiki
Jump to navigationJump to search
{{{1}}}
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Ambox warning yellow.svg | This template is used on 36,000+ pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
Echo the first argument to the template through the rendering engine. This is occasionally useful as a metatemplate. For example:
- To break up certain constructs that otherwise have special meaning in wikitext.
{{1x|~~}}{{1x|~~}}
→ ~~~~
- To strip white space from a template parameter.
a{{{1| x }}}b
→ a x ba{{1x|1= {{{1| x }}} }}b
→ axb
- To conditionally hide or show some content by choosing which template takes a parameter.
{{ {{#if: {{{x}}} | 2x | 1x }} | hello }}
→ hello hello{{ {{#if: {{{x}}} | void | 1x }} | hello }}
→