MaccabiBot (שיחה | תרומות) (הדף תבנית:QueryGamesTemplate הועבר למדיהויקי זה) |
אין תקציר עריכה |
||
| שורה 5: | שורה 5: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
Define local parameters: | Define local parameters: | ||
-->{{#vardefine: SameCompetitions|{{תבנית: המרות/מפעל לרשימת מפעלים מקושרים|מפעל={{{ | -->{{#vardefine: SameCompetitions|{{תבנית: המרות/מפעל לרשימת מפעלים מקושרים|מפעל={{{Competition|}}} }} }}<!-- | ||
-->{{#vardefine: SameStadiums|{{תבנית: המרות/מתקן לרשימת מתקנים מקושרים|מתקן={{{ | -->{{#vardefine: SameStadiums|{{תבנית: המרות/מתקן לרשימת מתקנים מקושרים|מתקן={{{Stadium|}}} }} }}<!-- | ||
-->{{#vardefine: SameOpponents|{{תבנית: המרות/יריבה לרשימת יריבות מקושרות|יריבה={{{ | -->{{#vardefine: SameOpponents|{{תבנית: המרות/יריבה לרשימת יריבות מקושרות|יריבה={{{Opponent|}}} }} }}<!-- | ||
-->{{#vardefine: GoalsForMaccabiOperator|{{#בחר:{{{ | -->{{#vardefine: GoalsForMaccabiOperator|{{#בחר:{{{MaccabiGoalsAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsForOpponentOperator|{{#בחר:{{{ | -->{{#vardefine: GoalsForOpponentOperator|{{#בחר:{{{OpponentGoalsAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: GoalsDiffForMaccabiOperator|{{#בחר:{{{ | -->{{#vardefine: GoalsDiffForMaccabiOperator|{{#בחר:{{{MaccabiGoalsDifferentAction|}}}|מתחת ל=<|בדיוק==|מעל ל=> }} }}<!-- | ||
-->{{#vardefine: PlayerEvent|{{תבנית: המרות/תיאור אירוע למספר אירוע| אירוע={{{ | -->{{#vardefine: PlayerEvent|{{תבנית: המרות/תיאור אירוע למספר אירוע| אירוע={{{PlayerAction|}}} }} }}<!-- | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables=Games_Catalog, Opponents_Catalog, Competitions_Catalog, Stadiums_Catalog, Games_Results_Catalog, Game_Events_Catalog | tables=Games_Catalog, Opponents_Catalog, Competitions_Catalog, Stadiums_Catalog, Games_Results_Catalog, Game_Events_Catalog | ||
| שורה 21: | שורה 21: | ||
|where=1=1 | |where=1=1 | ||
And Game_Events_Catalog.Team = 1 | And Game_Events_Catalog.Team = 1 | ||
{{#if: {{{ | {{#if: {{{Competition|}}} | AND Games_Catalog.Competition IN ({{#var: SameCompetitions}}) }}<!-- the "()" around the SameCompetition required for "IN" operator --> | ||
{{#if: {{{ | {{#if: {{{Stadium|}}} | AND Games_Catalog.Stadium IN ({{#var: SameStadiums}}) }}<!-- the "()" around the SameStadiums required for "IN" operator --> | ||
{{#if: {{{ | {{#if: {{{Opponent|}}} | AND Games_Catalog.Opponent IN ({{#var: SameOpponents}}) }}<!-- the "()" around the SameOpponents required for "IN" operator --> | ||
{{#if: {{{ | {{#if: {{{Coach|}}} | AND Games_Catalog.CoachMaccabi="{{{Coach}}}" }} | ||
{{#if: {{{ | {{#if: {{{CoachOpponent|}}} | AND Games_Catalog.CoachOpponent="{{{CoachOpponent}}}" }} | ||
{{#if: {{{ | {{#if: {{{Season|}}} | AND Games_Catalog.Season = "{{{Season}}}" }} | ||
{{#if: {{{ | {{#if: {{{HomeAway|}}} | AND Games_Catalog.HomeAway = "{{{HomeAway}}}" }} | ||
{{#if: {{{ | {{#if: {{{Referee|}}} | AND Games_Catalog.Refs = "{{{Referee}}}" }} | ||
{{#if: {{{ | {{#if: {{{MaccabiGoals|}}} | AND Games_Catalog.ResultMaccabi {{#var: GoalsForMaccabiOperator}} {{{MaccabiGoals}}} }} | ||
{{#if: {{{ | {{#if: {{{MaccabiGoalsDifferent|}}} | AND Games_Catalog.ResultMaccabi - Games_Catalog.ResultOpponent {{#var: GoalsDiffForMaccabiOperator}} {{{MaccabiGoalsDifferent}}} }} | ||
{{#if: {{{ | {{#if: {{{OpponentGoals|}}} | AND Games_Catalog.ResultOpponent {{#var: GoalsForOpponentOperator}} {{{OpponentGoals}}} }} | ||
{{#if: {{{ | {{#if: {{{GameResult|}}} | AND Games_Results_Catalog.ResultString = "{{{GameResult}}}" }} | ||
{{#if: {{{ | {{#if: {{{Player|}}} | AND Game_Events_Catalog.PlayerName= "{{{Player}}}" }} | ||
{{#if: {{{ | {{#if: {{{PlayerAction|}}} | AND Game_Events_Catalog.EventType IN ({{#var: PlayerEvent}}) }}<!-- | ||
Fields to display: | Fields to display: | ||
גרסה מ־22:45, 21 בנובמבר 2018
ערכו את הדף כדי לצפות בטקסט התבנית.