Game Date .... Sat - 1st, Sun - 2nd, Mon - 3rd

  • {% if gameDate|date('d') in [1,21,31] %}{{gameDate|date('D - d')}}st{% else %}
  • {% if gameDate|date('d') in [2,22] %}{{gameDate|date('D - d')}}nd{% else %}
  • {% if gameDate|date('d') in [3,23] %}{{gameDate|date('D - d')}}rd{% else %}
  • {{gameDate|date('D - d')}}th
  • {% endif %}{% endif %}{% endif %}

UPDATE!!

Found this in Twig documents: Just add "S" to the date format (no quotemarks)

So the example above becomes: {{gameDate|date('D - dS')}}

Sweet. Still, you can learn from the chained "if" statements. Powerful!

Coloured Scores ...  12 3 4 Leader Bill

  • [class = "1"]{ background: white; color: red; padding: 5px; }

  • [class = "2"] {background: red; color: yellow; padding: 3px; }

  • [class = "3"] {background: blue; color: yellow; padding: 3px; }

  • [class = "4"] {background: yellow; padding: 3px; }

  • [class = "5"] {background: green; color: yellow; padding: 3px;}

  • [class = "6"] {background: lightgray; color: green; padding: 3px;}

  • [class = "7"] {background: lightgray; color: red; padding: 3px; }

  • [class = "Leader"] {background: yellow; color: red; padding: 5px; font-weight: bold; border: 1px red solid;}

Month Totals

|**Last Month Result**|<i class="fad fa-chess-king fa-3x" style="color: orange;"></i>|

<i class="fad fa-chess-queen fa-3x" style="color: silver;"></i>|

<i class="fad fa-chess-rook fa-3x" style="color: blue;"></i>|

<i class="fad fa-chess-knight fa-3x" style="color: brown;"></i>|

|----|----:|----:|----:|----:|

|February 2024|Jule 100|Gerry 101|Frank 102|Bill 115|