
אין תקציר עריכה |
אין תקציר עריכה |
||
(41 גרסאות ביניים של אותו משתמש אינן מוצגות) | |||
שורה 5: | שורה 5: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Define local parameters: | Define local parameters: | ||
-->{{#vardefine: SameStadiums|{{המרות/המרות אצטדיון/אצטדיון לרשימת אצטדיונים מקושרים| אצטדיון={{{Stadium|}}} }} }}<!-- | -->{{#vardefine: SameStadiums|{{המרות/המרות אצטדיון/אצטדיון לרשימת אצטדיונים מקושרים| אצטדיון={{{Stadium|}}} }} }}<!-- | ||
-->{{#vardefine: SameOpponents|{{המרות/המרות יריבה/יריבה לרשימת יריבות מקושרות| יריבה={{{Opponent|}}} }} }}<!-- | -->{{#vardefine: SameOpponents|{{המרות/המרות יריבה/יריבה לרשימת יריבות מקושרות| יריבה={{{Opponent|}}} }} }}<!-- | ||
שורה 11: | שורה 10: | ||
-->{{#vardefine: GoalsForOpponentOperator| {{#בחר:{{{OpponentGoalsAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | -->{{#vardefine: GoalsForOpponentOperator| {{#בחר:{{{OpponentGoalsAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsDiffForMaccabiOperator| {{#בחר:{{{MaccabiGoalsDifferentAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | -->{{#vardefine: GoalsDiffForMaccabiOperator| {{#בחר:{{{MaccabiGoalsDifferentAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsDiffForOpponentOperator| {{#בחר:{{{OpponentGoalsDifferentAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | |||
-->{{#vardefine: PlayerEvent|{{המרות/תיאור אירוע לשליפת משחקים למספר אירוע| אירוע={{{PlayerAction|}}} }} }}<!-- | -->{{#vardefine: PlayerEvent|{{המרות/תיאור אירוע לשליפת משחקים למספר אירוע| אירוע={{{PlayerAction|}}} }} }}<!-- | ||
-->{{#vardefine: PlayerSubEvent|{{תבנית: המרות/תיאור תת אירוע למספר תת אירוע| תת אירוע={{{PlayerSubAction|}}} }} }}<!-- | -->{{#vardefine: PlayerSubEvent|{{תבנית: המרות/תיאור תת אירוע למספר תת אירוע| תת אירוע={{{PlayerSubAction|}}} }} }}<!-- | ||
-->{{#vardefine: PlayerEvent2|{{המרות/תיאור אירוע לשליפת משחקים למספר אירוע| אירוע={{{PlayerAction2|}}} }} }}<!-- | -->{{#vardefine: PlayerEvent2|{{המרות/תיאור אירוע לשליפת משחקים למספר אירוע| אירוע={{{PlayerAction2|}}} }} }}<!-- | ||
-->{{#vardefine: PlayerSubEvent2|{{תבנית: המרות/תיאור תת אירוע למספר תת אירוע| תת אירוע={{{PlayerSubAction2|}}} }} }}<!-- | -->{{#vardefine: PlayerSubEvent2|{{תבנית: המרות/תיאור תת אירוע למספר תת אירוע| תת אירוע={{{PlayerSubAction2|}}} }} }}<!-- | ||
-->{{#vardefine: Player1Defined| {{{Player|}}}{{{PlayerNumber|}}}{{{PlayerAction|}}}{{{PlayerActionMinute|}}}{{{PlayerSubAction|}}}{{{PlayerSubActionMinute|}}}{{{PlayerPosition|}}} }}<!-- | |||
-->{{#vardefine: Player2Defined| {{{Player2|}}}{{{PlayerNumber2|}}}{{{PlayerAction2|}}}{{{PlayerActionMinute2|}}}{{{PlayerSubAction2|}}}{{{PlayerSubActionMinute2|}}}{{{PlayerPosition2|}}} }}<!-- | |||
We use the hacky way of concating all player related params in order to "turn on" the check for Team=1, | We use the hacky way of concating all player related params in order to "turn on" the check for Team=1, | ||
There are some games without any maccabi players, we | There are some games without any maccabi players, we don't want to avoid querying them if we can avoid it (means we search for the game data and not players data). | ||
Moreover, It seems that writing "Profiles.Position HOLDS Players_Positions.PositionType" on the join clause is doing right join and therefore disable the ability to query games without players, so we have to follow the plain SQL way to do it: https://www.mediawiki.org/wiki/Extension:Cargo/Querying_data#The_"HOLDS"_command | |||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables= | tables=Football_Games, Competitions, Games_Results, Games_Events, Games_Events=Events2, Days_In_Week, Games_Videos, Football_Games_Uniforms, Opponents, Profiles, Profiles__Position, Players_Positions | ||
|join on= | |join on=Football_Games.Competition = Competitions.OriginalName | ||
, | ,Football_Games.ResultOpt = Games_Results.ResultType | ||
, | ,Football_Games._pageID = Games_Events._pageID | ||
, | ,Football_Games.MatchDay = Days_In_Week.DayNumber | ||
, | ,Football_Games._pageID = Games_Videos._pageID | ||
,Games_Events._pageID = Events2._pageID | ,Games_Events._pageID = Events2._pageID | ||
, | ,Football_Games._pageID = Football_Games_Uniforms._pageID | ||
, | ,Football_Games.Opponent = Opponents.CanonicalName | ||
,Games_Events.PlayerName = Profiles._pageName | ,Games_Events.PlayerName = Profiles._pageName | ||
,Profiles. | ,Profiles._ID=Profiles__Position._rowID | ||
,Profiles__Position._value = Players_Positions.PositionType | |||
|where=1=1 | |where=1=1 | ||
{{#if: {{{ | |||
{{#if: {{{Stadium|}}} | AND | {{#if: {{{SpecificCompetition|}}} | AND Competitions.OriginalName = "{{{SpecificCompetition}}}" }} | ||
{{#if: {{{Opponent|}}} | AND | {{#ifeq: {{{CompetitionCategory|}}} | ליגה| AND Competitions.League=1 }} | ||
{{#ifeq: {{{CompetitionCategory|}}} | גביע| AND Competitions.Trophy=1 }} | |||
{{#ifeq: {{{CompetitionCategory|}}} | בינלאומי| AND Competitions.International=1 }} | |||
{{#ifeq: {{{CompetitionCategory|}}} | רשמי| AND Competitions.Official=1 }} | |||
{{#ifeq: {{{CompetitionCategory|}}} | לא רשמי| AND Competitions.Official=0 }} | |||
{{#if: {{{Stadium|}}} | AND Football_Games.Stadium IN ({{#var: SameStadiums}}) }}<!-- the "()" around the SameStadiums required for "IN" operator --> | |||
{{#if: {{{Opponent|}}} | AND Football_Games.Opponent IN ({{#var: SameOpponents}}) }}<!-- the "()" around the SameOpponents required for "IN" operator --> | |||
{{#if: {{{OpponentCountry|}}} | AND Opponents.Country ="{{{OpponentCountry}}}" }} | {{#if: {{{OpponentCountry|}}} | AND Opponents.Country ="{{{OpponentCountry}}}" }} | ||
{{#if: {{{Coach|}}} | AND | {{#if: {{{Coach|}}} | AND Football_Games.CoachMaccabi="{{{Coach}}}" }} | ||
{{#if: {{{CoachOpponent|}}} | AND | {{#if: {{{CoachOpponent|}}} | AND Football_Games.CoachOpponent="{{{CoachOpponent}}}" }} | ||
{{#if: {{{Season|}}} | AND | {{#if: {{{Season|}}} | AND Football_Games.Season = "{{{Season}}}" }} | ||
{{#if: {{{HomeAway|}}} | AND | {{#if: {{{HomeAway|}}} | AND Football_Games.HomeAway = "{{{HomeAway}}}" }} | ||
{{#if: {{{Leg|}}} | {{#ifeq: {{{SimilarLegs|}}}| כן| AND | {{#if: {{{Leg|}}} | {{#ifeq: {{{SimilarLegs|}}}| כן| AND Football_Games.Leg LIKE "%{{{Leg}}}%" | AND Football_Games.Leg = "{{{Leg}}}" }} }} | ||
{{#if: {{{Referee|}}} | AND | {{#if: {{{Referee|}}} | AND Football_Games.Refs = "{{{Referee}}}" }} | ||
{{#if: {{{MaccabiGoals|}}} | AND | {{#if: {{{MaccabiGoals|}}} | AND Football_Games.ResultMaccabi {{#var: GoalsForMaccabiOperator}} {{{MaccabiGoals}}} }} | ||
{{#if: {{{MaccabiGoalsDifferent|}}} | AND | {{#if: {{{MaccabiGoalsDifferent|}}} | AND Football_Games.ResultMaccabi - Football_Games.ResultOpponent {{#var: GoalsDiffForMaccabiOperator}} {{{MaccabiGoalsDifferent}}} }} | ||
{{#if: {{{OpponentGoals|}}} | AND | {{#if: {{{OpponentGoals|}}} | AND Football_Games.ResultOpponent {{#var: GoalsForOpponentOperator}} {{{OpponentGoals}}} }} | ||
{{#if: {{{OpponentGoalsDifferent|}}} | AND Football_Games.ResultOpponent - Football_Games.ResultMaccabi {{#var: GoalsDiffForOpponentOperator}} {{{OpponentGoalsDifferent}}} }} | |||
{{#if: {{{GameResult|}}} | AND Games_Results.ResultString = "{{{GameResult}}}" }} | {{#if: {{{GameResult|}}} | AND Games_Results.ResultString = "{{{GameResult}}}" }} | ||
{{#if: {{{Uniforms|}}} | AND Football_Games_Uniforms.KitName = "{{{Uniforms}}}" }} | {{#if: {{{Uniforms|}}} | AND Football_Games_Uniforms.KitName = "{{{Uniforms}}}" }} | ||
{{#if: {{{GameDayInWeek|}}} | AND DATE_FORMAT( | {{#if: {{{GameDayInWeek|}}} | AND DATE_FORMAT(Football_Games.Date, '%w') + 1 = {{{GameDayInWeek}}} }} | ||
{{#if: {{{StartDate|}}} | AND Football_Games.Date >= "{{{StartDate}}}" }} | |||
{{#if: {{{EndDate|}}} | AND Football_Games.Date <= "{{{EndDate}}}" }} | |||
{{#if: {{#var: Player1Defined}}| And Games_Events.Team = 1}} | |||
{{#if: {{{Player|}}} | AND Games_Events.PlayerName= "{{{Player}}}" }} | {{#if: {{{Player|}}} | AND Games_Events.PlayerName = "{{{Player}}}" }} | ||
{{#if: {{{PlayerNumber|}}} | AND Games_Events.PlayerNumber= {{{PlayerNumber}}} }} | {{#if: {{{PlayerNumber|}}} | AND Games_Events.PlayerNumber = {{{PlayerNumber}}} }} | ||
{{#if: {{{PlayerAction|}}} | AND Games_Events.EventType IN ({{#var: PlayerEvent}}) }} | {{#if: {{{PlayerAction|}}} | AND Games_Events.EventType IN ({{#var: PlayerEvent}}) }} | ||
{{#if: {{{PlayerActionMinute|}}} | AND Games_Events.Minute = {{{PlayerActionMinute}}} }} | {{#if: {{{PlayerActionMinute|}}} | AND Games_Events.Minute = {{{PlayerActionMinute}}} }} | ||
שורה 62: | שורה 76: | ||
{{#if: {{{PlayerSubActionMinute|}}} | AND Games_Events.Minute = {{{PlayerSubActionMinute}}} }} | {{#if: {{{PlayerSubActionMinute|}}} | AND Games_Events.Minute = {{{PlayerSubActionMinute}}} }} | ||
{{#if: {{{PlayerPosition|}}} | AND Players_Positions.PositionString= "{{{PlayerPosition}}}" }} | {{#if: {{{PlayerPosition|}}} | AND Players_Positions.PositionString= "{{{PlayerPosition}}}" }} | ||
{{#if: {{{Player2|}}} | AND Events2.PlayerName= "{{{Player2}}}" }} | |||
{{#if: {{{PlayerNumber2|}}} | AND Events2.PlayerNumber= {{{PlayerNumber2}}} }} | |||
{{#if: {{#var: Player2Defined}}| And Events2.Team = 1}} | |||
{{#if: {{{Player2|}}} | AND Events2.PlayerName = "{{{Player2}}}" }} | |||
{{#if: {{{PlayerNumber2|}}} | AND Events2.PlayerNumber = {{{PlayerNumber2}}} }} | |||
{{#if: {{{PlayerAction2|}}} | AND Events2.EventType IN ({{#var: PlayerEvent2}}) }} | {{#if: {{{PlayerAction2|}}} | AND Events2.EventType IN ({{#var: PlayerEvent2}}) }} | ||
{{#if: {{{PlayerActionMinute2|}}} | AND Events2.Minute = {{{PlayerActionMinute2}}} }} | {{#if: {{{PlayerActionMinute2|}}} | AND Events2.Minute = {{{PlayerActionMinute2}}} }} | ||
{{#if: {{{PlayerSubAction2|}}} | AND Events2.SubType IN ({{#var: PlayerSubEvent2}}) }} | {{#if: {{{PlayerSubAction2|}}} | AND Events2.SubType IN ({{#var: PlayerSubEvent2}}) }} | ||
{{#if: {{{PlayerSubActionMinute2|}}} | AND Events2.Minute = {{{PlayerSubActionMinute2}}} }} | {{#if: {{{PlayerSubActionMinute2|}}} | AND Events2.Minute = {{{PlayerSubActionMinute2}}} }} | ||
{{#if: {{{PlayerPosition2|}}} | AND Players_Positions.PositionString= "{{{PlayerPosition2}}}" }} | {{#if: {{{PlayerPosition2|}}} | AND Players_Positions.PositionString = "{{{PlayerPosition2}}}" }} | ||
{{#if: {{#var: Player2Defined}}{{#var: Player1Defined}} | |||
|{{#ifeq: {{{PlayersEventsInSameMinute|}}}| כן| AND Events2.Minute = Games_Events.Minute| AND Events2.Minute != Games_Events.Minute }} | |||
}} | |||
{{#ifeq: {{{FullGame|}}}| רק משחקים עם משחק מלא| AND Games_Videos.FullGame IS NOT NULL}} | {{#ifeq: {{{FullGame|}}}| רק משחקים עם משחק מלא| AND Games_Videos.FullGame IS NOT NULL}} | ||
{{#ifeq: {{{Highlights|}}}| רק משחקים עם תקציר| AND Games_Videos.Highlights IS NOT NULL}} | {{#ifeq: {{{Highlights|}}}| רק משחקים עם תקציר| AND Games_Videos.Highlights IS NOT NULL}} | ||
{{#ifeq: {{{UniformsTag|}}}| משחקים עם תיוג מדים| AND Football_Games_Uniforms.KitName IS NOT NULL}} | {{#ifeq: {{{UniformsTag|}}}| משחקים עם תיוג מדים| AND Football_Games_Uniforms.KitName IS NOT NULL}} | ||
שורה 85: | שורה 99: | ||
Fields to display: | Fields to display: | ||
-->|fields=CONCAT('[[', | -->|fields=CONCAT('[[', Football_Games._pageName, '|המשחק]]')=המשחק | ||
, | ,Football_Games.Date=תאריך | ||
,CONCAT('[[עונת ', | ,CONCAT('[[עונת ', Football_Games.Season, ']]')=עונה | ||
,CONCAT('[[', | ,CONCAT('[[', Competitions._pageName, '|', Competitions.OriginalName, ']]')=מפעל | ||
, | ,Football_Games.Leg=שלב במפעל | ||
,CONCAT('[[', | ,CONCAT('[[', Opponents.OriginalName, ']]')=יריבה | ||
, | ,Football_Games.HomeAway=בית או חוץ | ||
,CONCAT('[[', | ,CONCAT('[[', Football_Games.Stadium, ']]')=אצטדיון | ||
, | ,Football_Games.ResultMaccabi=תוצאה למכבי | ||
, | ,Football_Games.ResultOpponent=תוצאה ליריבה | ||
,Games_Results.ResultString=תוצאת משחק <!-- Cast number to string from games results table --> | ,Games_Results.ResultString=תוצאת משחק <!-- Cast number to string from games results table --> | ||
,CONCAT('[[', | ,CONCAT('[[', Football_Games.CoachMaccabi, ']]')=מאמן מכבי | ||
, | ,Football_Games.CoachOpponent=מאמן יריבה | ||
,CONCAT('[[ | ,CONCAT('[[כדורגל:', Football_Games.Refs, ' (שופט)|', Football_Games.Refs, ']]')=שופט | ||
,Crowd=קהל | ,Crowd=קהל | ||
,CONCAT('[', Games_Videos.FullGame, ' לינק]')=משחק מלא | ,CONCAT('[', Games_Videos.FullGame, ' לינק]')=משחק מלא | ||
,CONCAT('[', Games_Videos.Highlights, ' לינק]')=תקציר | ,CONCAT('[', Games_Videos.Highlights, ' לינק]')=תקציר | ||
,CONCAT('[[', 'מדי עונת ', Football_Games_Uniforms.Season, '|', Football_Games_Uniforms.KitName, ']]' )=מדים, | ,CONCAT('[[', 'מדי עונת ', Football_Games_Uniforms.Season, '|', Football_Games_Uniforms.KitName, ']]' )=מדים | ||
,Opponents.Country=מדינה | |||
{{#if: {{#var: Player1Defined}} | ,Games_Events.PlayerName=1שחקן, Games_Events.PlayerNumber=1מספר, Games_Events.Minute=דקה1 }} | |||
{{#if: {{#var: Player2Defined}} | ,Events2.PlayerName=2שחקן, Events2.PlayerNumber=2מספר, Events2.Minute=דקה2 }} | |||
|limit=5000 | |limit=5000 | ||
|format=dynamic table | |format=dynamic table | ||
|rows per page=100 | |rows per page=100 | ||
|group by= | |group by=Football_Games._pageName, Football_Games.Date <!-- all fields from "fields=" should be here --> | ||
|order by= | |order by=Football_Games.Date DESC | ||
}} | }}<!-- | ||
Show games count: | Show games count: | ||
{{סטטיסטיקה/שליפות/כמות רשומות| שליפה={{#var: games}} }} משחקים--> | {{סטטיסטיקה/שליפות/כמות רשומות| שליפה={{#var: games}} }} משחקים--> | ||
</includeonly> | </includeonly> |
גרסה אחרונה מ־21:21, 4 ביולי 2025
ערכו את הדף כדי לצפות בטקסט התבנית.