תבנית:סטטיסטיקה/שליפות/מתקדמות/עונות שבהן שיחק שחקן: הבדלים בין גרסאות בדף
מתוך מכביפדיה
אין תקציר עריכה
מ (החלפת טקסט – "Games_Catalog" ב־"Football_Games")
שורה 4: שורה 4:


-->{{#cargo_query:
-->{{#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 Games_Events.PlayerName= "{{{שחקן|}}}"
AND Games_Events.PlayerName= "{{{שחקן|}}}"
AND Games_Events.Team = 1
AND Games_Events.Team = 1
{{#if: {{{מפעל|}}}| AND Games_Catalog.Competition IN ({{#var:SameCompetitions}}) }}
{{#if: {{{מפעל|}}}| AND Football_Games.Competition IN ({{#var:SameCompetitions}}) }}
|fields={{#if: {{{שלוף לספירה|}}}| Games_Catalog.Season| CONCAT('[[', Games_Catalog.Season, ']]') }}
|fields={{#if: {{{שלוף לספירה|}}}| Football_Games.Season| CONCAT('[[', Football_Games.Season, ']]') }}
|group by=Games_Catalog.Season
|group by=Football_Games.Season
|{{#if: {{{שלוף לספירה|}}}| no html| }}
|{{#if: {{{שלוף לספירה|}}}| no html| }}
}}<!--
}}<!--

גרסה מ־22:01, 1 בספטמבר 2022

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

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