Difference between revisions of "Template:Event preview infobox"

no edit summary
Line 39: Line 39:
     padding: 0px 7px 0px 7px;
     padding: 0px 7px 0px 7px;
}
}
}}{{#vardefine:duration array|}}{{#vardefine:event subobj|
}}{{#vardefine:event subobj|
  {{#ask:
  {{#ask:
   [[Has game context::Event]]
   [[Has game context::Event]]
Line 49: Line 49:
   |searchlabel=
   |searchlabel=
  }}
  }}
}}{{#vardefine:event display name|
{{#show:{{#var:event subobj}}|?Has English name}}
}}{{#ifeq:{{#var:event display name|}}||
{{#vardefine:event display name|
{{#show:{{#var:event subobj}}|?Has Japanese name}}
}}
}}
{{#vardefine:event display subname|
{{#show:{{#var:event subobj}}|?Has English subtitle}}
}}{{#ifeq:{{#var:event display subname|}}||
{{#vardefine:event display subname|
{{#show:{{#var:event subobj}}|?Has Japanese subtitle}}
}}
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
}}{{#if:{{#var:event subobj}}|<table id="event{{#eventnumber}}" class="preview-infobox" style="{{#ifeq:{{{floats|false}}}|true|float: right;}}">
<tr>
<tr>
   <th colspan="2">[[{{#var:event subobj}}|{{#ifeq:{{{use jp|false}}}|{{{en name|false}}}|
   <th colspan="2">[[{{#var:event subobj}}|{{#var:event display name|?}}}}
  {{#show:{{#var:event subobj}}|?Has English name}}|{{#ifeq:{{{use jp|}}}|{{{jp name|true}}}|
}}]]{{#if:{{#var:event display subtitle|}}|<br>~{{#var:event display subtitle|}}~}}</th>
  {{#show:{{#var:event subobj}}|?Has Japanese name}}|{{{en name|{{{jp name|???}}}}}}}}
}}]]{{#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 Japanese subtitle}}}}
}}}}{{#if:{{#var:event subtitle|}}|<br>~{{#var:event subtitle|}}~}}</th>
</tr>
</tr>
<tr>
<tr>