Jump to content

Template:Tournament: Difference between revisions

From Spike Wiki
>Kypho
No edit summary
Trim tournament infobox output whitespace
 
(10 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|FwangoURL=URL
|FwangoURL=URL
}}
}}
</noinclude><includeonly>
{{#default_form:Tournament}} <!-- remove this line if you don’t want PF -->
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Tournament/styles.css" />
{{#cargo_store:_table=Tournaments
|Name={{{Name|{{PAGENAME}}}}}
|StartDate={{#time:Y-m-d|{{{StartDate|}}}}}
|EndDate={{#time:Y-m-d|{{{EndDate|}}}}}
|City={{{City|}}}
|Venue={{{Venue|}}}
|Organizer={{{Organizer|}}}
|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|}}} | &nbsp;–&nbsp; {{#time:M j, Y|{{{EndDate}}}}} }}
    }}</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:{{{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}}} {{{FwangoURL}}}]</td></tr>}}
</table>
<templatedata>{
<templatedata>{
  "description":"Tournament infobox (stores to Cargo).",
  "description":"Tournament infobox (stores to Cargo).",
Line 60: 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
[[Category:Tournaments]]
|Name={{{Name|{{PAGENAME}}}}}
</includeonly>
|StartDate={{{StartDate|}}}
|EndDate={{{EndDate|}}}
|City={{{City|}}}
|Venue={{{Venue|}}}
|Organizer={{{Organizer|}}}
|Poster={{{Poster|}}}
|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>}}}}
<tr><th>Dates</th><td>{{#time:M j, Y|{{{StartDate|}}}}}</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:{{{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>

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