Template:Tournament: Difference between revisions

Remove leaky tournament date wrapper
Trim tournament infobox output whitespace
 
(4 intermediate revisions by the same user not shown)
Line 24: Line 24:
  }
  }
}</templatedata>
}</templatedata>
</noinclude><includeonly>
</noinclude><includeonly>{{#default_form:Tournament}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Tournament/styles.css" /><!-- -->{{#cargo_store:_table=Tournaments
{{#default_form:Tournament}}
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Tournament/styles.css" />
 
{{#cargo_store:_table=Tournaments
|Name={{{Name|{{PAGENAME}}}}}
|Name={{{Name|{{PAGENAME}}}}}
|StartDate={{#time:Y-m-d|{{{StartDate|}}}}}
|StartDate={{{StartDate|}}}
|EndDate={{#time:Y-m-d|{{{EndDate|}}}}}
|EndDate={{{EndDate|}}}
|City={{{City|}}}
|City={{{City|}}}
|Venue={{{Venue|}}}
|Venue={{{Venue|}}}
Line 38: Line 33:
|Poster={{{Poster|}}}
|Poster={{{Poster|}}}
|FwangoURL={{{FwangoURL|}}}
|FwangoURL={{{FwangoURL|}}}
}}
}}<!-- --><table class="infobox infobox-tournament">
 
<tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}</th></tr>{{#if:{{{Poster|}}}|<tr><td class="infobox-image" colspan="2">[[File:{{{Poster}}}|frameless|250px]]</td></tr>{{#if:{{{PosterCaption|}}}|<tr><td class="infobox-caption" colspan="2">{{{PosterCaption}}}</td></tr>}}}}
<table class="infobox infobox-tournament">
<tr><th>Dates</th><td>{{#time:M j, Y|{{{StartDate|}}}}}</td></tr>
  <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}</th></tr>
{{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}}
  {{#if:{{{Poster|}}}|
{{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}}
    <tr><td class="infobox-image" colspan="2">[[File:{{{Poster}}}|frameless|upright=1.15]]</td></tr>
{{#if:{{{Surface|}}}|<tr><th>Surface</th><td>{{{Surface}}}</td></tr>}}
    {{#if:{{{PosterCaption|}}}|<tr><td class="infobox-caption" colspan="2">{{{PosterCaption}}}</td></tr>}}
{{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}}
  }}
{{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}}
  <tr><th>Dates</th><td>{{#time:M j, Y|{{{StartDate|}}}}}{{#if:{{{EndDate|}}}|{{#ifeq:{{{StartDate|}}}|{{{EndDate|}}}|| &nbsp;–&nbsp; {{#time:M j, Y|{{{EndDate|}}}}}}}}</td></tr>
</table>[[Category:Tournaments]]</includeonly>
  {{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}}
  {{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}}
  {{#if:{{{Surface|}}}|<tr><th>Surface</th><td>{{{Surface}}}</td></tr>}}
  {{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}}
  {{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}}
</table>
 
[[Category:Tournaments]]
</includeonly>