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


-->{{#cargo_query:
-->{{#cargo_query:
tables=Football_Games, Games_Events
tables=Football_Games, Games_Events, Competitions
|join on=Football_Games._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 Football_Games.Competition IN ({{#var:SameCompetitions}}) }}
 
{{#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 }}
 
|fields={{#if: {{{שלוף לספירה|}}}| Football_Games.Season| CONCAT('[[', Football_Games.Season, ']]') }}
|fields={{#if: {{{שלוף לספירה|}}}| Football_Games.Season| CONCAT('[[', Football_Games.Season, ']]') }}
|group by=Football_Games.Season
|group by=Football_Games.Season

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

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

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