Difference between revisions of "EventBob"
From Sega Retro
(Created page with "{{#vardefine:type|2}}{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; max-width: 340px; padding: 0px; float: right; margin-left: 15px; display:...") |
|||
(37 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | <span style="display:none;"><includeonly>{{#cargo_store: |
− | | | + | _table = events |
− | {{ #if: {{{ | + | | name={{FormatSQL|{{#titleparts:{{PAGENAME}}}}}} |
− | + | | startdate={{stripref|{{#sub:{{{startdate|}}}|0|10}}}} | |
− | + | | enddate={{stripref|{{#sub:{{{enddate|}}}|0|10}}}} | |
− | {{ | + | | location={{stripref|{{{location|}}}}} |
− | | | + | | attendance={{stripref|{{{attendance|}}}}}{{ |
− | + | #if:{{{relatedto|}}}|{{RelationStore|{{FormatSQL|{{#titleparts:{{PAGENAME}}}}}}|{{{relatedto|}}}|event}}|}} | |
− | | | + | }}</includeonly><noinclude>{{#cargo_declare: |
− | | | + | _table = events |
− | {{ | + | | name=text |
− | + | | startdate=text | |
− | + | | enddate=text | |
− | |}<noinclude> | + | | location=text |
+ | | attendance=integer | ||
+ | | organizer=text | ||
+ | | licensor=text | ||
+ | }}</noinclude></span> | ||
+ | <div itemscope itemtype='http://schema.org/Event'> | ||
+ | <meta itemprop="name" content="{{PAGENAME}}"> | ||
+ | <meta itemprop="image" content="{{filepath:{{{eventimage}}}}}"> | ||
+ | {{BobTablePlus| | ||
+ | {{BobRowPlus | ||
+ | | if={{{logo|}}} | ||
+ | | content=[[File:{{{logo}}}|320x100px]] | ||
+ | | align=center | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{eventimage|}}} | ||
+ | | align=center | ||
+ | | default={{#ifeq:{{{noeventimage|}}}|yes||[[File:Notavailable.svg]]}} | ||
+ | | content={{#if: {{{eventimage2|}}} | ||
+ | | {{tabs | ||
+ | | icon1={{#if:{{{tab1|}}}|{{{tab1}}}|{{{eventimage|}}}}} | ||
+ | | icon2={{#if:{{{tab2|}}}|{{{tab2}}}|{{{eventimage2|}}}}} | ||
+ | | content1=[[File:{{{eventimage}}}|320x240px]] | ||
+ | | content2=[[File:{{{eventimage2}}}|320x240px]] | ||
+ | | orientation=horizontal | ||
+ | | hidetitle=yes | ||
+ | | tabliststyle=margin:2px; | ||
+ | }} | ||
+ | | {{#ifeq:{{{noeventimage|}}}|yes||[[File:{{{eventimage}}}|320x240px]]}} | ||
+ | }} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{name|}}} | ||
+ | | default={{PAGENAME}} | ||
+ | | content={{{name}}} | ||
+ | | headline=yes | ||
+ | | align=center | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{game|}}} | ||
+ | | title=Game | ||
+ | | content=''[[{{{game|}}}]]'' ([[{{Code2Format|{{{console|}}}}}]]){{#cargo_store: | ||
+ | _table = gameevents | ||
+ | | game={{{game|}}} | ||
+ | | event={{#titleparts:{{PAGENAME}}}} | ||
+ | | console={{{console|}}} | ||
+ | | ref= | ||
+ | }} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{startdate|}}} | ||
+ | | title=Date | ||
+ | | content=<span itemprop="startDate">{{{startdate}}}</span> {{#if:{{{enddate|}}}|– <span itemprop="endDate">{{{enddate}}}</span>}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{location|}}} | ||
+ | | title=Location | ||
+ | | content=<span itemprop="location" itemscope itemtype="https://schema.org/Place">{{CommonEventLocation|{{{location|}}}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{attendance|}}} | ||
+ | | title=Attendance | ||
+ | | content={{{attendance|}}} | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{organizer|}}} | ||
+ | | title=Organizer | ||
+ | | content=<span itemprop="organizer">{{{organizer|}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{licensor|}}} | ||
+ | | title=Licensor | ||
+ | | content=<span itemprop="licensor">{{{licensor|}}}</span> | ||
+ | }} | ||
+ | {{BobRowPlus | ||
+ | | if={{{prev|}}}{{{next|}}} | ||
+ | | title= | ||
+ | | content={{BobPrevNext|{{{prev|}}}|{{{next|}}}}} | ||
+ | {{BobPrevNext|{{{prev2|}}}|{{{next2|}}}}} | ||
+ | {{BobPrevNext|{{{prev3|}}}|{{{next3|}}}}} | ||
+ | {{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}} | ||
+ | }} | ||
+ | }}{{#if:{{NAMESPACE}}||{{#ifeq:{{lc:{{{location|}}}}}|online|[[Category:Online events]]|{{#vardefine:country|{{CountryCheck|{{CommonEventLocation|{{{location|}}}}}}}}} | ||
+ | {{#ifeq:{{#var:country}}|unknown|[[Category:Events in unknown countries]]|[[Category:Events in {{#var:country}}]]}}}}}} | ||
+ | </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 18: | Line 109: | ||
<pre> | <pre> | ||
{{EventBob | {{EventBob | ||
− | | | + | | logo= |
| eventimage= | | eventimage= | ||
− | |||
| name= | | name= | ||
| startdate= | | startdate= | ||
Line 26: | Line 116: | ||
| location= | | location= | ||
| attendance= | | attendance= | ||
+ | | organizer= | ||
+ | | licensor= | ||
+ | | prev= | ||
+ | | next= | ||
}} | }} | ||
</pre> | </pre> | ||
− | [[Category:Breakout box templates | + | Note that some locations can be detected automatically, see [[Template:CommonEventLocation]] for a list. |
+ | |||
+ | [[Category:Breakout box templates]]</noinclude> |
Latest revision as of 12:03, 11 October 2023
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= | licensor= | prev= | next= }}
Note that some locations can be detected automatically, see Template:CommonEventLocation for a list.