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

מתוך ויקיפועל
קפיצה לניווט קפיצה לחיפוש
מ (החזרת מצב קודם)
מאין תקציר עריכה
שורה 18: שורה 18:
{{#ifexpr:{{#len:{{{מיום}}}}} > 0| AND (year>'{{{משנה}}}' OR (year='{{{משנה}}}' AND month>'{{{מחודש}}}') OR          (year='{{{משנה}}}' AND month='{{{מחודש}}}'  AND day>='{{{מיום}}}'))|}}   
{{#ifexpr:{{#len:{{{מיום}}}}} > 0| AND (year>'{{{משנה}}}' OR (year='{{{משנה}}}' AND month>'{{{מחודש}}}') OR          (year='{{{משנה}}}' AND month='{{{מחודש}}}'  AND day>='{{{מיום}}}'))|}}   
{{#ifexpr:{{#len:{{{ליום}}}}} > 0| AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR  (year='{{{לשנה}}}' AND month='{{{לחודש}}}'  AND day<='{{{ליום}}}'))|}}  
{{#ifexpr:{{#len:{{{ליום}}}}} > 0| AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR  (year='{{{לשנה}}}' AND month='{{{לחודש}}}'  AND day<='{{{ליום}}}'))|}}  
{{#ifeq:{{{מפעל}}}|(הכל)||{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' | AND mifal='{{{מפעל}}}'  }} }}
{{#ifeq:{{{מפעל}}}|(הכל)||{{#ifeq:{{{מפעל}}}|ליגה| AND liga='1' | AND mifal={{#replace:{{{מפעל}}}|&#39;|\'}} }} }}
}}{{#cargo_query:
}}{{#cargo_query:
tables=Games
tables=Games

גרסה מ־12:39, 20 בינואר 2023

מפעל מפגשים נצחונות תיקו הפסדים הפרש
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{{\xD7\x9E\xD7\xA4\xD7\xA2\xD7\x9C}}} ORDER BY `\xD7\xAA\xD7\x90\xD7\xA8\xD7\x9' at line 8

Function: CargoSQLQuery::run Query: SELECT `cargo__Games`.`_pageID` AS `cargo_backlink_page_id_Games`,concat(`cargo__Games`.`year`,'-',`cargo__Games`.`month`,'-',`cargo__Games`.`day`) AS `תאריך`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`ona`,'','</div>') AS `עונה`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`mifal`,'','</div>') AS `מפעל`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>',`cargo__Games`.`stage`,'</div>') AS `שלב`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`host`,'','</div>') AS `מארחת`,concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`oponent`,'','</div>') AS `אורחת`,IF(`cargo__Games`.`liga` = '1',concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`awayscore`,':',`cargo__Games`.`homescore`,'','</div>'),concat('<div class=\,`cargo__Games`.`result`,'cell\'>','',`cargo__Games`.`awayscore`,':',`cargo__Games`.`homescore`,'','</div>')) AS `תוצאה` FROM `cargo__Games` WHERE liga IS NOT NULL AND department='{{{מחלקה}}}' AND result='{{{תוצאה}}}' AND homegame='{{{ביתיות}}}' AND (`cargo__Games`.`host`= OR `cargo__Games`.`oponent`=) AND (year>'{{{משנה}}}' OR (year='{{{משנה}}}' AND month>'{{{מחודש}}}') OR (year='{{{משנה}}}' AND month='{{{מחודש}}}' AND day>='{{{מיום}}}')) AND (year<'{{{לשנה}}}' OR (year='{{{לשנה}}}' AND month<'{{{לחודש}}}') OR (year='{{{לשנה}}}' AND month='{{{לחודש}}}' AND day<='{{{ליום}}}')) AND mifal={{{מפעל}}} ORDER BY `תאריך` DESC LIMIT 100