Difference between revisions of "Template:Opt"
Jump to navigation
Jump to search
imported>StDoodle m |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><nowiki>[</nowiki>{{{1|}}}<nowiki>]</nowiki></includeonly> |
− | |||
− | </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| }} |
[ ] |