SMITE Esports Wiki
SMITE Esports Wiki
m (Syncing content across wikis)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Org Navbox Templates]]{{#vardefine:OrgNavbox-Team|Counter Logic Gaming}}
+
<noinclude>[[Category:Org Navbox Templates]]{{documentation}}<!--
   
   
Line 25: Line 25:
   
   
</noinclude>{{#vardefine:status|{{#cargo_query:
+
--></noinclude><includeonly>{{#invoke:OrgNavbox|main}}</includeonly>
table=CCSisterTeams
 
|fields=Status
 
|where=Team="{{#var:OrgNavbox-Team}}"
 
|group by=Team
 
|no html
 
|default=Active
 
}} }}{{#vardefine:hasentry|{{#cargo_query:table=CCSisterTeams
 
|fields=AllTeams
 
|where=Team="{{#var:OrgNavbox-Team}}"
 
|default=
 
|no html
 
}}<!-- end vardefine-->}}{{#ifeq:{{#var:hasentry}}{{#var:OrgNavbox-Isdisbanded}}|true||{{#vardefine:navbox|true}}<!-- This variable is used by Template:Infobox Team to determine if it needs to print a vertical space before the tabs. -->{{Navbox
 
|name={{#cargo_query:
 
table=CCSisterTeams
 
|fields=CONCAT(_pageName)
 
|where=Team="{{#var:OrgNavbox-Team}}"
 
|group by=_pageName
 
|no html
 
|default=OrgNavbox}}
 
|title={{team{{#var:xbox}}|{{#var:OrgNavbox-Team}}|size=35px}} {{#switch:{{#var:status}}|Active=Roster|Inactive=Sister Teams}}
 
|state=expanded
 
|group1={{team|{{#var:OrgNavbox-Team}}|mediumplainlinked}}
 
|list1={{Flatlist}}
 
{{#cargo_query:
 
table=ListplayerCurrent
 
|fields=ID_Linked
 
|where=ListplayerCurrent._pageName="{{#var:OrgNavbox-Team}}"
 
|group by=Link
 
|order by=N
 
|default=
 
|format=ul
 
}}
 
{{Endflatlist}}
 
 
|group1style= {{#ifeq:{{#var:status}}|Inactive|display:none}}
 
|list1style = {{#ifeq:{{#var:status}}|Inactive|display:none}}
 
 
|list2={{#if:{{#var:hasentry}}|<!--
 
 
Old where that doesn't work with variable name change: AllTeams HOLDS "{{#var:OrgNavbox-Team}}" AND Status="Active" AND NOT Team="{{#var:OrgNavbox-Team}}"
 
 
 
-->
 
{{OrgNavbox/OtherTeamsHeading|title=Other Teams In Organization (Click [Show] to the Right)|border=child|state={{#ifeq:{{{expanded|}}}|true|expanded}} }}{{#vardefine:otherlineParity|odd}}
 
{{#cargo_query:table=CCSisterTeams
 
|fields=ActiveList
 
|where=Team="{{#var:OrgNavbox-Team}}"
 
|group by=Team
 
|format=template
 
|default=
 
|named args=no
 
|template=OrgNavbox/ActiveRoster
 
}}<!--
 
 
The next code used to be Template:RosterNavbox/OtherEnd and would have been moved to Template:OrgNavbox/InactiveTeams but there's no reason for it not to be included in parent template except that it contains code from the Navbox template which isn't a real reason.
 
 
-->
 
{{#if:{{#vardefineecho:inactivelist|<!--
 
 
Need to first check that there are actually inactive teams before putting any |below=
 
 
 
the old where: AllTeams HOLDS "{{#var:OrgNavbox-Team}}" AND Status="Inactive" AND NOT Team="{{#var:OrgNavbox-Team}}"
 
 
-->{{#cargo_query:
 
table=CCSisterTeams
 
|fields=InactiveList
 
|where=Team="{{#var:OrgNavbox-Team}}"
 
|format=template
 
|template=OrgNavbox/InactiveList
 
|group by=Team
 
|named args=no
 
|default=
 
}}
 
}}|<!--
 
 
Removing an if statement about title existing because it always will
 
 
--><tr style="height:2px;"><td></td></tr><!--
 
--><tr><td class="navbox-abovebelow" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><!--
 
-->Inactive Teams: {{Flatlist}}{{#var:inactivelist}}{{Endflatlist}}</td></tr>}}</table><div>
 
}}
 
}}
 
}}
 

Latest revision as of 05:19, 30 August 2018