|
|
| (5 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly><noinclude> | | <includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}</includeonly><includeonly>{{#cargo_store: |
| == Cargo Declaration ==
| |
| {{#cargo_declare:
| |
| _table = Teams
| |
| |name = String
| |
| |short_code = String
| |
| |other_team = String
| |
| |image = File
| |
| |country = String
| |
| |status = String
| |
| |sponsors = List (,) of String
| |
| |earnings = Integer
| |
| |instagram = URL
| |
| |twitter= URL
| |
| |youtube = URL
| |
| }}
| |
| </noinclude><includeonly>{{#cargo_store:
| |
| _table = Teams | | _table = Teams |
| |name = {{{name|{{PAGENAME}}}}} | | |name = {{{name|{{PAGENAME}}}}} |
| Line 21: |
Line 5: |
| |other_team = {{{other_team|}}} | | |other_team = {{{other_team|}}} |
| |image = {{{image|}}} | | |image = {{{image|}}} |
| | |image_dark = {{{image_dark|}}} |
| |country = {{{country|}}} | | |country = {{{country|}}} |
| |status = {{{status|}}} | | |status = {{{status|}}} |
| Line 28: |
Line 13: |
| |twitter = {{{twitter|}}} | | |twitter = {{{twitter|}}} |
| |youtube = {{{youtube|}}} | | |youtube = {{{youtube|}}} |
| }}<div class="infobox"> | | }} |
| <div class="infobox-header">{{{name|{{SUBPAGENAME}}}}}</div>
| | {{#invoke:Team|infobox|name={{{name|{{PAGENAME}}}}}|short_code={{{short_code|}}}|other_team={{{other_team|}}}|image={{{image|}}}|image_dark={{{image_dark|}}}|country={{{country|}}}|status={{{status|}}}|sponsors={{{sponsors|}}}|instagram={{{instagram|}}}|twitter={{{twitter|}}}|youtube={{{youtube|}}} }} |
| | |
| {{#if:{{{image|}}}|
| |
| <div class="infobox-image">[[File:{{{image}}}|200px]]</div>
| |
| }}
| |
| | |
| <div class="infobox-data-container">
| |
|
| |
| {{#if:{{{other_team|}}}|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Name</div>
| |
| <div class="infobox-data">{{{other_team}}}</div>
| |
| </div>
| |
| }}{{#if:{{{short_code|}}}|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Short Code</div>
| |
| <div class="infobox-data">{{{short_code}}}</div>
| |
| </div>
| |
| }}{{#if:{{{country|}}}|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Country</div>
| |
| <div class="infobox-data">{{{country}}}</div>
| |
| </div>
| |
| }}{{#if:{{{status|}}}|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Status</div>
| |
| <div class="infobox-data" style="font-weight:bold; color:{{#switch:{{{status}}}|Active=green|active=green|Active =green|Inactive=red|inactive=red|Inactive =red|Disbanded=red|#333}};">{{{status}}}</div>
| |
| </div>
| |
| }}
| |
|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Krafton Rank</div>
| |
| <div class="infobox-data">#{{#cargo_query:tables=Krafton_Rankings|fields=rank|where=name="{{{name|{{SUBPAGENAME}}}}}" AND type='Team'|no html|default=Unranked}}</div>
| |
| </div>
| |
| | |
| {{#if:{{{sponsors|}}}|
| |
| <div class="infobox-row">
| |
| <div class="infobox-label">Sponsors</div>
| |
| <div class="infobox-data" style="text-align:right; line-height:1.4em;">{{#replace:{{{sponsors|}}}|,|<br>}}</div>
| |
| </div>
| |
| }}<div class="infobox-row">
| |
| <div class="infobox-label">Total Earnings</div>
| |
| <div class="infobox-data"><span class="indian-currency">{{#cargo_query:|tables=Tournament_Prizes|fields=SUM(money)=TotalPrize|where=recipient='{{SUBPAGENAME}}'|format=list|default=0|no html}}</span></div>
| |
| </div>
| |
| | |
| {{#if:{{{instagram|}}}{{{youtube|}}}{{{twitter|}}}|
| |
| <div class="infobox-header" style="font-size:1em; margin-top:10px; border-radius: 6px;">Social Media</div>
| |
| <div class="infobox-row" style="justify-content:center; gap:10px;">
| |
| {{#if:{{{instagram|}}}| • [{{{instagram}}} Instagram] }}
| |
| {{#if:{{{twitter|}}}| • [{{{twitter}}} X] }}
| |
| {{#if:{{{youtube|}}}| • [{{{youtube}}} YouTube] }}
| |
| </div>}}
| |
| | |
| </div>
| |
| </div>
| |
| [[Category:Teams]]</includeonly> | | [[Category:Teams]]</includeonly> |