תבנית:פרופיל/מספר חולצה עיקרי בעונה: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
מ (החלפת טקסט – "Games_Catalog" ב־"Football_Games")
 
שורה 4: שורה 4:


-->{{#cargo_query:
-->{{#cargo_query:
tables = Games_Events, Games_Catalog
tables = Games_Events, Football_Games
|join on = Games_Catalog._pageID = Games_Events._pageID
|join on = Football_Games._pageID = Games_Events._pageID
|where=1=1
|where=1=1
AND Games_Events.PlayerName = "{{{שחקן|}}}"  
AND Games_Events.PlayerName = "{{{שחקן|}}}"  
שורה 11: שורה 11:
AND Games_Events.PlayerNumber > 0
AND Games_Events.PlayerNumber > 0
AND Games_Events.EventType IN (1,5)
AND Games_Events.EventType IN (1,5)
AND Games_Catalog.Season = "{{{עונה|}}}"
AND Football_Games.Season = "{{{עונה|}}}"
|group by = Games_Events.PlayerNumber
|group by = Games_Events.PlayerNumber
|fields = MAX(Games_Events.PlayerNumber)
|fields = MAX(Games_Events.PlayerNumber)

גרסה אחרונה מ־22:02, 1 בספטמבר 2022

הסבר

תבנית זו מחזירה את מספר החולצה העיקרי ששחקן מסוים שיחק איתו עבור העונה הנתונה.

פרמטרים:

  1. עונה
  2. שחקן