Difference between revisions of "EventBob"
From Sega Retro
Scarred Sun (talk | contribs) m (Dates ranges are marked with en dashes; not sure how I missed this before) |
|||
(12 intermediate revisions by 2 users 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 | ||
− | | if={{{ | + | | if={{{logo|}}} |
+ | | content=[[File:{{{logo}}}|320x100px]] | ||
| align=center | | align=center | ||
− | |||
}} | }} | ||
{{BobRowPlus | {{BobRowPlus | ||
| if={{{eventimage|}}} | | if={{{eventimage|}}} | ||
| align=center | | align=center | ||
− | | default=[[File:Notavailable.svg]] | + | | default={{#ifeq:{{{noeventimage|}}}|yes||[[File:Notavailable.svg]]}} |
| content={{#if: {{{eventimage2|}}} | | content={{#if: {{{eventimage2|}}} | ||
| {{tabs | | {{tabs | ||
Line 47: | Line 50: | ||
| if={{{startdate|}}} | | if={{{startdate|}}} | ||
| title=Date | | title=Date | ||
− | | content={{{startdate}}} {{#if:{{{enddate|}}}|& | + | | content=<span itemprop="startDate">{{{startdate}}}</span> {{#if:{{{enddate|}}}|– <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={{{ | + | | if={{{organizer|}}} |
− | | title= | + | | title=Organizer |
− | | content={{{ | + | | content=<span itemprop="organizer">{{{organizer|}}}</span> |
+ | }} | ||
}} | }} | ||
− | }}<noinclude> | + | </div> |
+ | <div style="display:none;"> | ||
+ | {{#seo: | ||
+ | |image={{filepath:{{{eventimage}}}}} | ||
+ | |site_name=Sega Retro | ||
+ | |locale=en_GB | ||
+ | }}</div> | ||
+ | <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 65: | Line 81: | ||
<pre> | <pre> | ||
{{EventBob | {{EventBob | ||
− | | | + | | logo= |
| eventimage= | | eventimage= | ||
| name= | | name= | ||
Line 72: | Line 88: | ||
| location= | | location= | ||
| attendance= | | attendance= | ||
+ | | organizer= | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Breakout box templates]]</noinclude> | [[Category:Breakout box templates]]</noinclude> |