Difference between revisions of "Template:Event preview infobox"

no edit summary
Line 105: Line 105:
}}}}
}}}}
</table>
</table>
}}{{#ifeq:{{PAGENAME}}|Main Page|{{#if:{{#varexists:main page seo}}||{{#vardefine:main page seo|{{{en name|{{{jp name|???}}}}}}}}{{#seo:
}}{{#ifeq:{{PAGENAME}}|Main Page|{{#if:{{#varexists:main page seo}}||{{#vardefine:main page seo|{{{en name|{{{jp name|???}}}}}}
}}{{#vardefine:duration earliest|{{#show:{{#var:event subobj}}|?Earliest duration}}
}}{{#vardefine:duration latest|{{#show:{{#var:event subobj}}|?Latest duration}}
}}{{#if:{{#var:duration earliest|}}|
  {{#if:{{#var:duration latest|}}|{{#vardefine:duration format|F d\, Y "at" H\:i}}
    {{#vardefine:duration primary|
      {{#time:{{#var:duration format}}|@{{#var:duration earliest}}}} until {{#time:{{#var:duration format}}|@{{#var:duration latest}}}}
    }}
  }}
}}{{#seo:
|description=A wiki for Tokyo Afterschool Summoners&#10;Current Event: {{#var:main page seo}}{{#varexists:duration primary|&#10;From {{#var:duration primary}}.}}
|description=A wiki for Tokyo Afterschool Summoners&#10;Current Event: {{#var:main page seo}}{{#varexists:duration primary|&#10;From {{#var:duration primary}}.}}
}}}}}}</includeonly><noinclude>
}}}}}}</includeonly><noinclude>