(Allow to search by player position) |
מ (שוחזר מעריכות של Kosh (שיחה) לעריכה האחרונה של MaccabiBot) תגית: שחזור |
||
| שורה 5: | שורה 5: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Define local parameters: | Define local parameters: | ||
-->{{#vardefine: SameCompetitions|{{המרות | -->{{#vardefine: SameCompetitions|{{תבנית: המרות/מפעל לרשימת מפעלים מקושרים|מפעל={{{מפעל|}}} }} }}<!-- | ||
-->{{#vardefine: SameStadiums|{{המרות/ | -->{{#vardefine: SameStadiums|{{תבנית: המרות/מתקן לרשימת מתקנים מקושרים|מתקן={{{מתקן|}}} }} }}<!-- | ||
-->{{#vardefine: SameOpponents|{{המרות | -->{{#vardefine: SameOpponents|{{תבנית: המרות/יריבה לרשימת יריבות מקושרות|יריבה={{{יריבה|}}} }} }}<!-- | ||
-->{{#vardefine: GoalsForMaccabiOperator| {{#בחר:{{{ | -->{{#vardefine: GoalsForMaccabiOperator|{{#בחר:{{{גולים למכבי פעולה|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsForOpponentOperator| {{#בחר:{{{ | -->{{#vardefine: GoalsForOpponentOperator|{{#בחר:{{{גולים ליריבה פעולה|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsDiffForMaccabiOperator| {{#בחר:{{{ | -->{{#vardefine: GoalsDiffForMaccabiOperator|{{#בחר:{{{הפרש גולים למכבי פעולה|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: PlayerEvent | -->{{#vardefine: PlayerEvent|{{תבנית: המרות/תיאור אירוע למספר אירוע| אירוע={{{שחקן פעולה|}}} }} }}<!-- | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables=Games_Catalog, Competitions_Catalog, | tables=Games_Catalog, Opponents_Catalog, Competitions_Catalog, Stadiums_Catalog, Games_Results_Catalog, Game_Events_Catalog | ||
|join on=Games_Catalog. | |join on=Games_Catalog.Opponent = Opponents_Catalog.OpponentID | ||
,Games_Catalog. | ,Games_Catalog.Competition = Competitions_Catalog.CompID | ||
,Games_Catalog. | ,Games_Catalog.Stadium = Stadiums_Catalog.StadiumID | ||
,Games_Catalog. | ,Games_Catalog.ResultOpt = Games_Results_Catalog.ResultType | ||
,Games_Catalog.Date=Game_Events_Catalog.Date | |||
,Games_Catalog. | |||
|where=1=1 | |where=1=1 | ||
And Game_Events_Catalog.Team = 1 | |||
{{#if: {{{ | {{#if: {{{מפעל|}}} | AND Games_Catalog.Competition IN ({{#var: SameCompetitions}}) }}<!-- the "()" around the SameCompetition required for "IN" operator --> | ||
{{#if: {{{מתקן|}}} | AND Games_Catalog.Stadium IN ({{#var: SameStadiums}}) }}<!-- the "()" around the SameStadiums required for "IN" operator --> | |||
{{#if: {{{יריבה|}}} | AND Games_Catalog.Opponent IN ({{#var: SameOpponents}}) }}<!-- the "()" around the SameOpponents required for "IN" operator --> | |||
{{#if: {{{ | {{#if: {{{מאמן|}}} | AND Games_Catalog.CoachMaccabi="{{{מאמן}}}" }} | ||
{{#if: {{{ | {{#if: {{{מאמן יריבה|}}} | AND Games_Catalog.CoachOpponent="{{{מאמן יריבה}}}" }} | ||
{{#if: {{{ | {{#if: {{{עונה|}}} | AND Games_Catalog.Season = "{{{עונה}}}" }} | ||
{{#if: {{{ביתיות|}}} | AND Games_Catalog.HomeAway = "{{{ביתיות}}}" }} | |||
{{#if: {{{ | {{#if: {{{שופט|}}} | AND Games_Catalog.Refs = "{{{שופט}}}" }} | ||
{{#if: {{{ | {{#if: {{{גולים למכבי|}}} | AND Games_Catalog.ResultMaccabi {{#var: GoalsForMaccabiOperator}} {{{גולים למכבי}}} }} | ||
{{#if: {{{ | {{#if: {{{הפרש גולים למכבי|}}} | AND Games_Catalog.ResultMaccabi - Games_Catalog.ResultOpponent {{#var: GoalsDiffForMaccabiOperator}} {{{הפרש גולים למכבי}}} }} | ||
{{#if: {{{ | {{#if: {{{גולים ליריבה|}}} | AND Games_Catalog.ResultOpponent {{#var: GoalsForOpponentOperator}} {{{גולים ליריבה}}} }} | ||
{{#if: {{{תוצאת משחק|}}} | AND Games_Results_Catalog.ResultString = "{{{תוצאת משחק}}}" }} | |||
{{#if: {{{ | {{#if: {{{שחקן|}}} | AND Game_Events_Catalog.PlayerName= "{{{שחקן}}}" }} | ||
{{#if: {{{ | {{#if: {{{שחקן פעולה|}}} | AND Game_Events_Catalog.EventType IN ({{#var: PlayerEvent}}) }}<!-- | ||
{{#if: {{{ | |||
{{#if: {{{ | |||
{{#if: {{{ | |||
{{#if: {{{ | |||
<!-- | |||
Fields to display: | Fields to display: | ||
| שורה 87: | שורה 40: | ||
,Games_Catalog.Date=תאריך | ,Games_Catalog.Date=תאריך | ||
,CONCAT('[[עונת ', Games_Catalog.Season, ']]')=עונה | ,CONCAT('[[עונת ', Games_Catalog.Season, ']]')=עונה | ||
,Competitions_Catalog.Name=מפעל <!-- Cast number to name from Competitions Table --> | |||
,Games_Catalog.Leg=שלב במפעל | ,Games_Catalog.Leg=שלב במפעל | ||
,CONCAT('[[', | ,CONCAT('[[', Opponents_Catalog.Name, ']]')=יריבה <!-- Cast number to name from Opponents Table --> | ||
,Games_Catalog.HomeAway=בית או חוץ | ,Games_Catalog.HomeAway=בית או חוץ | ||
,CONCAT('[[', | ,CONCAT('[[', Stadiums_Catalog.Name, ']]')=מתקן <!-- Cast number to name from Stadiums Table --> | ||
,Games_Catalog.ResultMaccabi=תוצאה למכבי | ,Games_Catalog.ResultMaccabi=תוצאה למכבי | ||
,Games_Catalog.ResultOpponent=תוצאה ליריבה | ,Games_Catalog.ResultOpponent=תוצאה ליריבה | ||
, | ,Games_Results_Catalog.ResultString=תוצאת משחק <!-- Cast number to string from games results table --> | ||
,CONCAT('[[', Games_Catalog.CoachMaccabi, ']]')=מאמן מכבי | ,CONCAT('[[', Games_Catalog.CoachMaccabi, ']]')=מאמן מכבי | ||
,Games_Catalog.CoachOpponent=מאמן יריבה | ,CONCAT('[[', Games_Catalog.CoachOpponent, ']]')=מאמן יריבה | ||
,CONCAT('[[ | ,CONCAT('[[', Games_Catalog.Refs, ']]')=שופט | ||
,Crowd=קהל | ,Crowd=קהל | ||
|limit=5000 | |limit=5000 | ||
|format= dynamic table | |format= dynamic table | ||
|rows per page = 100 | |rows per page = 100 | ||
|group by = Games_Catalog._pageName, Games_Catalog.Date <!-- all fields from "fields=" should be here --> | |group by = Games_Catalog._pageName, Games_Catalog.Date <!-- all fields from "fields=" should be here --> | ||
|order by=Games_Catalog.Date | |order by=Games_Catalog.Date | ||
}}<!-- | }}<!-- | ||
גרסה מ־17:58, 8 באפריל 2022
ערכו את הדף כדי לצפות בטקסט התבנית.