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


-->{{#cargo_query:
-->{{#cargo_query:
tables=Games_Catalog, Games_Events
tables=Football_Games, Games_Events, Competitions
|join on=Games_Catalog._pageID=Games_Events._pageID
|join on=Football_Games._pageID=Games_Events._pageID,
Football_Games.Competition=Competitions.OriginalName
|where=1=1
|where=1=1
AND Games_Events.PlayerName= "{{{שחקן|}}}"
AND Games_Events.PlayerName= "{{{שחקן|}}}"
AND Games_Events.Team = 1
AND Games_Events.Team = 1
{{#if: {{{מפעל|}}}| AND Competitions_Catalog.CompID IN ({{#var:SameCompetitions}}) }}
 
|fields={{#if: {{{שלוף לספירה|}}}| Games_Catalog.Season| CONCAT('[[', Games_Catalog.Season, ']]') }}
{{#if: {{{מפעל מקורי|}}}| And Competitions.OriginalName = "{{{מפעל מקורי|}}}" }}
|group by=Games_Catalog.Season
{{#if: {{{מפעל נוכחי|}}}| And Competitions.CurrentName = "{{{מפעל נוכחי|}}}" }}
{{#ifeq: {{{קטגוריית מפעל|}}}| ליגה| AND Competitions.League = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| גביע| AND Competitions.Trophy = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| בינלאומי| AND Competitions.International = 1 }}
{{#ifeq: {{{קטגוריית מפעל|}}}| רשמי| AND Competitions.Official = 1 }}
 
|fields={{#if: {{{שלוף לספירה|}}}| Football_Games.Season| CONCAT('[[', Football_Games.Season, ']]') }}
|group by=Football_Games.Season
|{{#if: {{{שלוף לספירה|}}}| no html| }}
|{{#if: {{{שלוף לספירה|}}}| no html| }}
}}<!--
}}<!--

גרסה אחרונה מ־12:13, 3 בספטמבר 2022

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

פרמטרים:
שלוף לספירה="כן" (השאר ריק אחרת, לא לשלוח "לא") ישלח אם נרצה להיות מסוגלים לספור את מספר העונות (לא יוחזר קוד עם html) שיאפשר להשתמש בתבנית:סטטיסטיקה/שליפות/כמות רשומות
שחקן=שם השחקן שלגביו נרצה לברר באילו עונות שיחק.