Referee Stats

Premium Version Only (since v0.14.8)

[anwpfl-referee-stats referee_id="" stats="" season_id="" league_id="" competition_id="" show_secondary="1" block_width="" per_game="1" show_games="1"]

  • stats – (optional) - comma-separated list of stats. 
    Available values: 
    • card_y - Yellow Cards
    • card_y_h - Yellow Cards (Home team)
    • card_y_a - Yellow Cards (Away team)
    • card_r - Red Cards
    • card_r_h - Red Cards (Home team)
    • card_r_a - Red Cards (Away team)
    • foul - Fouls
    • foul_h - Fouls (Home team)
    • foul_a - Fouls (Away team)

Shortcode Arguments - Filter

  • referee_id – (required) - RefereeID.
  • competition_id – (optional) - Competition ID.
  • show_secondary – (optional) - 0/1 (no/yes). Set this argument to "1" if you want to include all stages of multistage competition. Works only when "competition_id" is Multistage Competition (Main Stage)
  • season_id – (optional) - Season ID.
  • league_id – (optional) - League ID.

Shortcode Arguments - Display

  • block_width – (optional) Minimum width of stat value block. 160 is used by default.
  • per_game – (optional) "0" (no) or "1" (yes). Show per game value. Default - 1
  • show_games  – (optional) - "0" (no) or "1" (yes). Show the number of games. Default - 1

Shortcode Arguments - Text

  • header – (optional) - header text
  • notes - (optional) - notes in the bottom

Hola Andrei: Tengo la versión 

Versión:0.14.7.1versión premium

Y no me aparece la opción que indicas en los Shortcodes? Debo actualizar algo?

+1

Sorry, it will be available in v0.14.8

--

Best Regards

Andrei S.

Muchas gracias Andrei, ser[a un gran aporte.

+1

I still miss the yellow-red card here.

In Germany there are yellow cards, red cards and yellow/red cards. Yellow/red card means two yellow cards in a game.

These should also be recorded in the statistics.

Also in Italy the yellow red card means that a player has taken two yellow cards and therefore must leave the field.

It is also very useful to have a yellow and red card.

Most sites I have checked don't have stats for second yellow / red cards.


In the plugin settings you can define how the second yellow card will be calculated (plugin cache flush required). See the screenshot below.

--

Best Regards

Andrei S.

+1

Yes I know, but these cards are not shown in the statistics. (as an example here)

+1

I'll think about it. 

Maybe I'll add to show the "2nd Yellow/Red" card statistics a bit later. 

--

Best Regards

Andrei S.