23,844
עריכות
אין תקציר עריכה |
אין תקציר עריכה |
||
שורה 1: | שורה 1: | ||
<noinclude> | |||
{{#vardefine:fromday|'{{{מיום}}}'}} | {{#vardefine:fromday|'{{{מיום}}}'}} | ||
{{#vardefine:frommonth|'{{{מחודש}}}'}} | |||
{{#vardefine:fromyear|'{{{משנה}}}'}} | |||
{{#vardefine:today|'{{{ליום}}}'}} | |||
{{#vardefine:tomonth|'{{{לחודש}}}'}} | |||
{{#vardefine:toyear|'{{{לשנה}}}'}} | |||
{{#vardefine:oponent|{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}}} | {{#vardefine:oponent|{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}}} | ||
{{#vardefine:whereclause| | {{#vardefine:whereclause| | ||
שורה 11: | שורה 17: | ||
{{#ifeq:{{{מפעל}}}|(הכל)| AND liga='{{{ליגה}}}' {{#ifeq:{{{ליגה}}}|1|GROUP BY liga|GROUP BY MIFAL}}|{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' GROUP BY liga | AND mifal='{{{מפעל}}}' GROUP BY mifal }} }} | {{#ifeq:{{{מפעל}}}|(הכל)| AND liga='{{{ליגה}}}' {{#ifeq:{{{ליגה}}}|1|GROUP BY liga|GROUP BY MIFAL}}|{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' GROUP BY liga | AND mifal='{{{מפעל}}}' GROUP BY mifal }} }} | ||
}} | }} | ||
</noinclude> | |||
{{#cargo_query: | {{#cargo_query: | ||
tables=Games | tables=Games | ||
|fields=CONCAT(case liga when '1' then 'ליגה' else mifal end),COUNT(*),SUM(case result when '1' then 1 else 0 end),SUM(case result when 'x' then 1 else 0 end),SUM(case result when '0' then 1 else 0 end),SUM(case host when 'הפועל ת"א' then homescore else 0 end)+SUM(case oponent when 'הפועל ת"א' then awayscore else 0 end),SUM(case host when 'הפועל ת"א' then awayscore else 0 end)+SUM(case oponent when 'הפועל ת"א' then homescore else 0 end),department,{{#var:fromday}}=fromday, | |fields=CONCAT(case liga when '1' then 'ליגה' else mifal end),COUNT(*),SUM(case result when '1' then 1 else 0 end),SUM(case result when 'x' then 1 else 0 end),SUM(case result when '0' then 1 else 0 end),SUM(case host when 'הפועל ת"א' then homescore else 0 end)+SUM(case oponent when 'הפועל ת"א' then awayscore else 0 end),SUM(case host when 'הפועל ת"א' then awayscore else 0 end)+SUM(case oponent when 'הפועל ת"א' then homescore else 0 end),department,{{#var:fromday}}=fromday,{{#var:frommonth}}=frommonth,{{#var:froyear}}=fromyear,{{#var:today}}=today,{{#var:tomonth}}=tomonth,{{#var:toyear}}=toyear,{{#var:oponent}}=against | ||
|where={{#var:whereclause}} | |where={{#var:whereclause}} | ||
|format=template | |format=template |
עריכות