Difference between revisions of "Template:Event preview infobox"

no edit summary
Line 51: Line 51:
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox">
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox">
<tr>
<tr>
   <th colspan="2"><ruby>[[{{#var:event subobj}}|{{#ifeq:{{{use jp|false}}}|{{{en name|false}}}|
   <th colspan="2">[[{{#var:event subobj}}|{{#ifeq:{{{use jp|false}}}|{{{en name|false}}}|
   {{#show:{{#var:event subobj}}|?Has English name}}|{{#ifeq:{{{use jp|}}}|{{{jp name|true}}}|
   {{#show:{{#var:event subobj}}|?Has English name}}|{{#ifeq:{{{use jp|}}}|{{{jp name|true}}}|
   {{#show:{{#var:event subobj}}|?Has Japanese name}}|{{{en name|{{{jp name|???}}}}}}}}
   {{#show:{{#var:event subobj}}|?Has Japanese name}}|{{{en name|{{{jp name|???}}}}}}}}
}}]]<rt>{{#ifeq:{{{use jp|false}}}|{{{en name|false}}}|
}}]]{{#vardefine:event subtitle|{{#ifeq:{{{use jp|false}}}|{{{en name|false}}}|
   {{#show:{{#var:event subobj}}|?Has English subtitle}}|{{#ifeq:{{{use jp|}}}|{{{jp name|true}}}|
   {{#show:{{#var:event subobj}}|?Has English subtitle}}|{{#ifeq:{{{use jp|}}}|{{{jp name|true}}}|
   {{#show:{{#var:event subobj}}|?Has Japanese subtitle}}}}
   {{#show:{{#var:event subobj}}|?Has Japanese subtitle}}}}
}}</rt></ruby></th>
}}}}{{#if:{{#var:event subtitle|}}|<br>~{{#var:event subtitle|}}~}}{{#vardefine:event subtitle|}}</th>
</tr>
</tr>
<tr>
<tr>