תבנית:פרופיל/מספר חולצה עיקרי בעונה: הבדלים בין גרסאות בדף
מתוך מכביפדיה
(יצירת דף עם התוכן "<includeonly><!-- We will select all the events which are lineup or sub-in (which means once per game) and get the number with most occurrences -->{{#cargo_q...")
 
מ (החלפת טקסט – "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)
שורה 26: שורה 26:
# עונה
# עונה
# שחקן
# שחקן
 
}}
[[קטגוריה:תבניות עזר לתבנית פרופיל]]<!--
[[קטגוריה:תבניות עזר לתבנית פרופיל]]<!--
--></noinclude>
--></noinclude>

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

הסבר

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

פרמטרים:

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