Difference between revisions of "Template:Opt"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><nowiki>[</nowiki>{{{1|}}}<nowiki>]</nowiki></includeonly>
&amp;#91;{{{1}}}&amp;#93;
 
</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: {{opt|blah}}
+
! 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| }}
[ ]