תבנית:תצוגת פרטי משחק: הבדלים בין גרסאות בדף
מתוך מכביפדיה
(Adapt to the new way of storing the opponents)
מ (החלפת טקסט – "Games_Catalog" ב־"Football_Games")
שורה 3: שורה 3:
שליפה
שליפה
-->{{#cargo_query:
-->{{#cargo_query:
tables=Games_Catalog, Games_Results, Opponents
tables=Football_Games, Games_Results, Opponents
|join on=Games_Catalog.Opponent = Opponents.CanonicalName,
|join on=Football_Games.Opponent = Opponents.CanonicalName,
         Games_Catalog.ResultOpt = Games_Results.ResultType
         Football_Games.ResultOpt = Games_Results.ResultType
|where=1=1
|where=1=1
And Games_Catalog._pageID = {{{1|}}}
And Football_Games._pageID = {{{1|}}}
|fields = CONCAT( <!--
|fields = CONCAT( <!--
   -->{{#if: {{{2|}}}| {{{2|}}} , ' - ', }} <!-- אם ישנו פרמטר ספירה (המשחק הפורה ביותר), הצגה שלו
   -->{{#if: {{{2|}}}| {{{2|}}} , ' - ', }} <!-- אם ישנו פרמטר ספירה (המשחק הפורה ביותר), הצגה שלו
   --> '[[', Games_Catalog._pageName, '|', <!-- קישור לעמוד המשחק
   --> '[[', Football_Games._pageName, '|', <!-- קישור לעמוד המשחק
   --> Games_Catalog.Date, <!-- טיפול בתאריך המשחק
   --> Football_Games.Date, <!-- טיפול בתאריך המשחק
   --> ': ', Games_Results.ResultString, ' (', Games_Catalog.ResultMaccabi, ':', Games_Catalog.ResultOpponent, ')', <!-- תוצאה
   --> ': ', Games_Results.ResultString, ' (', Football_Games.ResultMaccabi, ':', Football_Games.ResultOpponent, ')', <!-- תוצאה
   --> ' נגד ', Opponents.OriginalName, ']]' ) <!-- יריבה
   --> ' נגד ', Opponents.OriginalName, ']]' ) <!-- יריבה
--> }}
--> }}

גרסה מ־23:03, 1 בספטמבר 2022

תבנית זו אחראית על הצגת פרטי משחק בצורה מינימלית (מקבלת את מספר העמוד)