Difference between revisions of "Template:Transient infobox"
Jump to navigation
Jump to search
m |
(allow multiple illustrators, voice actors, scenario writers) |
||
Line 31: | Line 31: | ||
}} | }} | ||
}} | }} | ||
{{#ifeq:{{lc:{{{acquisition|}}}}} | unobtainable | {{#vardefine:availability|Unavailable}} | {{#ifeq:{{lc:{{{acquisition|}}}}} | unobtainable | {{#vardefine:availability|Unavailable}} | ||
}} | }} | ||
{{# | {{#arraydefine:illustrator|{{{illustrator|}}}|;}} | ||
{{#vardefine:counter|0}} | |||
{{#arrayprint:illustrator | |||
| | |||
| @@@ | |||
| {{#vardefine:illustrator subobj {{#var:counter}}| | |||
{{#ask: | |||
[[Has game context::Illustrator]] | |||
[[Has Japanese name::@@@]] | |||
|link=none | |||
|limit=1 | |||
|headers=hide | |||
|searchlabel= | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
{{#vardefine:illustrator en name| | {{#vardefine:counter|0}} | ||
{{#arrayprint:illustrator | |||
| | |||
| @@@ | |||
| {{#vardefine:illustrator en name {{#var:counter}}| | |||
{{#if: {{#var:illustrator subobj {{#var:counter}} }} | |||
| {{#show: {{#var:illustrator subobj {{#var:counter}} }} |?Has English name }} | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
{{# | {{#arraydefine:scenario writer|{{{scenario writer|}}}|;}} | ||
{{#vardefine:counter|0}} | |||
{{#arrayprint:scenario writer | |||
| | |||
| @@@ | |||
| {{#vardefine:scenario writer subobj {{#var:counter}}| | |||
{{#ask: | |||
[[Has game context::Scenario writer]] | |||
[[Has Japanese name::@@@]] | |||
|link=none | |||
|limit=1 | |||
|headers=hide | |||
|searchlabel= | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
{{#vardefine:scenario writer en name| | {{#vardefine:counter|0}} | ||
{{#arrayprint:scenario writer | |||
| | |||
| @@@ | |||
| {{#vardefine:scenario writer en name {{#var:counter}}| | |||
{{#if: {{#var:scenario writer subobj {{#var:counter}} }} | |||
| {{#show: {{#var:scenario writer subobj {{#var:counter}} }} |?Has English name }} | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
{{# | {{#arraydefine:voice actor|{{{voice actor|}}}|;}} | ||
{{#vardefine:counter|0}} | |||
{{#arrayprint:voice actor | |||
| | |||
| @@@ | |||
| {{#vardefine:voice actor subobj {{#var:counter}}| | |||
{{#ask: | |||
[[Has game context::Voice actor]] | |||
[[Has Japanese name::@@@]] | |||
|link=none | |||
|limit=1 | |||
|headers=hide | |||
|searchlabel= | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
{{#vardefine:voice actor en name| | {{#vardefine:counter|0}} | ||
{{#arrayprint:voice actor | |||
| | |||
| @@@ | |||
| {{#vardefine:voice actor en name {{#var:counter}}| | |||
{{#if: {{#var:voice actor subobj {{#var:counter}} }} | |||
| {{#show: {{#var:voice actor subobj {{#var:counter}} }} |?Has English name }} | |||
}} | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | }} | ||
Line 217: | Line 257: | ||
| Has base skill ={{#if:{{{base skill 4|}}}|{{#var:base skill 4 subobj|-}};3;{{{base skill 4}}};{{#var:base skill 4 en name|{{{base skill 4}}}}};{{#var:base skill 4 desc|[?] ? / ?%}}}} | | Has base skill ={{#if:{{{base skill 4|}}}|{{#var:base skill 4 subobj|-}};3;{{{base skill 4}}};{{#var:base skill 4 en name|{{{base skill 4}}}}};{{#var:base skill 4 desc|[?] ? / ?%}}}} | ||
| Has charge skill ={{{charge skill name|}}};{{{charge skill description|}}};File:{{{charge skill pattern|}}}.png | | Has charge skill ={{{charge skill name|}}};{{{charge skill description|}}};File:{{{charge skill pattern|}}}.png | ||
| Has illustrator ={{#if:{{{illustrator|}}}|{{# | | Has illustrator ={{#if:{{{illustrator|}}}| | ||
| Has scenario writer ={{#if:{{{scenario writer|}}}|{{# | {{#vardefine:counter|0}} | ||
| Has voice actor ={{#if:{{{voice actor|}}}|{{# | {{#arrayprint:illustrator | ||
| ### | |||
| @@@ | |||
| {{#var:illustrator subobj {{#var:counter}}|}};@@@;{{#var:illustrator en name {{#var:counter}}|@@@}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
}}|+sep=### | |||
| Has scenario writer ={{#if:{{{scenario writer|}}}| | |||
{{#vardefine:counter|0}} | |||
{{#arrayprint:scenario writer | |||
| ### | |||
| @@@ | |||
| {{#var:scenario writer subobj {{#var:counter}}|}};@@@;{{#var:scenario writer en name {{#var:counter}}|@@@}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
}}|+sep=### | |||
| Has voice actor ={{#if:{{{voice actor|}}}| | |||
{{#vardefine:counter|0}} | |||
{{#arrayprint:voice actor | |||
| ### | |||
| @@@ | |||
| {{#var:voice actor subobj {{#var:counter}}|}};@@@;{{#var:voice actor en name {{#var:counter}}|@@@}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
}}|+sep=### | |||
}} | }} | ||
}}<!-- end subobject | }}<!-- end subobject | ||
Line 489: | Line 553: | ||
<tr> | <tr> | ||
<th>Illustration</th> | <th>Illustration</th> | ||
<td>{{#if: {{#var:illustrator subobj|}} | [[{{#var:illustrator subobj}}|{{#var:illustrator en name | <td>{{#vardefine:counter|0}}{{#if: {{{illustrator|}}} | ||
| {{#arrayprint:illustrator | |||
|,  | |||
|@@@ | |||
| {{#if: {{#var:illustrator subobj {{#var:counter}}|}} | |||
| [[{{#var:illustrator subobj {{#var:counter}}}}|{{#var:illustrator en name {{#var:counter}}|@@@ }}]] | |||
| @@@ | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Scenario</th> | <th>Scenario</th> | ||
<td>{{#if: {{#var:scenario writer subobj|}} | [[{{#var:scenario writer subobj}}|{{#var:scenario writer en name | <td>{{#vardefine:counter|0}}{{#if: {{{scenario writer|}}} | ||
| {{#arrayprint:scenario writer | |||
|,  | |||
|@@@ | |||
| {{#if: {{#var:scenario writer subobj {{#var:counter}}|}} | |||
| [[{{#var:scenario writer subobj {{#var:counter}}}}|{{#var:scenario writer en name {{#var:counter}}|@@@ }}]] | |||
| @@@ | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th>Voice</th> | <th>Voice</th> | ||
<td>{{#if: {{#var:voice actor subobj|}} | [[{{#var:voice actor subobj}}|{{#var:voice actor en name | <td>{{#vardefine:counter|0}}{{#if: {{{voice actor|}}} | ||
| {{#arrayprint:voice actor | |||
|,  | |||
|@@@ | |||
| {{#if: {{#var:voice actor subobj {{#var:counter}}|}} | |||
| [[{{#var:voice actor subobj {{#var:counter}}}}|{{#var:voice actor en name {{#var:counter}}|@@@ }}]] | |||
| @@@ | |||
}} | |||
{{#vardefine:counter|{{#expr:{{#var:counter}}+1}} }} | |||
}} | |||
| —— | |||
}}</td> | |||
</tr> | </tr> | ||
</table> | </table> | ||
Line 582: | Line 679: | ||
; charge skill description : English description of the charge skill. | ; charge skill description : English description of the charge skill. | ||
; charge skill pattern : Filename of the charge skill's attack pattern on the wiki. Automatically adds <code>.png</code> as the file extension. | ; charge skill pattern : Filename of the charge skill's attack pattern on the wiki. Automatically adds <code>.png</code> as the file extension. | ||
; illustrator : Japanese name of the illustrator. | ; illustrator : Japanese name of the illustrator. Separate multiple with a semicolon. | ||
; scenario writer : Japanese name of the scenario writer. | ; scenario writer : Japanese name of the scenario writer. Separate multiple with a semicolon. | ||
; voice actor : Japanese name of the voice actor. | ; voice actor : Japanese name of the voice actor. Separate multiple with a semicolon. | ||
== Examples == | == Examples == |
Revision as of 02:56, 13 April 2017
Description
This templates creates an infobox for a character.
Usage
{{Companion infobox | jp name = | en name = | jp title = | en title = | artwork = | icon = | skin artwork = | rarity = | cost = | element = | variant = | availability = | acquisition = | weapon type = | base skill 1 = | base skill 2 = | base skill 3 = | base skill 4 = | charge skill name = | charge skill description = | charge skill pattern = | illustrator = | scenario writer = | voice actor = }}
Parameters
- jp name
- Japanese name of the companion.
- en name
- English name of the companion.
- jp title
- Japanese title.
- en title
- Translated English title.
- artwork
- Filename of the artwork on the wiki. Automatically adds
.png
as the file extension. - icon
- Filename of the icon on the wiki. Automatically adds
.png
as the file extension. - skin artwork
- Filename of the skin artwork on the wiki. Automatically adds
.png
as the file extension. - rarity
- Rarity of the companion.
- cost
- Team cost of the companion.
- element
- Japanese element of the companion. See Property:Has element for a list of allowed values.
- variant
- Variant of the companion. Defaults to Standard.
- availability
- Availability of the companion. See Property:Has availability for a list of allowed values. If set to Unavailable, many parameters will automatically be omitted.
- acquisition
- Method of acquisition of the companion.
- weapon type
- Japanese weapon type of the companion. See Property:Has weapon type for a list of allowed values.
- base skill 1
- Japanese skill name of the default base skill.
- base skill 2
- Japanese skill name of the base skill learnt after the first limit break.
- base skill 3
- Japanese skill name of the base skill learnt after the second limit break.
- base skill 4
- Japanese skill name of the base skill learnt after the third limit break.
- charge skill name
- English name of the charge skill.
- charge skill description
- English description of the charge skill.
- charge skill pattern
- Filename of the charge skill's attack pattern on the wiki. Automatically adds
.png
as the file extension. - illustrator
- Japanese name of the illustrator. Separate multiple with a semicolon.
- scenario writer
- Japanese name of the scenario writer. Separate multiple with a semicolon.
- voice actor
- Japanese name of the voice actor. Separate multiple with a semicolon.
Examples
{{Companion infobox | jp name = モリタカ | en name = Moritaka | jp title = 孝の八犬士 | en title = | acquisition = Gacha | artwork = Moritaka 3star full | icon = Moritaka 01 icon | skin artwork = | rarity = 3 | cost = 8 | element = 水 | weapon type = 斬撃 | hp = 403 | hp growth = 103.074 | atk = 198 | atk growth = 54.129 | base skill 1 = 獣の末裔 | base skill 2 = 切り払いの名手 | base skill 3 = 霊玉の八犬士 | base skill 4 = | charge skill name = Frozen Ice Blade | charge skill description = Slash Damage + Inflict Purge on Enemy | charge skill pattern = Weapon Spread Slash | illustrator = 樹下次郎 | scenario writer = | voice actor = 山口勝平 }}
|
{{Companion infobox | jp name = モリタカ | en name = Moritaka | jp title = 武士は恋を知る | en title = | acquisition = Valentine's Gacha | artwork = Moritaka Valentine 5star full | icon = Moritaka 03 icon | skin artwork = Moritaka 2 Valentine 5star full | rarity = 5 | cost = 24 | element = 火 | weapon type = 斬撃 | variant = Valentine | availability = Limited | hp = 1599 | hp growth = 84.497 | atk = 850 | atk growth = 65.217 | base skill 1 = 恋焦がれる者 | base skill 2 = 獣の末裔 | base skill 3 = 霊玉の八犬士 | base skill 4 = | charge skill name = Frozen Ice Blade? | charge skill description = Magic Damage + Cast CP Up on all Nearby Allies | charge skill pattern = Weapon Spread Magic | illustrator = 樹下次郎 | scenario writer = | voice actor = 山口勝平 }}
60px |
[?] Moritaka
【武士は恋を知る】モリタカ
|
|
{{Companion infobox | jp name = | en name = Tetsuya | jp title = | en title = | acquisition = Unobtainable | artwork = Tetsuya 3star full | icon = Tetsuya 01 icon | skin artwork = | rarity = | cost = | element = 冥 | weapon type = 斬撃 | availability = Unavailable | hp = | hp growth = | atk = | atk growth = | base skill 1 = | base skill 2 = | base skill 3 = | base skill 4 = | charge skill name = | charge skill description = | charge skill | illustrator = naop | scenario writer = | voice actor = }}