Difference between revisions of "Template:Event Fight List"

From NHRL
Line 1: Line 1:
{{#get_web_data:url={{fullurl:Special:GetData/Template:Stats:Data-{{{class}}}}}?Date={{{date}}}|format=csv with header|data=date=Date, match_num=Match Num, bot=Bot, opponent=Opponent, round=Round, fight_length_secs=Fight Length Seconds, youtube_link=YouTube Link, result=Fight Result, by=Result By}}
+
{{#get_web_data:url=https://stats.nhrl.io/statsbook/get_fights_for_event.php?event_category_id={{{event_category_id}}}|format=json|match_num=match_num, bot1_name=bot1_name, bot2_name=bot2_name, winning_bot_name=winning_bot_name, losing_bot_name=losing_bot_name, round=Round, fight_length_secs=fight_length_secs, video_link=video_link, result=result}}
 
== {{{class}}} fights==
 
== {{{class}}} fights==
 
Click '''Expand''' to expand any table.
 
Click '''Expand''' to expand any table.
Line 9: Line 9:
 
{| class="wikitable mw-collapsed mw-collapsible"
 
{| class="wikitable mw-collapsed mw-collapsible"
 
! Match Number
 
! Match Number
! Bot
+
! Bot 1
  +
! Bot 2
! Opponent
 
 
! Round
 
! Round
 
! Video {{#for_external_table:<nowiki/>
 
! Video {{#for_external_table:<nowiki/>
 
{{!}}-
 
{{!}}-
 
{{!}} {{{match_num}}}
 
{{!}} {{{match_num}}}
{{!}} [[{{{bot}}}]]
+
{{!}} [[{{{bot1_name}}}]]
{{!}} [[{{{opponent}}}]]
+
{{!}} [[{{{bot2_name}}}]]
 
{{!}} {{{round}}}
 
{{!}} {{{round}}}
{{!}} {{{youtube_link}}} }}
+
{{!}} {{{video_link}}} }}
 
|}
 
|}
   
Line 25: Line 25:
 
{| class="wikitable mw-collapsible mw-collapsed"
 
{| class="wikitable mw-collapsible mw-collapsed"
 
! Match Number
 
! Match Number
! Bot
+
! Winner
  +
! Loser
! Opponent
 
 
! Round
 
! Round
 
! Result
 
! Result
! By
 
 
! Fight Length (s)
 
! Fight Length (s)
 
! Video {{#for_external_table:<nowiki/>
 
! Video {{#for_external_table:<nowiki/>
 
{{!}}-
 
{{!}}-
 
{{!}} {{{match_num}}}
 
{{!}} {{{match_num}}}
{{!}} [[{{{bot}}}]]
+
{{!}} [[{{{winning_bot_name}}}]]
{{!}} [[{{{opponent}}}]]
+
{{!}} [[{{{losing_bot_name}}}]]
 
{{!}} {{{round}}}
 
{{!}} {{{round}}}
 
{{!}} {{{result}}}
 
{{!}} {{{result}}}
{{!}} {{{by}}}
 
 
{{!}} {{{fight_length_secs}}}
 
{{!}} {{{fight_length_secs}}}
{{!}} {{{youtube_link}}} }}
+
{{!}} {{{video_link}}} }}
 
|}
 
|}
   

Revision as of 04:07, 25 July 2022

Error: No "data" parameter specified.
Error: No "data" parameter specified.

{{{class}}} fights

Click Expand to expand any table.

Without spoilers

If a fight has no video link, the likely reason is that the match was forfeited.

Match Number Bot 1 Bot 2 Round Video

With spoilers

Match Number Winner Loser Round Result Fight Length (s) Video