|
|
| Line 1: |
Line 1: |
| <noinclude> | | <templatestyles src="Template:Infobox/styles.css" /> |
| | |
| {{#cargo_declare:_table=Tournaments | | {{#cargo_declare:_table=Tournaments |
| |Name=String (mandatory) | | |Name=String |
| |StartDate=Date | | |StartDate=Date |
| |EndDate=Date | | |EndDate=Date |
| |City=String | | |City=String |
| |Venue=String
| |
| |Organizer=String | | |Organizer=String |
| | |FwangoURL=URL |
| |Poster=File | | |Poster=File |
| |FwangoURL=URL
| |
| }} | | }} |
| </noinclude><includeonly>
| |
| {{#default_form:Tournament}}
| |
| <templatestyles src="Template:Infobox/styles.css" />
| |
| <templatestyles src="Template:Tournament/styles.css" />
| |
|
| |
|
| <!-- store (normalize dates to ISO even if entered US-style) -->
| |
| {{#cargo_store:_table=Tournaments | | {{#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|}}}
| |
| |Organizer={{{Organizer|}}} | | |Organizer={{{Organizer|}}} |
| | |FwangoURL={{{FwangoURL|}}} |
| |Poster={{{Poster|}}} | | |Poster={{{Poster|}}} |
| |FwangoURL={{{FwangoURL|}}}
| |
| }}
| |
|
| |
| <table class="infobox">
| |
| <tr><th class="infobox-title" colspan="2">{{{Name|{{PAGENAME}}}}}</th></tr>
| |
|
| |
| {{#if:{{{Poster|}}}|
| |
| <tr><td class="infobox-image" colspan="2">[[File:{{{Poster}}}|frameless|upright=1.15]]</td></tr>
| |
| {{#if:{{{PosterCaption|}}}|<tr><td class="infobox-caption" colspan="2">{{{PosterCaption}}}</td></tr>}}
| |
| }}
| |
|
| |
| {{#if: {{{StartDate|}}} |
| |
| <tr>
| |
| <th>Dates</th>
| |
| <td>{{#ifeq: {{{StartDate|}}} | {{{EndDate|}}} |
| |
| {{#time:M j, Y|{{{StartDate}}}}}
| |
| |
| |
| {{#time:M j, Y|{{{StartDate|}}}}}{{#if: {{{EndDate|}}} | – {{#time:M j, Y|{{{EndDate}}}}} }}
| |
| }}</td>
| |
| </tr>
| |
| }} | | }} |
|
| |
|
| {{#if:{{{City|}}}{{{Venue|}}}|
| | <table class="infobox side"> |
| <tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>
| | <tr><th colspan="2" class="title">{{{Name|{{PAGENAME}}}}}</th></tr> |
| }}
| | {{#if:{{{Poster|}}}|<tr><td colspan="2" style="text-align:center">[[File:{{{Poster}}}|frameless|upright=1.1]]</td></tr>}} |
| | | <tr><th>Dates</th><td>{{{StartDate|}}}{{#if:{{{EndDate|}}}| – {{{EndDate}}}}}</td></tr> |
| {{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}}
| | <tr><th>Location</th><td>{{{City|}}}</td></tr> |
| {{#if:{{{Surface|}}}| <tr><th>Surface</th> <td>{{{Surface}}}</td></tr>}}
| | <tr><th>Organizer</th><td>{{{Organizer|}}}</td></tr> |
| {{#if:{{{Prize|}}}| <tr><th>Prize</th> <td>{{{Prize}}}</td></tr>}}
| | <tr><th>Brackets</th><td>[{{{FwangoURL}}} View on fwango.io]</td></tr> |
| {{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>{{{FwangoURL}}}</td></tr>}}
| |
| </table> | | </table> |
|
| |
|
| |
| <!-- default sections under the infobox -->
| |
|
| |
|
| |
| == Champions ==
| |
| {{#cargo_query:
| |
| tables=Divisions
| |
| |where=Tournament = "{{PAGENAME}}"
| |
| |fields=Division
| |
| |order by=Division
| |
| |format=template
| |
| |template=Division champions block
| |
| |named args=yes
| |
| |default=''No divisions yet.'' [[Special:FormEdit/Tournament/{{PAGENAME}}|Add divisions ▸]]
| |
| }}
| |
|
| |
| == Highlights ==
| |
| <!-- Add short highlight links or clips here -->
| |
|
| |
| == Full match footage ==
| |
| <!-- Add full match VOD links here -->
| |
|
| |
| == Gallery ==
| |
| <!-- Add any photos or links to photos taken here -->
| |
|
| |
| == References ==
| |
| <!-- Add any references here -->
| |
| <references/>
| |
|
| |
| <!-- The Division subtemplates inserted by the form will render below this line,
| |
| each with its own podium table (handled inside Template:Division). -->
| |
|
| |
| [[Category:Tournaments]]
| |
| </includeonly>
| |
This template defines the table "Tournaments". View table.
| Tournament |
| Dates | |
| Location | |
| Organizer | |
| Brackets | [{{{FwangoURL}}} View on fwango.io] |