Difference between revisions of "Template:GachaFlag"

From SMT: Dx2 Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{banner|}}}|[[File: Banner_s.png|30px|link=|alt=Banner Demon]]|}}{{#if: {{{event|}}}|[[File: Event_s.png|30px|link=|alt=Event Demon]]|}}{{#if: {{{fusible|}}}|[[File: Fusible_s.png|30px|link=|alt=Fusible Demon]]|}}{{#if: {{{gacha|}}}|[[File: Gacha_s.png|30px|link=|alt=Gacha Demon]]|}}</includeonly>
+
<includeonly>{{#ifeq: {{{banner|}}}| True | [[File: Banner_s.png|30px|link=|Banner Demon]]|}}{{#ifeq: {{{event|}}}| True |[[File: Event_s.png|30px|link=|Event Demon]]|}}{{#ifeq: {{{fusible|}}}| True | [[File: Fusible_s.png|30px|link={{{fissionLink|}}}|Fusible Demon]]|}}{{#ifeq: {{{gacha|}}}| True |[[File: Gacha_s.png|30px|link=|Gacha Demon]]|}}</includeonly>
 
<noinclude>[[Category:Templates|{{PAGENAME}}]]
 
<noinclude>[[Category:Templates|{{PAGENAME}}]]
 
==Usage/Example==
 
==Usage/Example==
Line 10: Line 10:
  
 
<pre>
 
<pre>
{{GachaFlag|banner=true}}
+
{{GachaFlag|banner=True}}
 
</pre>
 
</pre>
 
<div align="left">
 
<div align="left">
{{GachaFlag|banner=true}}
+
{{GachaFlag|banner=True}}
 
</div>
 
</div>
 
<pre>
 
<pre>
{{GachaFlag|fusible=true|gacha=true}}
+
{{GachaFlag|fusible=True|gacha=True}}
 
</pre>
 
</pre>
 
<div align="left">
 
<div align="left">
{{GachaFlag|fusible=true|gacha=true}}
+
{{GachaFlag|fusible=True|gacha=True}}
 
</div>
 
</div>
 
<pre>
 
<pre>
{{GachaFlag|fusible=true|banner=true|event=true|gacha=true}}
+
{{GachaFlag|fusible=True|banner=True|event=True|gacha=True}}
 
</pre>
 
</pre>
 
<div align="left">
 
<div align="left">
{{GachaFlag|fusible=true|banner=true|event=true|gacha=true}}
+
{{GachaFlag|fusible=True|banner=True|event=True|gacha=True}}
 
</div>
 
</div>
 
<div clear="both"></div>
 
<div clear="both"></div>

Latest revision as of 07:38, 23 February 2020

Usage/Example

This template is designed to one or more flags and display the corresponding image flag.

  • Banner: Banner available demon.
  • Fusible: Fusible available demon. Either multi or normal.
  • Gacha: Gacha available demon.
  • Event: Event available demon.
{{GachaFlag|banner=True}}

Banner Demon

{{GachaFlag|fusible=True|gacha=True}}

Fusible DemonGacha Demon

{{GachaFlag|fusible=True|banner=True|event=True|gacha=True}}

Banner DemonEvent DemonFusible DemonGacha Demon