Difference between revisions of "EventBob"

From Sega Retro

m
m (Dates ranges are marked with en dashes; not sure how I missed this before)
(9 intermediate revisions by the same user not shown)
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:{{{eventimage}}}}}">
 
{{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|}}}|&ndash; <span itemprop="endDate">{{{enddate}}}</span>}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
 
| if={{{location|}}}
 
| if={{{location|}}}
 
| title=Location
 
| title=Location
| content={{{location|}}}
+
| content=<span itemprop="location" itemscope itemtype="https://schema.org/Place">{{{location|}}}</span>
 +
}}
 +
{{BobRowPlus
 +
| if={{{attendance|}}}
 +
| title=Attendance
 +
| content={{{attendance|}}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
| if={{{attendance|}}}
+
| if={{{organizer|}}}
| title=Attendance
+
| title=Organizer
| content={{{attendance|}}}
+
| content=<span itemprop="organizer">{{{organizer|}}}</span>
 +
}}
 
}}
 
}}
 +
</div>
 
<div style="display:none;">
 
<div style="display:none;">
 
{{#seo:
 
{{#seo:
Line 65: Line 75:
 
  |locale=en_GB
 
  |locale=en_GB
 
  }}</div>
 
  }}</div>
}}<noinclude>
+
<noinclude>
 
==Usage==
 
==Usage==
 
This template is to be used on articles about video game events. Place the following at the top of a page:
 
This template is to be used on articles about video game events. Place the following at the top of a page:
Line 78: Line 88:
 
| location=
 
| location=
 
| attendance=
 
| attendance=
 +
| organizer=
 
}}
 
}}
 
</pre>
 
</pre>
  
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

Revision as of 11:44, 9 January 2021

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

Notavailable.svg
EventBob

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=
| organizer=
}}