Difference between revisions of "Template:Flavor text"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}|{{#switch:{{{type|}}}|p=&#40;|b=&#91;|c=&#123;|【}}|}}{{{1|}}}{{#if:{{{1|}}}|{{#switch:{{{type|}}}|p=&#41;|b=&#93;|c=&#125;|】}}|}}</includeonly><noinclude>
|{{#switch:{{{type|}}}|p=&#40;|b=&#91;|c=&#123;|【}}|}}{{{1|}}}{{#if:{{{1|}}}|{{#switch:{{{type|}}}|p=&#41;|b=&#93;|c=&#125;|】}}|}}
</includeonly>
 
<noinclude>
=Description=
=Description=


Line 22: Line 18:


<pre>{{Flavor text|Example}}</pre>
<pre>{{Flavor text|Example}}</pre>
{{Flavor text|Example}}
{{Flavor text|Example}}
<pre>{{Flavor text|Example|type=p}}</pre>
<pre>{{Flavor text|Example|type=p}}</pre>
{{Flavor text|Example|type=p}}
{{Flavor text|Example|type=p}}
<pre>{{Flavor text|Example|type=b}}</pre>
<pre>{{Flavor text|Example|type=b}}</pre>
{{Flavor text|Example|type=b}}
{{Flavor text|Example|type=b}}
<pre>{{Flavor text|Example|type=c}}</pre>
<pre>{{Flavor text|Example|type=c}}</pre>
{{Flavor text|Example|type=c}}
{{Flavor text|Example|type=c}}
<pre>{{Flavor text|}}</pre>
<pre>{{Flavor text|}}</pre>
{{Flavor text|}}
{{Flavor text|}}

Revision as of 08:00, 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|}}