Template:Tournament: Difference between revisions

Fix tournament infobox parser nesting
Restore working tournament template structure
Tag: Manual revert
Line 24: Line 24:
  }
  }
}</templatedata>
}</templatedata>
</noinclude><includeonly>{{#default_form:Tournament}}<templatestyles src="Template:Infobox/styles.css" /><templatestyles src="Template:Tournament/styles.css" />{{#cargo_store:_table=Tournaments
</noinclude><includeonly>
{{#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={{#time:Y-m-d|{{{StartDate|}}}}}
Line 34: Line 39:
|FwangoURL={{{FwangoURL|}}}
|FwangoURL={{{FwangoURL|}}}
}}
}}
<table class="infobox infobox-tournament">
<table class="infobox infobox-tournament">
   <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}</th></tr>
   <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}</th></tr>
Line 40: Line 46:
     {{#if:{{{PosterCaption|}}}|<tr><td class="infobox-caption" colspan="2">{{{PosterCaption}}}</td></tr>}}
     {{#if:{{{PosterCaption|}}}|<tr><td class="infobox-caption" colspan="2">{{{PosterCaption}}}</td></tr>}}
   }}
   }}
   {{#if:{{{StartDate|}}}|
   {{#if: {{{StartDate|}}} |
     <tr><th>Dates</th><td>{{#ifeq:{{{StartDate|}}}|{{{EndDate|}}}|{{#time:M j, Y|{{{StartDate}}}}}|{{#time:M j, Y|{{{StartDate|}}}}}{{#if:{{{EndDate|}}}| &nbsp;–&nbsp; {{#time:M j, Y|{{{EndDate}}}}}}}}</td></tr>
     <tr><th>Dates</th><td>{{#ifeq: {{{StartDate|}}} | {{{EndDate|}}} |
      {{#time:M j, Y|{{{StartDate}}}}}
    |
      {{#time:M j, Y|{{{StartDate|}}}}}{{#if: {{{EndDate|}}} | &nbsp;–&nbsp; {{#time:M j, Y|{{{EndDate}}}}} }}
    }}</td></tr>
   }}
   }}
   {{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}}
   {{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}}
Line 48: Line 58:
   {{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}}
   {{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}}
   {{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}}
   {{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}}
</table>[[Category:Tournaments]]</includeonly>
</table>
 
[[Category:Tournaments]]
</includeonly>