תבנית:שליפת טבלת משחקים שאלתא: הבדלים בין גרסאות בדף

מתוך ויקיפועל
קפיצה לניווט קפיצה לחיפוש
אין תקציר עריכה
אין תקציר עריכה
שורה 7: שורה 7:
{{#ifeq:{{{יריבה}}}|(הכל)|| AND (Games.host='{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}' OR Games.oponent='{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}')|}}  
{{#ifeq:{{{יריבה}}}|(הכל)|| AND (Games.host='{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}' OR Games.oponent='{{החלפת שם יריב שאילתא|יריבה={{{יריבה|}}}}}')|}}  
{{#if: {{{StartDate|}}} | AND STR_TO_DATE(CONCAT(Games.year,'-',Games.month, '-', Games.day), '%Y-%m-%d') >= "{{{StartDate}}}" }}
{{#if: {{{StartDate|}}} | AND STR_TO_DATE(CONCAT(Games.year,'-',Games.month, '-', Games.day), '%Y-%m-%d') >= "{{{StartDate}}}" }}
{{#if: {{{EndDate|}}} | AND  STR_TO_DATE(CONCAT(Games.year,'-',Games.month, '-', Games.day), '%Y-%m-%d') <= "{{{EndDate}}}" }}
{{#if: {{{EndDate|}}} | AND  CONCAT(Games.year,'-',Games.month, '-', Games.day) <= "{{{EndDate}}}" }}




שורה 13: שורה 13:
}}{{#cargo_query:
}}{{#cargo_query:
tables=Games
tables=Games
|fields=STR_TO_DATE(CONCAT(Games.year,'-',Games.month, '-', Games.day), '%Y-%m-%d')=תאריך,
|fields=CONCAT(Games.year,'-',Games.month, '-', Games.day)=תאריך,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.ona,']]','</div>')=עונה,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.ona,']]','</div>')=עונה,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.mifal,']]','</div>')=מפעל,
concat('<div class=\'',Games.result,'cell\'>','[[',Games.mifal,']]','</div>')=מפעל,

גרסה מ־10:41, 7 באוקטובר 2023