Template:Opt: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki></includeonly> | <includeonly><nowiki>[</nowiki>{{{1|}}}<nowiki>]</nowiki></includeonly> | ||
<noinclude> | <noinclude> | ||
Wraps the single parameter supplied in square brackets (needed to avoid problems with wiki markup & links). | Wraps the single parameter supplied in square brackets (needed to avoid problems with wiki markup & links). | ||
Example | |||
<pre> | ==Example== | ||
{{opt|blah}} | {| class="wikitable" | ||
</pre> | ! Wiki markup | ||
! Result | |||
|- | |||
| <pre>{{opt|blah}}</pre> | |||
| {{opt|blah}} | |||
|- | |||
| <pre>{{opt}}</pre> | |||
| {{opt}} | |||
|- | |||
| <pre>{{opt| }}</pre> | |||
| {{opt| }} | |||
|} | |||
[[Category:Basic Templates]] | [[Category:Basic Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:29, 23 December 2020
Wraps the single parameter supplied in square brackets (needed to avoid problems with wiki markup & links).
Example
Wiki markup | Result |
---|---|
{{opt|blah}} |
[blah] |
{{opt}} |
[] |
{{opt| }} |
[ ] |