Template:Opt: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>&#91;{{{1}}}&#93;</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
Produces: &#91;blah&#93;
! 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| }}
[ ]