Difference between revisions of "Template:Event"
m (escape event URL similar to Event List template) |
m (remove Go to URL wrapping as it breaks with URLs with brackets in it) |
||
Line 1: | Line 1: | ||
<includeonly><div style="width:100%;height:auto;padding:10px;position: relative; width: 100%;overflow: visible;padding:10px;border-bottom:1px solid #e0e0e0;"> | <includeonly><div style="width:100%;height:auto;padding:10px;position: relative; width: 100%;overflow: visible;padding:10px;border-bottom:1px solid #e0e0e0;"> | ||
<div style="float:left;margin-bottom:5px;"><span style="font-size:1.5em;display:block;margin-bottom:10px;">''{{#arraymap:{{{EventType|}}}|,|xyz|[[EventType::xyz]]}}'' in {{#arraymap:{{{Location|}}}|,|xyz|[[Location::xyz]]}}</span><span style="font-size:1.3em;display:block;margin-bottom:10px;">{{#arraymap:{{{EventCategory|}}}|,|xyz|[[EventCategory::xyz]]}}</span><span style="font-size:1.3em;display:block;margin-bottom:10px;">{{#arraymap:{{{date|}}}|,|xyz|{{#set: date=xyz}}}}{{{date}}}{{#if: {{{end_date}}}| - {{#arraymap:{{{end_date|}}}|,|xyz|{{#set: end_date=xyz}}}}{{{end_date}}}|}}</span> | <div style="float:left;margin-bottom:5px;"><span style="font-size:1.5em;display:block;margin-bottom:10px;">''{{#arraymap:{{{EventType|}}}|,|xyz|[[EventType::xyz]]}}'' in {{#arraymap:{{{Location|}}}|,|xyz|[[Location::xyz]]}}</span><span style="font-size:1.3em;display:block;margin-bottom:10px;">{{#arraymap:{{{EventCategory|}}}|,|xyz|[[EventCategory::xyz]]}}</span><span style="font-size:1.3em;display:block;margin-bottom:10px;">{{#arraymap:{{{date|}}}|,|xyz|{{#set: date=xyz}}}}{{{date}}}{{#if: {{{end_date}}}| - {{#arraymap:{{{end_date|}}}|,|xyz|{{#set: end_date=xyz}}}}{{{end_date}}}|}}</span> | ||
− | {{#arraymap:{{{Mainurl|}}}|,|xyz|{{#set: Mainurl=xyz}}}}{{#if: {{{Mainurl}}}|<span style="font-size:1.3em;display:block;">''' | + | {{#arraymap:{{{Mainurl|}}}|,|xyz|{{#set: Mainurl=xyz}}}}{{#if: {{{Mainurl}}}|<span style="font-size:1.3em;display:block;">'''{{lcfirst: {{{Mainurl}}}}}'''</span>|}}</div> |
<div style="float:right;margin-bottom:5px;"><span style="font-size: 90%">[[Events|Back to Events >>]]</span></div><div style="clear:both;"></div> | <div style="float:right;margin-bottom:5px;"><span style="font-size: 90%">[[Events|Back to Events >>]]</span></div><div style="clear:both;"></div> | ||
</div> | </div> | ||
<br />{{#if: {{{Location}}}|{{#set: Coordinates={{#geocode: {{{Location}}}}}}}|}}[[Category:Event]] | <br />{{#if: {{{Location}}}|{{#set: Coordinates={{#geocode: {{{Location}}}}}}}|}}[[Category:Event]] | ||
</includeonly> | </includeonly> |