Difference between revisions of "Template:Transient list table header"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: <!-- define vars for table -->
<includeonly>{{#if: <!-- define vars for table -->


{{#vardefine:show name| {{{show name|y}}} }}
{{#vardefine:show jp name| {{{show jp name|n}}} }}
{{#vardefine:show jp name| {{{show jp name|n}}} }}
{{#vardefine:show rarity| {{{show rarity|y}}} }}
{{#vardefine:show rarity| {{{show rarity|y}}} }}
{{#vardefine:show cost| {{{show cost|n}}} }}
{{#vardefine:show cost| {{{show cost|n}}} }}
{{#vardefine:show element| {{{show element|y}}} }}
{{#vardefine:show energy| {{{show energy|{{{show element|y}}}}}} }}
{{#vardefine:show weapon type| {{{show weapon type|y}}} }}
{{#vardefine:show weapon type| {{{show weapon type|y}}} }}
{{#vardefine:show base stats| {{{show base stats|y}}} }}
{{#vardefine:show base stats| {{{show base stats|y}}} }}
Line 18: Line 19:
  <tr>
  <tr>
   <th>Icon</th>
   <th>Icon</th>
   <th>Name</th>
   {{#ifeq: {{#var:show name}} | y | <th>Name</th>
  {{#ifeq: {{#var:show jp name}} | y | <th>Name (JP)</th>
}}{{#ifeq: {{#var:show jp name}} | y | <th>Name (JP)</th>
}}{{#ifeq: {{#var:show rarity}} | y | <th>Rarity</th>
}}{{#ifeq: {{#var:show rarity}} | y | <th>Rarity</th>
}}{{#ifeq: {{#var:show cost}} | y | <th>Cost</th>
}}{{#ifeq: {{#var:show cost}} | y | <th>Cost</th>
}}{{#ifeq: {{#var:show element}} | y | <th>Element</th>
}}{{#ifeq: {{#var:show energy|{{#var:show element}}}} | y | <th>Energy</th>
}}{{#ifeq: {{#var:show weapon type}} | y | <th>Weapon type</th>
}}{{#ifeq: {{#var:show weapon type}} | y | <th>Weapon type</th>
}}{{#ifeq: {{#var:show base stats}} | y | <th>Base HP</th><th>Base ATK</th>
}}{{#ifeq: {{#var:show base stats}} | y | <th>Base HP</th><th>Base ATK</th>
Line 38: Line 39:
== Description ==
== Description ==


This template creates the header used in companion lists. Used by [[Template:Companion list]].
This template creates the header used in transient lists. Used by [[Template:Transient list]].


== Usage ==
== Usage ==
<pre>{{Companion list header
<pre>{{Transient list header
| show name =
| show jp name =  
| show jp name =  
| show rarity =  
| show rarity =  
| show cost =  
| show cost =  
| show element =  
| show energy =  
| show weapon type =  
| show weapon type =  
| show base stats =  
| show base stats =  
Line 58: Line 60:


=== Parameters ===
=== Parameters ===
 
; show name : Set to ''y'' to show the name, ''n'' to hide. Defaults to ''y''.
; show jp name : Set to ''y'' to show the Japanese name, ''n'' to hide. Defaults to ''n''.
; show jp name : Set to ''y'' to show the Japanese name, ''n'' to hide. Defaults to ''n''.
; show rarity : Set to ''y'' to show rarity, ''n'' to hide. Defaults to ''y''.
; show rarity : Set to ''y'' to show rarity, ''n'' to hide. Defaults to ''y''.
; show cost : Set to ''y'' to show team cost, ''n'' to hide. Defaults to ''y''.
; show cost : Set to ''y'' to show team cost, ''n'' to hide. Defaults to ''y''.
; show element : Set to ''y'' to show element, ''n'' to hide. Defaults to ''y''.
; show energy : Set to ''y'' to show energy, ''n'' to hide. Defaults to ''y''.
; show weapon type : Set to ''y'' to show weapon type, ''n'' to hide. Defaults to ''y''.
; show weapon type : Set to ''y'' to show weapon type, ''n'' to hide. Defaults to ''y''.
; show base stats : Set to ''y'' to show base stats, ''n'' to hide. Defaults to ''y''.
; show base stats : Set to ''y'' to show base stats, ''n'' to hide. Defaults to ''y''.

Latest revision as of 20:31, 20 August 2018

Description

This template creates the header used in transient lists. Used by Template:Transient list.

Usage

{{Transient list header
| show name = 
| show jp name = 
| show rarity = 
| show cost = 
| show energy = 
| show weapon type = 
| show base stats = 
| show stats at lv = 
| show skills = 
| show skill description = 
| show charge skill = 
| show illustrator = 
| show scenario writer = 
| show voice actor = 
}}

Parameters

show name
Set to y to show the name, n to hide. Defaults to y.
show jp name
Set to y to show the Japanese name, n to hide. Defaults to n.
show rarity
Set to y to show rarity, n to hide. Defaults to y.
show cost
Set to y to show team cost, n to hide. Defaults to y.
show energy
Set to y to show energy, n to hide. Defaults to y.
show weapon type
Set to y to show weapon type, n to hide. Defaults to y.
show base stats
Set to y to show base stats, n to hide. Defaults to y.
show stats at lv
Set to any number to show the base stats at the given level, 0 to hide. Defaults to 0.
show skills
Set to separate to show all skills in a separate column, combined to show them in a single column, n to hide. Defaults to separate.
show skill description
If show skills is not set to n, set to y to show skill descriptions, n to hide. Defaults to n.
show charge skill
Set to y to show charge skill, n to hide. Defaults to y.
show illustrator
Set to y to show illustrator, n to hide. Defaults to n.
show scenario writer
Set to y to show scenario writer, n to hide. Defaults to n.
show voice actor
Set to y to show voice actor, n to hide. Defaults to n.