Difference between revisions of "Template:Event preview infobox"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 106: Line 106:
</table>
</table>
}}{{#ifeq:{{PAGENAME}}|Main Page|{{#if:{{#varexists:main page seo}}||{{#vardefine:main page seo|{{{en name|{{{jp name|???}}}}}}
}}{{#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 earliest|{{#replace:{{#show:{{#var:event subobj}}|?Earliest duration}}|,|}}
}}{{#vardefine:duration latest|{{#show:{{#var:event subobj}}|?Latest duration}}
}}{{#vardefine:duration latest|{{#replace:{{#show:{{#var:event subobj}}|?Latest duration}}|,|}}
}}{{#if:{{#var:duration earliest|}}|
}}{{#if:{{#var:duration earliest|}}|
   {{#if:{{#var:duration latest|}}|{{#vardefine:duration format|F d\, Y "at" H\:i}}
   {{#if:{{#var:duration latest|}}|{{#vardefine:duration format|F d\, Y "at" H\:i}}
Line 114: Line 114:
     }}
     }}
   }}
   }}
}}{{#var:duration earliest}}{{#seo:
}}{{#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>

Revision as of 02:43, 16 July 2018

Description

This template displays an event's information through an infobox.

Usage

{{Event preview infobox
| en name = 
| jp name =
| banners = 
| floats =
}}

Parameters

en name
English name of event
jp name
Japanese name of event (optional if en name is provided; required if not).
banners
Number of banners to show; defaults to 1. Provide 0 to show all.
floats
Determines if it should float to the right; only "true" enables it.

Examples

{{Event preview infobox
| en name = Honorless Great Summer Festival Struggle
| banners = 2
}}
Honorless Great Summer Festival Struggle
Durations
Gacha From July 05, 2018 at 18:00 until August 06, 2018 at 23:59
Event Main Quest From July 09, 2018 at 00:00 until August 06, 2018 at 23:59
Event Free Quest From July 09, 2018 at 00:00 until July 30, 2018 at 23:59
Bonus Quests From August 02, 2018 at 00:00 until August 06, 2018 at 23:59