תבנית:פרופיל/סטטיסטיקות/שוער/סהכ ספיגות: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
אין תקציר עריכה
 
(גרסת ביניים אחת של אותו משתמש אינה מוצגת)
שורה 3: שורה 3:
הגדרת משתנים
הגדרת משתנים
-->{{#תנאי: {{{שוער|}}} | {{#vardefine:שוער|{{{שוער|}}} }} | {{#vardefine:שוער| {{PAGENAME}} }} }}<!--
-->{{#תנאי: {{{שוער|}}} | {{#vardefine:שוער|{{{שוער|}}} }} | {{#vardefine:שוער| {{PAGENAME}} }} }}<!--
-->{{#vardefine:SameCompetitions|{{המרות/המרות מפעל/מפעל לרשימת מפעלים מקושרים|מפעל={{{מפעל|}}}| ללא מפעלים מקושרים={{{ללא מפעלים מקושרים|}}} }} }}<!--


שליפת מספר ספיגות
שליפת מספר ספיגות
-->{{#number_format: {{#cargo_query:
-->{{#number_format: {{#cargo_query:
tables= Games_Catalog, Games_Events
tables= Football_Games, Games_Events
|join on= Games_Catalog._pageID = Games_Events._pageID  
|join on= Football_Games._pageID = Games_Events._pageID  
|where= 1 = 1
|where= 1 = 1
AND PlayerName = "{{#var:שוער}}"
AND PlayerName = "{{#var:שוער}}"
AND Team = 1
AND Team = 1
AND EventType IN (1, 5)
AND EventType IN (1, 5)
{{#if: {{{מפעל|}}} | AND Games_Catalog.Competition IN ({{#var:SameCompetitions}}) }}<!-- the "()" around the SameCompetition required for "IN" operator, list is wrapped with () -->
 
{{#if: {{{עונה|}}} |  AND Games_Catalog.Season = "{{{עונה}}}" }}
{{#if: {{{מפעל מקורי|}}}| And Competitions.OriginalName = "{{{מפעל מקורי|}}}" }}
{{#if: {{{מפעל נוכחי|}}}| And Competitions.CurrentName = "{{{מפעל נוכחי|}}}" }}
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| בינלאומי| AND Competitions.International = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| רשמי| AND Competitions.Official = 1 }}
 
{{#if: {{{עונה|}}} |  AND Football_Games.Season = "{{{עונה}}}" }}
|fields=SUM(ResultOpponent)
|fields=SUM(ResultOpponent)
|no html
|no html

גרסה אחרונה מ־18:28, 2 בספטמבר 2022