Difference between revisions of "Template:Gacha preview infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 50: Line 50:
  }}
  }}
}}{{#vardefine:gacha id|{{#show:{{#var:gacha subobj}}|?Has ID}}
}}{{#vardefine:gacha id|{{#show:{{#var:gacha subobj}}|?Has ID}}
}}{{#vardefine:gacha filename|{{#tag:mediator|https://cdn.housamo.xyz/housamo/unity/Android/banner/banner_gacha_{{#show:{{#var:gacha subobj}}|?Has filename}}.png
}}{{#vardefine:gacha filename|{{#show:{{#var:gacha subobj}}|?Has filename}}
}}
}}
{{#vardefine:banner image|{{#var:gacha filename|[[File:{{#show:{{#var:gacha subobj}}|?Has banner image}}|link={{#var:gacha subobj}}]]}}}}{{#if:{{#var:gacha subobj}}|<table id="gacha{{#gachanumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
{{#vardefine:banner image|[[File:{{#show:{{#var:gacha subobj}}|?Has banner image}}|link={{#var:gacha subobj}}]]}}{{#if:{{#var:gacha subobj}}|<table id="gacha{{#gachanumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
<tr>
<tr>
   <th colspan="2">[[{{#var:gacha subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>
   <th colspan="2">[[{{#var:gacha subobj}}|{{{en name|{{{jp name|???}}}}}}]]</th>

Revision as of 18:19, 25 April 2021

Description

This template displays a gacha's information through an infobox.

Usage

{{Gacha preview infobox
| en name = 
| jp name =
| banners = 
| floats =
}}

Parameters

en name
English name of gacha
jp name
Japanese name of gacha (optional if en name is provided; required if not).
banners
Number of banners to show; defaults to 1. Provide 0 to show all.
floats
Determines if it should float to the right; only "true" enables it.

Examples

{{Gacha preview infobox
| en name = Honorless Great Summer Festival Struggle
| banners = 2
}}
Honorless Great Summer Festival Struggle
Durations
Duration July 05, 2018 18:00 to August 05, 2018 23:59