Difference between revisions of "Template:MainPageEvents"

From SMT: Dx2 Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{ #vardefine: mainpage_events_text | {{ #invoke: Events | renderCurrentAndFutureEvents | template_current = MainPageEvents/Current | template_futur...")
 
(Replaced content with "Event")
(Tag: Replaced)
Line 1: Line 1:
<includeonly>{{
+
Event
#vardefine: mainpage_events_text
 
| {{
 
  #invoke: Events
 
  | renderCurrentAndFutureEvents
 
  | template_current  = MainPageEvents/Current
 
  | template_future    = MainPageEvents/Future
 
  | template_separator = -!-!-!-!-!-!-!-
 
  }}
 
}}{{
 
#vardefine: separator_index | {{ #invoke:String | find | {{ #var: mainpage_events_text }} |-!-!-!-!-!-!-!-}}
 
}}{{
 
#vardefine: mainpage_events_current | {{ #invoke:String | sub | {{ #var: mainpage_events_text }} | 1 | {{ #expr: {{ #var: separator_index }} - 1 }} }}
 
}}{{
 
#vardefine: mainpage_events_future | {{ #invoke:String | sub | {{ #var: mainpage_events_text }} | {{ #expr: {{ #var: separator_index }} + 15 }} }}
 
}}</includeonly><noinclude><div style="vertical-align: top; text-align: center; width: 470px; border: 1px solid black;">{{MainPageEvents}}<!--{{ #var: mainpage_events_text }}<hr />{{ #var: separator_index }}<hr />-->{{ #var: mainpage_events_current }}<hr />{{ #var: mainpage_events_future }}</div></noinclude>
 

Revision as of 13:18, 16 September 2018

Event