Difference between revisions of "EventBob"

From Sega Retro

m
Line 14: Line 14:
 
| attendance=integer
 
| attendance=integer
 
}}</noinclude></span>
 
}}</noinclude></span>
 +
<div itemscope itemtype='http://schema.org/Event'>
 +
<meta itemprop="name" content="{{PAGENAME}}">
 +
<meta itemprop="image" content="{{filepath:{{{logo}}}}}">
 
{{BobTablePlus|
 
{{BobTablePlus|
 
{{BobRowPlus
 
{{BobRowPlus
Line 47: Line 50:
 
| if={{{startdate|}}}
 
| if={{{startdate|}}}
 
| title=Date
 
| title=Date
| content={{{startdate}}} {{#if:{{{enddate|}}}|&mdash; {{{enddate}}}}}
+
| content=<span itemprop="startDate">{{{startdate}}}</span> {{#if:{{{enddate|}}}|&mdash; <span itemprop="endDate">{{{enddate}}}</span>}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{location|}}}
 
| if={{{location|}}}
 
| title=Location
 
| title=Location
| content={{{location|}}}
+
| content=<span itemprop="location">{{{location|}}}</span>
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{attendance|}}}
 
| if={{{attendance|}}}
 
| title=Attendance
 
| title=Attendance
| content={{{attendance|}}}
+
| content=<span itemprop="attendee">{{{attendance|}}}</span>
 
}}
 
}}
 
<div style="display:none;">
 
<div style="display:none;">

Revision as of 21:41, 19 December 2020

This template defines the table "events". View table.

Usage

This template is to be used on articles about video game events. Place the following at the top of a page:

{{EventBob
| logo=
| eventimage=
| name=
| startdate=
| enddate=
| location=
| attendance=
}}