Jump to content

Template:Tournament: Difference between revisions

From Spike Wiki
>Kypho
No edit summary
Trim tournament infobox output whitespace
 
(53 intermediate revisions by 2 users not shown)
Line 8: Line 8:
|Organizer=String
|Organizer=String
|Poster=File
|Poster=File
|FwangoURL=URL (link text=Brackets on fwango.io)
|FwangoURL=URL
}}
}}
</noinclude><includeonly>
<templatedata>{
{{#default_form:Tournament}}
"description":"Tournament infobox (stores to Cargo).",
<templatestyles src="Template:Infobox/styles.css" />
"params":{
 
  "Name":{"label":"Name","type":"string","required":true,"suggested":true},
{{#cargo_store:_table=Tournaments
  "StartDate":{"label":"Start date","type":"date"},
  "EndDate":{"label":"End date","type":"date"},
  "City":{"label":"City","type":"string"},
  "Venue":{"label":"Venue","type":"string"},
  "Organizer":{"label":"Organizer","type":"string"},
  "Poster":{"label":"Poster file","type":"wiki-file-name"},
  "PosterCaption":{"label":"Poster caption","type":"string"},
  "FwangoURL":{"label":"Fwango URL","type":"url"}
}
}</templatedata>
</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={{{StartDate|}}}
|StartDate={{{StartDate|}}}
Line 23: 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>}}}}
<div class="infobox">
<tr><th>Dates</th><td>{{#time:M j, Y|{{{StartDate|}}}}}</td></tr>
  <div class="ib-title">{{{Name|{{PAGENAME}}}}}</div>
{{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}}
  <div class="ib-img">{{#if:{{{Poster|}}}|[[File:{{{Poster}}}|340px]]}}</div>
{{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}}
  {{#if:{{{StartDate|}}}|<div class="ib-row"><span class="ib-label">Dates</span><span>{{{StartDate}}}{{#if:{{{EndDate|}}}| {{{EndDate}}}}}</span></div>}}
{{#if:{{{Surface|}}}|<tr><th>Surface</th><td>{{{Surface}}}</td></tr>}}
  {{#if:{{{City|}}}|<div class="ib-row"><span class="ib-label">Location</span><span>{{{City}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</span></div>}}
{{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}}
  {{#if:{{{Organizer|}}}|<div class="ib-row"><span class="ib-label">Organizer</span><span>{{{Organizer}}}</span></div>}}
{{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}}
  {{#if:{{{FwangoURL|}}}|<div class="ib-row"><span class="ib-label">Fwango</span><span>[{{{FwangoURL}}}]</span></div>}}
</table>[[Category:Tournaments]]</includeonly>
</div>
 
== Divisions ==
<!-- Per-division sections render below (without bracket links) -->
 
[[Category:Tournaments]]
</includeonly>

Latest revision as of 21:29, 16 April 2026

This template defines the table "Tournaments". View table.

Tournament infobox (stores to Cargo).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
NameName

no description

Stringrequired
Start dateStartDate

no description

Dateoptional
End dateEndDate

no description

Dateoptional
CityCity

no description

Stringoptional
VenueVenue

no description

Stringoptional
OrganizerOrganizer

no description

Stringoptional
Poster filePoster

no description

Fileoptional
Poster captionPosterCaption

no description

Stringoptional
Fwango URLFwangoURL

no description

URLoptional