Template:Infobox event: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
Line 4: Line 4:
! colspan="2" class="infobox-title" | {{#if:{{{short_name|}}}|{{{short_name|}}}|{{{title}}}}}
! colspan="2" class="infobox-title" | {{#if:{{{short_name|}}}|{{{short_name|}}}|{{{title}}}}}
{{#if:{{{short_name}}}|<tr><th colspan="2" class="infobox-header">{{{title}}}</th></tr>|}}<!--
{{#if:{{{short_name}}}|<tr><th colspan="2" class="infobox-header">{{{title}}}</th></tr>|}}<!--
-->{{#if:{{{coordinates|}}}{{{location|}}}|<tr><td colspan="2" class="infobox-map">{{#display_map:{{#if:{{{coordinates|}}}|{{{coordinates|}}}|{{{location|}}}}}|width=100%|height=200|zoom=auto|scrollzoom=off}}</td></tr>|}}<!--
-->{{#ifexpr:{{#ask:[[Category:Calendar entries]][[-Has subobject::{{FULLPAGENAME}}]][[At coordinates::+]]|format=count}}>0|{{Infobox event/map}}|}}<!--
-->{{#ifexpr:{{#if:{{{event_type|}}}|1|0}} and {{#ifeq:{{lc:{{{event_type|}}}}}|unknown|0|1}}|<tr><th scope="row">Type</th><td>{{#arraymap:{{{event_type|}}}|,|@@@@|<p>@@@@</p>|}}</td></tr>|}}<!--
-->{{#ifexpr:{{#if:{{{event_type|}}}|1|0}} and {{#ifeq:{{lc:{{{event_type|}}}}}|unknown|0|1}}|<tr><th scope="row">Type</th><td>{{#arraymap:{{{event_type|}}}|,|@@@@|<p>@@@@</p>|}}</td></tr>|}}<!--
-->{{#if:{{{frequency||}}}|{{#ifeq:{{{frequency}}}|Once||<tr><th scope="row">Frequency</th><td>{{{frequency}}}</td></tr>|}}}}<!--
-->{{#if:{{{frequency||}}}|{{#ifeq:{{{frequency}}}|Once||<tr><th scope="row">Frequency</th><td>{{{frequency}}}</td></tr>|}}}}<!--

Latest revision as of 23:49, 24 September 2025

Warning: Infobox template
This is an infobox template for the Event class—it is used as a display template for Template:Event, with values from the associated Form:Event, and should never be transcluded outside of that context.

Pages which use this infobox are listed at Category:Events.