Template:Tournament: Difference between revisions
Appearance
Tighten page templates and fix card render bugs |
Fix tournament infobox parser nesting |
||
| Line 33: | Line 33: | ||
|Poster={{{Poster|}}} | |Poster={{{Poster|}}} | ||
|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> | ||
{{#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:{{{Poster|}}}| | ||
{{#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>}} | <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|}}}|<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>}} | ||
{{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}} | {{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}} | ||
Revision as of 20:41, 16 April 2026
This template defines the table "Tournaments". View table.
Tournament infobox (stores to Cargo).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | Name | no description | String | required |
| Start date | StartDate | no description | Date | optional |
| End date | EndDate | no description | Date | optional |
| City | City | no description | String | optional |
| Venue | Venue | no description | String | optional |
| Organizer | Organizer | no description | String | optional |
| Poster file | Poster | no description | File | optional |
| Poster caption | PosterCaption | no description | String | optional |
| Fwango URL | FwangoURL | no description | URL | optional |