תבנית:סטטיסטיקה/שליפות/מתקדמות/מספרים עונתיים: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
(Count own goals from our opponents)
 
(8 גרסאות ביניים של אותו משתמש אינן מוצגות)
שורה 2: שורה 2:


-->{{#cargo_query:
-->{{#cargo_query:
tables=Football_Games, Games_Events,
tables=Football_Games, Competitions
|join on=Football_Games._pageID=Games_Events._pageID,
|join on=Football_Games.Competition=Competitions.OriginalName
|where=1=1
|where=1=1
AND Team=1
AND Football_Games.Season="{{{עונה}}}"
AND Games_Events.EventType IN (1, 3, 4, 5, 7)
 
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
שורה 14: שורה 12:


|fields=
|fields=
     SUM(CASE when Games_Events.EventType=3 AND Games_Events.SubType!=33 then 1 else 0 end)=Goals,
     SUM(CASE when Football_Games.ResultOpt > -1000 then 1 else 0 end)=TotalGames,
     SUM(CASE when Games_Events.EventType=4 then 1 else 0 end)=Assists,
     SUM(CASE when Football_Games.ResultOpt=1 then 1 else 0 end)=Wins,
     SUM(CASE when Games_Events.SubType=71 then 1 else 0 end)=YellowCards,
     SUM(CASE when Football_Games.ResultOpt=2 then 1 else 0 end)=Ties,
     SUM(CASE when Games_Events.SubType IN (72,73) then 1 else 0 end)=RedCards
     SUM(CASE when Football_Games.ResultOpt=3 then 1 else 0 end)=Losses,
     SUM(CASE when Games_Events.EventType=5 then 1 else 0 end)=Substitutions,
     SUM(CASE when Football_Games.Technical IN (1, 2) then 1 else 0 end)=Technical,
     SUM(CASE when Games_Events.SubType=35 then 1 else 0 end)=GoalsPenalties,
     SUM(CASE when Football_Games.Penalties IN (1, 2) then 1 else 0 end)=Penalties,
|format=template
|format=template
|template=עונה/הצגת סיכום אירועי שחקנים
|template=עונה/הצגת סיכום משחקים
|named args=yes
|named args=yes
}}<--
}}<!--
 
-->{{ש}}<!--


-->{{#cargo_query:
-->{{#cargo_query:
tables=Football_Games
tables=Football_Games, Games_Events, Competitions
|join on=Football_Games._pageID=Games_Events._pageID,
Football_Games.Competition=Competitions.OriginalName
|where=1=1
|where=1=1
AND Games_Events.EventType IN (1, 3, 4, 5, 7)
AND Football_Games.Season="{{{עונה}}}"
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
שורה 34: שורה 39:


|fields=
|fields=
     SUM(CASE when Football_Games.ResultOpt > -1000 then 1 else 0 end)=TotalGames,
     SUM(CASE when Games_Events.EventType=3 AND Games_Events.SubType!=33 AND Team=1 then 1 else 0 end)+SUM(CASE when Games_Events.SubType=33 AND Team=0 then 1 else 0 end)=Goals,
     SUM(CASE when Football_Games.Technical != 0 then 1 else 0 end)=Technical,
     SUM(CASE when Games_Events.EventType=4 AND Team=1 then 1 else 0 end)=Assists,
     SUM(CASE when Football_Games.Penalties != 0 then 1 else 0 end)=Penalties,
     SUM(CASE when Games_Events.SubType=71 AND Team=1 then 1 else 0 end)=YellowCards,
     SUM(CASE when Football_Games.ResultOpt=1 then 1 else 0 end)=Wins,
     SUM(CASE when Games_Events.SubType IN (72,73) AND Team=1 then 1 else 0 end)=RedCards,
     SUM(CASE when Football_Games.ResultOpt=2 then 1 else 0 end)=Ties,
     SUM(CASE when Games_Events.EventType=5 AND Team=1 then 1 else 0 end)=Substitutions,
     SUM(CASE when Football_Games.ResultOpt=3 then 1 else 0 end)=Losses,
     SUM(CASE when Games_Events.SubType=35 AND Team=1 then 1 else 0 end)=GoalsPenalties,
|format=template
|format=template
|template=עונה/הצגת סיכום משחקים
|template=עונה/הצגת סיכום אירועי שחקנים
|named args=yes
|named args=yes
}}</includeonly><noinclude>
}}</includeonly><noinclude>

גרסה אחרונה מ־20:25, 9 בספטמבר 2023

תבנית זו אחראית להציג את המספרים העונתיים (סך השערים, הכרטיסים, הנצחונות ועוד) עבור עונה מסוימת.

פרמטרים:

  • עונה - למשל "2020/21"
  • קטגוריית מפעל - למשל "ליגה"