Difference between revisions of "Template:Transient infobox"

no edit summary
Line 283: Line 283:
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--
}}<!--create vars end-->{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | <!--


For Has base skill as well as Has illustrator, Has scenario writer and Has voice actor, the subobject is set to "-" if no subobject is available to return a result in queries in order to properly match names to subobjects in Template:Companion list table result format. Otherwise, name, description, unlocked limit break and subobject (for skills) and name and subobject (for voice actor, scenario writer and illustrator) may be mismatched.
For Has base skill as well as Has illustrator, Has scenario writer and Has voice actor, the subobject is set to "-" if no subobject is available to return a result in queries in order to properly match names to subobjects in Template:Transient list table result format. Otherwise, name, description, unlocked limit break and subobject (for skills) and name and subobject (for voice actor, scenario writer and illustrator) may be mismatched.


-->{{#subobject:companion{{#vardefineecho:companionnumber|{{#expr:{{#var:companionnumber|-1}}+1}}}}
-->{{#subobject:transient{{#vardefineecho:transientnumber|{{#expr:{{#var:transientnumber|-1}}+1}}}}
| Has game context =Companion
| Has game context = Transient
| Has Japanese name ={{{jp name|?}}}
| Has Japanese name ={{{jp name|?}}}
| Has English name ={{{en name|?}}}
| Has English name ={{{en name|?}}}
Line 344: Line 344:
}}<!-- end subobject
}}<!-- end subobject
-->{{#css:
-->{{#css:
div.companion-infobox {
div.transient-infobox {
     background-color: #f9f9f9;
     background-color: #f9f9f9;
     padding-bottom: 2px;
     padding-bottom: 2px;
Line 353: Line 353:
}
}


div.companion-infobox > .header {
div.transient-infobox > .header {
     width: auto;
     width: auto;
     margin: 4px 4px 2px 4px;
     margin: 4px 4px 2px 4px;
Line 359: Line 359:
}
}


div.companion-infobox > .header .icon {
div.transient-infobox > .header .icon {
     float: left;
     float: left;
     vertical-align: bottom;
     vertical-align: bottom;
}
}


div.companion-infobox > .header .caption {
div.transient-infobox > .header .caption {
     color: #000000;
     color: #000000;
     font-size: 1.5em;
     font-size: 1.5em;
Line 372: Line 372:
}
}


div.companion-infobox > .header .caption > .name {
div.transient-infobox > .header .caption > .name {
     font-weight: bold;
     font-weight: bold;
}
}


div.companion-infobox > .header .caption > .sub {
div.transient-infobox > .header .caption > .sub {
     font-size: 0.8em;
     font-size: 0.8em;
}
}


div.companion-infobox .body {
div.transient-infobox .body {
     clear: both;
     clear: both;
     border-collapse: collapse;
     border-collapse: collapse;
}
}


div.companion-infobox .body tr td {
div.transient-infobox .body tr td {
     margin: 0px; padding: 0px;
     margin: 0px; padding: 0px;
}
}


div.companion-infobox .body .artwork {
div.transient-infobox .body .artwork {
     margin: 0px 2px 4px 4px;
     margin: 0px 2px 4px 4px;
     width: 300px;
     width: 300px;
Line 395: Line 395:
}
}


div.companion-infobox .body .artwork img {
div.transient-infobox .body .artwork img {
     display: inline-block;
     display: inline-block;
     max-width: 100%;
     max-width: 100%;
Line 402: Line 402:
}
}


div.companion-infobox .body .data {
div.transient-infobox .body .data {
     width: 388px;
     width: 388px;
     margin: 0px 2px 2px 2px;
     margin: 0px 2px 2px 2px;
Line 408: Line 408:
}
}


div.companion-infobox .body .data tr:not(:first-child) th {
div.transient-infobox .body .data tr:not(:first-child) th {
     border-top: 2px solid #f9f9f9;
     border-top: 2px solid #f9f9f9;
     border-right: 2px solid #f9f9f9;
     border-right: 2px solid #f9f9f9;
}
}


div.companion-infobox .body .data  tr  td {
div.transient-infobox .body .data  tr  td {
     padding-left: 0.5em;
     padding-left: 0.5em;
     padding-right: 0.5em;
     padding-right: 0.5em;
Line 419: Line 419:
}
}


div.companion-infobox .body .data  tr:not(:first-child)  td {
div.transient-infobox .body .data  tr:not(:first-child)  td {
     border-top: 2px solid #f9f9f9;
     border-top: 2px solid #f9f9f9;
}
}
Line 548: Line 548:


}}
}}
<div class="companion-infobox {{#ifeq:{{#var:energy}}|?|none|{{lc:{{Energy|{{#var:energy}}}}}}}}" id="companion{{#var:companionnumber}}">
<div class="transient-infobox {{#ifeq:{{#var:energy}}|?|none|{{lc:{{Energy|{{#var:energy}}}}}}}}" id="transient{{#var:transientnumber}}">
  <div class="header">
  <div class="header">
   <table>
   <table>
Line 719: Line 719:
   </tr>
   </tr>
  </table>
  </table>
{{#if:{{{skin artwork|}}}|{{#tag:galleryscript|{{#ifexist:File:{{{artwork|}}}.png|{{{artwork}}}|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full|}}}};{{{skin artwork|}}}|number={{#var:companionnumber}}}}|}}
{{#if:{{{skin artwork|}}}|{{#tag:galleryscript|{{#ifexist:File:{{{artwork|}}}.png|{{{artwork}}}|{{#ifexist:File:{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full.png|{{{en name}}}{{#if:{{{variant|}}}|_{{{variant}}}|}}_{{{rarity}}}star_full|}}}};{{{skin artwork|}}}|number={{#var:transientnumber}}}}|}}
</div><!--
</div><!--


Line 729: Line 729:
|
|
   <!-- energy -->
   <!-- energy -->
   {{#ifeq: {{Energy|{{#var:energy}}}} | ? | [[Category:Companions with unknown energy]] |
   {{#ifeq: {{Energy|{{#var:energy}}}} | ? | [[Category:Transients with unknown energy]] |
     [[Category:{{Energy|{{#var:energy}}}} companions]]
     [[Category:{{Energy|{{#var:energy}}}} transients]]
   }}
   }}


   <!-- weapon type -->
   <!-- weapon type -->
   {{#ifeq: {{Weapon type|{{{weapon type|}}}}} | ? | [[Category:Companions with unknown weapon type]] |
   {{#ifeq: {{Weapon type|{{{weapon type|}}}}} | ? | [[Category:Transients with unknown weapon type]] |
     [[Category:{{Weapon type|{{{weapon type}}}}} companions]]
     [[Category:{{Weapon type|{{{weapon type}}}}} transients]]
   }}
   }}


   <!-- availability -->
   <!-- availability -->
   {{#ifeq: {{#var:availability}} | Current | |
   {{#ifeq: {{#var:availability}} | Current | |
     [[Category:{{#var:availability}} companions]]
     [[Category:{{#var:availability}} transients]]
   }}
   }}


}}</includeonly><includeonly>{{#ifeq:{{PAGENAME}}|Companion infobox||{{#ifeq:{{#var:companionnumber|0}}|0|{{#seo:
}}</includeonly><includeonly>{{#ifeq:{{PAGENAME}}|Transient infobox||{{#ifeq:{{#var:transientnumber|0}}|0|{{#seo:
|title={{{en name|{{{jp name|}}}}}} - Tokyo Afterschool Summoners Wiki
|title={{{en name|{{{jp name|}}}}}} - Tokyo Afterschool Summoners Wiki
|titlemode=replace
|titlemode=replace
Line 756: Line 756:


== Usage ==
== Usage ==
<pre>{{Companion infobox
<pre>{{Transient infobox
| jp name =  
| jp name =  
| en name =  
| en name =  
Line 785: Line 785:
=== Parameters ===
=== Parameters ===


; jp name : Japanese name of the companion.
; jp name : Japanese name of the transient.
; en name : English name of the companion.
; en name : English name of the transient.
; jp title : Japanese title.
; jp title : Japanese title.
; en title : Translated English title.
; en title : Translated English title.
Line 792: Line 792:
; icon : Filename of the icon on the wiki. Automatically adds <code>.png</code> as the file extension.
; icon : Filename of the icon on the wiki. Automatically adds <code>.png</code> as the file extension.
; skin artwork : Filename of the skin artwork on the wiki. Automatically adds <code>.png</code> as the file extension.
; skin artwork : Filename of the skin artwork on the wiki. Automatically adds <code>.png</code> as the file extension.
; rarity : Rarity of the companion.
; rarity : Rarity of the transient.
; cost : Team cost of the companion.
; cost : Team cost of the transient.
; energy : Japanese energy of the companion. See [[Property:Has energy]] for a list of allowed values.
; energy : Japanese energy of the transient. See [[Property:Has energy]] for a list of allowed values.
; variant : Variant of the companion. Defaults to ''Standard''.
; variant : Variant of the transient. Defaults to ''Standard''.
; 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.
; availability : Availability of the transient. 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 transient.
; 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 transient. See [[Property:Has weapon type]] for a list of allowed values.
; base skill 1 : Japanese skill name of the default base skill.
; 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 2 : Japanese skill name of the base skill learnt after the first limit break.
Line 812: Line 812:
== Examples ==
== Examples ==


<pre>{{Companion infobox
<pre>{{Transient infobox
| jp name = モリタカ
| jp name = モリタカ
| en name = Moritaka
| en name = Moritaka
Line 840: Line 840:
| voice actor = 山口勝平
| voice actor = 山口勝平
}}</pre>
}}</pre>
{{Companion infobox
{{Transient infobox
| jp name = モリタカ
| jp name = モリタカ
| en name = Moritaka
| en name = Moritaka
Line 869: Line 869:
}}
}}


<pre>{{Companion infobox
<pre>{{Transient infobox
| jp name = モリタカ
| jp name = モリタカ
| en name = Moritaka
| en name = Moritaka
Line 899: Line 899:
| voice actor = 山口勝平
| voice actor = 山口勝平
}}</pre>
}}</pre>
{{Companion infobox
{{Transient infobox
| jp name = モリタカ
| jp name = モリタカ
| en name = Moritaka
| en name = Moritaka
Line 930: Line 930:
}}
}}


<pre>{{Companion infobox
<pre>{{Transient infobox
| jp name =  
| jp name =  
| en name = Tetsuya
| en name = Tetsuya
Line 959: Line 959:
| voice actor =  
| voice actor =  
}}</pre>
}}</pre>
{{Companion infobox
{{Transient infobox
| jp name =  
| jp name =  
| en name = Tetsuya
| en name = Tetsuya