ארגז חול: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
אין תקציר עריכה
 
(גרסת ביניים אחת של אותו משתמש אינה מוצגת)
שורה 1: שורה 1:
{{#vardefine:whereclause|
{{#vardefine:whereclause|department='כדורסל' AND ona='2023/24' AND homegame='1'}}
liga='0' AND department='כדורסל' and mifal<>'גביע המדינה'  and mifal<>'משחק אימון'
 
}}
}}{{#cargo_query:
<table border="1" cellpadding="2" cellspacing="0" width="90%" align="center">
tables=Games
<tr style="background:#FF0000;"><td>תאריך</td><td>מפעל</td><td>שלב</td><td>מארחת</td><td>אורחת</td>
|fields=STR_TO_DATE(CONCAT(Games.year,'-',Games.month, '-', Games.day), '%Y-%m-%d')=תאריך,
<td>תוצאה</td><td>הערות</td></tr>
concat('<div class=\'',Games.result,'cell\'>','[[',Games.stadium,']]','</div>')=אצטדיון,
{{#cargo_query:
concat('<div class=\'',Games.result,'cell\'>','[[',Games.mifal,']]','</div>')=מפעל,
tables=Games|fields=day,month,year,stage,host,oponent,homescore,awayscore,ona,department,mifal,shootout,comments,department
concat('<div class=\'',Games.result,'cell\'>',Games.stage,'</div>')=שלב,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.host,']]','</div>')=מארחת,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.oponent,']]','</div>')=אורחת,
IF(Games.liga = '1',concat('<div class=\'',Games.result,'cell\'>','[[עונת  ',Games.ona,' (',Games.department,') ',Games.stage,'|',Games.awayscore,':',Games.homescore,']]','</div>'),concat('<div class=\'',Games.result,'cell\'>','[[עונת  ',Games.ona,' (',Games.department,') ',Games.mifal,' ',Games.stage,'|',Games.awayscore,':',Games.homescore,']]','</div>'))=תוצאה,
|where={{#var:whereclause}}
|where={{#var:whereclause}}
|format=template
|format=dynamic table
|template=שורת טבלת משחקים פשוטה
|order by={{#ifeq:{{{סדר}}}|הפרש| ABS(Games.homescore-Games.awayscore) DESC|תאריך DESC}}
|more results text=עוד
|default=
|named args=yes
|rows per page=100
|order by=year DESC,month DESC,day DESC
|limit=500
}}
}}
</table>