Difference between revisions of "Template:Transient list table header"
Jump to navigation
Jump to search
m |
|||
(6 intermediate revisions by 2 users 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 | {{#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 rarity}} | y | <th>Rarity</th> | |||
}}{{#ifeq: {{#var:show cost}} | y | <th>Cost</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 base stats}} | y | <th>Base HP</th><th>Base ATK</th> | |||
}}{{#ifeq: {{#var:show stats at lv}} | 0 | | <th>HP at Lv {{#var:show stats at lv}}</th><th>ATK at Lv {{#var:show stats at lv}}</th> | |||
}}{{#switch: {{#var:show skills}} | |||
| n = | | n = | ||
| combined = <th>Base skills</th> | | combined = <th>Base skills</th> | ||
| separate | | separate | ||
|#default = <th>Base skill (Def.)</th><th>Base skill (LB1)</th><th>Base skill (LB2)</th><th>Base skill (LB3)</th> }} | |#default = <th>Base skill (Def.)</th><th>Base skill (LB1)</th><th>Base skill (LB2)</th><th>Base skill (LB3)</th> | ||
}}{{#ifeq: {{#var:show charge skill}} | y | <th></th><th>Charge skill</th> | |||
}}{{#ifeq: {{#var:show illustrator}} | y | <th>Illustration</th> | |||
}}{{#ifeq: {{#var:show scenario writer}} | y | <th>Scenario</th> | |||
}}{{#ifeq: {{#var:show voice actor}} | y | <th>Voice</th> | |||
}}</tr></includeonly><noinclude> | |||
== Description == | == Description == | ||
This template creates the header used in | This template creates the header used in transient lists. Used by [[Template:Transient list]]. | ||
== Usage == | == Usage == | ||
<pre>{{ | <pre>{{Transient list header | ||
| show name = | |||
| show jp name = | | show jp name = | ||
| show rarity = | | show rarity = | ||
| show cost = | | show cost = | ||
| show | | 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 | ; 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''. | ||
Line 68: | Line 70: | ||
; 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 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 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 | ; 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 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 scenario writer : Set to ''y'' to show scenario writer, ''n'' to hide. Defaults to ''n''. |
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.