Difference between revisions of "Template:Transient infobox"

Jump to navigation Jump to search
(annoying)
(nothing uses `unavailabe`, consistency fixing with upstart)
Line 27: Line 27:
| limited = Limited
| limited = Limited
| event = Event
| event = Event
| unavailable = Unavailable
| unobtainable = Unobtainable
| current
| current
|#default = Current
|#default = Current
Line 33: Line 33:
}}
}}


{{#ifeq:{{lc:{{{acquisition|}}}}} | unobtainable | {{#vardefine:availability|Unavailable}}
{{#ifeq:{{lc:{{{acquisition|}}}}} | unobtainable | {{#vardefine:availability|Unobtainable}}
}}
}}


Line 487: Line 487:
     <td class="icon">{{#ifexist:File:{{{icon|}}}.png|[[File:{{{icon}}}.png|60px]]|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|60px]]|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}_{{{rarity}}}star_icon.png|60px]]|[[File:Unknown icon.png|60px]]}}}}}}</td>
     <td class="icon">{{#ifexist:File:{{{icon|}}}.png|[[File:{{{icon}}}.png|60px]]|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_icon.png|60px]]|{{#ifexist:File:{{{en name}}}_{{{rarity}}}star_icon.png|[[File:{{{en name}}}_{{{rarity}}}star_icon.png|60px]]|[[File:Unknown icon.png|60px]]}}}}}}</td>
     <td class="caption">
     <td class="caption">
     <div class="name">{{#ifeq: {{#var:availability}} | Unavailable | |[{{#if:{{{en title|}}}|{{{en title}}}|?}}]&nbsp;}}{{{en name|?}}}</div>
     <div class="name">{{#ifeq: {{#var:availability}} | Unobtainable | |[{{#if:{{{en title|}}}|{{{en title}}}|?}}]&nbsp;}}{{{en name|?}}}</div>
     <div class="sub">{{#ifeq: {{#var:availability}} | Unavailable | |&#x3010;{{#if:{{{jp title|}}}|{{{jp title}}}|&#xFF1F;}}&#x3011;}}{{#if:{{{jp name|}}}|{{{jp name}}}|&#xFF1F;}}</div>
     <div class="sub">{{#ifeq: {{#var:availability}} | Unobtainable | |&#x3010;{{#if:{{{jp title|}}}|{{{jp title}}}|&#xFF1F;}}&#x3011;}}{{#if:{{{jp name|}}}|{{{jp name}}}|&#xFF1F;}}</div>
     </td>
     </td>
   </tr>
   </tr>
Line 505: Line 505:
     }}
     }}
     }}
     }}
     {{#ifeq: {{#var:availability}} | Unavailable | |
     {{#ifeq: {{#var:availability}} | Unobtainable | |
     <tr>
     <tr>
       <th>Rarity</th>
       <th>Rarity</th>
Line 520: Line 520:
     </tr>
     </tr>
     </table>
     </table>
     {{#ifeq: {{#var:availability}} | Unavailable | |
     {{#ifeq: {{#var:availability}} | Unobtainable | |
     <table class="data">
     <table class="data">
     <tr>
     <tr>
Line 543: Line 543:
     </tr>
     </tr>
     </table>
     </table>
     {{#ifeq: {{#var:availability}} | Unavailable | |
     {{#ifeq: {{#var:availability}} | Unobtainable | |
     <table class="data">
     <table class="data">
     <tr>
     <tr>
Line 699: Line 699:
; element : Japanese element of the companion. See [[Property:Has element]] for a list of allowed values.
; element : Japanese element of the companion. See [[Property:Has element]] for a list of allowed values.
; variant : Variant of the companion. Defaults to ''Standard''.
; 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.
; availability : Availability of the companion. See [[Property:Has availability]] for a list of allowed values. If set to ''Unobtainable'', many parameters will automatically be omitted.
; acquisition : Method of acquisition of the companion.
; 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.
; weapon type : Japanese weapon type of the companion. See [[Property:Has weapon type]] for a list of allowed values.
Line 846: Line 846:
| element = 冥
| element = 冥
| weapon type = 斬撃
| weapon type = 斬撃
| availability = Unavailable
| availability = Unobtainable
| hp =  
| hp =  
| hp growth =  
| hp growth =