Template:Infobox tournament: Difference between revisions

Template page
(Created page with "<div class="infobox"> <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}| <div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} <table>{{#if:{{{series|}}}|<tr> <th style="text-align:left;">Series</th> <td>{{{series}}}</td> </tr>}} {{#if:{{{organizer|}}}|<tr> <th style="text-align:left;">Organizer</th> <td>{{{organizer}}}</td> </tr>}} {{#if:{{{type|}}}|<tr> <th style="text-align:left;">Type</th> <td>{{{type}}}</t...")
 
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">
<templatestyles src="Infobox.css" />
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<noinclude>
<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}}
{{#cargo_declare:
<table>{{#if:{{{series|}}}|<tr>
_table = Tournaments
    <th  style="text-align:left;">Series</th>
|sponsors = List (,) of String
    <td>{{{series}}}</td>
|start = Date
</tr>}}
|end = Date
{{#if:{{{organizer|}}}|<tr>
|prize = Integer
    <th  style="text-align:left;">Organizer</th>
|type = List (,) of String
    <td>{{{organizer}}}</td>
|participants = Integer
</tr>}}
|organizer = List (,) of Page
{{#if:{{{type|}}}|<tr>
|featured = Boolean
    <th  style="text-align:left;">Type</th>
|female_only = Boolean
    <td>{{{type}}}</td>
|educational = List (,) of String
</tr>}}
|formatFilter = List (,) of String
{{#if:{{{location|}}}|<tr>
|country = String
    <th style="text-align:left;">Location</th>
|logoAll = File
    <td>{{{location}}}</td>
|logoLight = File
</tr>}}
|logoDark = File
{{#if:{{{venue|}}}|<tr>
|iconAll = File
    <th style="text-align:left;">Venue</th>
|iconLight = File
    <td>{{{venue}}}</td>
|iconDark = File
</tr>}}
|venue = List (,) of Page
{{#if:{{{format|}}}|<tr>
}}
    <th style="text-align:left;">Format</th>
</noinclude><includeonly>{{#cargo_store:_table = Tournaments
    <td>{{{format}}}</td>
|sponsors = {{{sponsors|}}}
</tr>}}
|start = {{{start|}}}
{{#if:{{{sponsors|}}}|<tr>
|end = {{{end|}}}
<th style="text-align:left;>Sponsors</th>
|prize = {{{prize|}}}
<td style="text-align:left; display: flex; flex-direction: column;">
|type = {{{type|}}}
{{{sponsors}}}
|organizer = {{Tournament/Organizer|list={{{organizer|}}} }}
</td></tr>}}
|participants = {{{participants|}}}
{{#if:{{{prize|}}}|<tr>
|featured = {{{featured|}}}
    <th  style="text-align:left;">Prize Pool</th>
|female_only = {{{female_only|}}}
    <td>{{{prize}}}</td>
|educational = {{{educational|}}}
</tr>}}
|formatFilter = {{{formatFilter|}}}
{{#if:{{{start|}}}|<tr>
|country = {{{country|}}}
    <th style="text-align:left;">Start Date</th>
|logoAll = {{{logoAll|}}}
    <td >{{{start}}}</td>
|logoLight = {{{logoLight|}}}
</tr>}}
|logoDark = {{{logoDark|}}}
{{#if:{{{end|}}}|<tr>
|iconAll = {{{iconAll|}}}
    <th  style="text-align:left;">End Date</th>
|iconLight = {{{iconLight|}}}
    <td>{{{end}}}</td>
|iconDark = {{{iconDark|}}}
</tr>}}
|venue = {{{venue|}}}
{{#if:{{{patch|}}}|<tr>
}}{{#invoke:Infobox tournament|main}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
    <th  style="text-align:left;">Patch</th>
    <td>{{{patch}}}</td>
</tr>}}
{{#if:{{{teams|}}}|<tr>
    <th  style="text-align:left;">Teams</th>
    <td>{{{teams}}}</td>
</tr>}}
{{#if:{{{points|}}}|<tr>
    <th  style="text-align:left;">Pro circuit points</th>
    <td>{{{points}}}</td>
</tr>}}
{{#if:{{{links|}}}|<tr>
<th style="text-align:left;>Links</th>
<td style="text-align:left;>{{#if:{{{website|}}}|[[Image:Home.png|40px|link={{{website}}}|Website]]}}{{#if:{{{twitter|}}}|[[Image:Twitter.png|40px|link=https://twitter.com/{{{twitter}}}|Twitter]]}}{{#if:{{{facebook|}}}|[[Image:Facebook.png|40px|link=https://www.facebook.com/{{{facebook}}}|Facebook]]}}{{#if:{{{instagram|}}}|[[Image:Instagram.png|40px|link=https://www.instagram.com/{{{instagram}}}|Instagram]]}}{{#if:{{{twitch|}}}|[[Image:Twitch.png|40px|link=https://www.twitch.com/{{{twitch}}}|Twitch]]}}{{#if:{{{youtube|}}}|[[Image:Youtube.png|40px|link=https://www.youtube.com/{{{youtube}}}|Youtube]]}}{{#if:{{{linkedin|}}}|[[Image:Linkedin.png|40px|link=https://www.linkedin.com/company/{{{linkedin}}}|LinkedIn]]}}{{#if:{{{linkedin2|}}}|[[Image:Linkedin.png|40px|link=https://www.linkedin.com/company/{{{linkedin2}}}|LinkedIn]]}}{{#if:{{{email|}}}|[[Image:Email.png|40px|link=mailto:{{{email}}}|Email]]}}{{#if:{{{phone|}}}|[[Image:Phone.png|40px|link=tel:{{{phone}}}|Phone]]}}{{#if:{{{discord|}}}|[[Image:Discord.png|40px|link={{{discord}}}|Discord]]}}{{#if:{{{reddit|}}}|[[Image:Reddit.png|40px|link=https://www.reddit.com/r/{{{reddit}}}|Reddit]]}}{{#if:{{{weibo|}}}|[[Image:Weibo.png|40px|link=https://m.weibo.cn/u/{{{weibo}}}|Weibo]]}}
</td></tr>}}
</table>
</div>

Latest revision as of 18:24, 26 April 2024

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

Documentation (view - edit)

To add a tournament go to https://twogpedia.com/Form:Tournament and to edit a tournament just use the "Edit with form" button.

For a list of country codes / names check https://twogpedia.com/Module:Localisation/Data

For additional links check https://twogpedia.com/Module:Links