Template:NotableMatch: Difference between revisions

From ytptenniswiki
Jump to navigation Jump to search
mNo edit summary
m testing
Line 10: Line 10:
{{#if:{{{2010|}}}|[[Category:Matches from 2010]]2010 |}}
{{#if:{{{2010|}}}|[[Category:Matches from 2010]]2010 |}}
{{#if:{{{2011|}}}|[[Category:Matches from 2011]]2011 |}}
{{#if:{{{2011|}}}|[[Category:Matches from 2011]]2011 |}}
{{#if:{{{2012|}}}|[[Category:Matches from 2012]]2012 |}}
{{if|{{{2012|}}}|[[Category:Matches from 2012]]2012 |}}
{{#if:{{{2013|}}}|[[Category:Matches from 2013]]2013 |}}
{{#if:{{{2013|}}}|[[Category:Matches from 2013]]2013 |}}
{{#if:{{{2014|}}}|[[Category:Matches from 2014]]2014 |}}
{{#if:{{{2014|}}}|[[Category:Matches from 2014]]2014 |}}

Revision as of 01:05, 12 March 2025


An extension off of Template:Ambox.

This box is used to signify this this page is a notable match. This is also used to insert the years that a match was played in (a match was 'played in a year' if rounds were made during said year; don't count gap years.)

Usage

  • NotableMatch defines the template itself.
  • tournament=y defines if the match is part of a Tennis Tournament; otherwise, omit.
  • d=y is the date flag; it is used to tell the system that dates have been applied. Don't put this flag unless the date flags are filled in!
  • 2007=y, 2008=y, etc. are the years that the match partook in (rounds were made). Don't put '=n' for years the match wasn't part of; the system sees all non-whitespace responses as true!

Standard Matches

{{NotableMatch|d=y|2007=y|...}}

Tournament Matches

{{NotableMatch|tournament=y|d=y|2007=y|...}} (to be implemented)