Jump to content

Template:Division champions block: Difference between revisions

From Spike Wiki
>Kypho
No edit summary
Use stored podium metadata in champions query
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<h3>{{{Division}}}</h3>
<templatestyles src="Template:Division champions block/styles.css" />
Debug output:
=== {{{Division}}} ===
{| class="wikitable sw-podium-table"
! Place
! Team
{{#cargo_query:
{{#cargo_query:
   tables=Podiums
   tables=Podiums
   |where=Tournament = "{{PAGENAME}}" AND Division = "{{{Division}}}"
   |where=Tournament = "{{PAGENAME}}" AND Division = "{{{Division}}}"
   |fields=Place, Team
   |fields=Place, Team, TeamName, ShortPlayers
  |order by=Place
  |format=table
  |named args=yes
}}
 
Table version:
{| class="wikitable sortable"
! Place !! Team
{{#cargo_query:
  tables=Podiums
  |where=Tournament = "{{PAGENAME}}" AND Division = "{{{Division}}}"
  |fields=Place, Team
   |order by=Place
   |order by=Place
   |format=template
   |format=template
   |template=Podium row
   |template=Podium row
   |named args=yes
   |named args=yes
  |sep=
}}
}}
|}
|}

Latest revision as of 17:03, 17 April 2026

{{{Division}}}

Place Team

No results