Template:Tournament: Difference between revisions
Appearance
>Kypho No edit summary |
Trim tournament infobox output whitespace |
||
| (26 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
< | <noinclude> | ||
{{#cargo_declare:_table=Tournaments | {{#cargo_declare:_table=Tournaments | ||
|Name=String | |Name=String (mandatory) | ||
|StartDate=Date | |StartDate=Date | ||
|EndDate=Date | |EndDate=Date | ||
|City=String | |City=String | ||
|Venue=String | |||
|Organizer=String | |Organizer=String | ||
|Poster=File | |||
|FwangoURL=URL | |FwangoURL=URL | ||
}} | }} | ||
<templatedata>{ | |||
{{#cargo_store:_table=Tournaments | "description":"Tournament infobox (stores to Cargo).", | ||
"params":{ | |||
"Name":{"label":"Name","type":"string","required":true,"suggested":true}, | |||
"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|}}} | ||
|EndDate={{{EndDate|}}} | |EndDate={{{EndDate|}}} | ||
|City={{{City|}}} | |City={{{City|}}} | ||
|Venue={{{Venue|}}} | |||
|Organizer={{{Organizer|}}} | |Organizer={{{Organizer|}}} | ||
|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>}}}} | |||
<tr><th>Dates</th><td>{{#time:M j, Y|{{{StartDate|}}}}}</td></tr> | |||
<table class="infobox | {{#if:{{{City|}}}{{{Venue|}}}|<tr><th>Location</th><td>{{{City|}}}{{#if:{{{Venue|}}}| · {{{Venue}}}}}</td></tr>}} | ||
<tr><th | {{#if:{{{Organizer|}}}|<tr><th>Organizer</th><td>{{{Organizer}}}</td></tr>}} | ||
{{#if:{{{Poster|}}}|<tr><td | {{#if:{{{Surface|}}}|<tr><th>Surface</th><td>{{{Surface}}}</td></tr>}} | ||
<tr><th>Dates</th><td>{{{StartDate|}}}{{#if:{{{ | {{#if:{{{Prize|}}}|<tr><th>Prize</th><td>{{{Prize}}}</td></tr>}} | ||
<tr><th> | {{#if:{{{FwangoURL|}}}|<tr><th>Fwango</th><td>[{{{FwangoURL}}} View event]</td></tr>}} | ||
<tr><th> | </table>[[Category:Tournaments]]</includeonly> | ||
<tr><th> | |||
</table> | |||
Latest revision as of 21:29, 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 |