Difference between revisions of "Template:Flavor text"
Line 27: | Line 27: | ||
<pre>{{Flavor text|}}</pre> | <pre>{{Flavor text|}}</pre> | ||
{{Flavor text|}} | {{Flavor text|}} | ||
{{Documentation}} |
Revision as of 15:07, 18 August 2019
Description
Input is text. Output is text surrounded with fancy brackets if the text is not blank. If the text is blank, it also returns blank. Can replace
Usage
{{Flavor text |<Your text> |type = p/b/c/(blank) }}
The type parameter is used to change the type of enclosing characters. By default it uses fancy brackets, but setting type=p changes them to parentheses, type=b to brackets, and type=c to curly braces.
Examples
{{Flavor text|Example}}
【Example】
{{Flavor text|Example|type=p}}
(Example)
{{Flavor text|Example|type=b}}
[Example]
{{Flavor text|Example|type=c}}
{Example}
{{Flavor text|}}
Description
Input is text. Output is text surrounded with fancy brackets if the text is not blank. If the text is blank, it also returns blank. Can use different enclosing characters.
Usage
{{Flavor text |<Your text> |type = p/b/c/(blank) }}
The type parameter is used to change the type of enclosing characters. By default it uses fancy brackets, but setting type=p changes them to parentheses, type=b to brackets, and type=c to curly braces.
Examples
{{Flavor text|Example}}
【Example】
{{Flavor text|Example|type=p}}
(Example)
{{Flavor text|Example|type=b}}
[Example]
{{Flavor text|Example|type=c}}
{Example}
{{Flavor text|}}
The above documentation is transcluded from Template:Flavor text/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |