Template:NotableMatch: Difference between revisions

From ytptenniswiki
Jump to navigation Jump to search
add tournament flag
m wrong image
Line 1: Line 1:
{{Ambox
{{Ambox
|nocat=true
|nocat=true
| image      = {{#if:{{{tournament|}}}|[[File:Notablematch waluigi.png|50px]][[Category:NotableTournamentMatches]]|[[File:Notablematch waluigi.png|50px]]}}
| image      = {{#if:{{{tournament|}}}|[[File:Goldenrule.jpeg|50px]][[Category:NotableTournamentMatches]]|[[File:Notablematch waluigi.png|50px]]}}
|textstyle = font-weight: bold; font-style: italic;
|textstyle = font-weight: bold; font-style: italic;
|text=This article is about a notable {{#if:{{{tournament|}}}|[[Tournament|Tournament Match]].|[[Tennis Match]]}}. [[Category:Notable Matches]] <br>
|text=This article is about a notable {{#if:{{{tournament|}}}|[[Tournament|Tournament Match]]|[[Tennis Match]]}}. [[Category:Notable Matches]] <br>
{{#if:{{{d|}}}|This match was played during the following years: |[[Category:Matches with missing year categories]] The years this match was played in are not specified.}}
{{#if:{{{d|}}}|This match was played during the following years: |[[Category:Matches with missing year categories]] The years this match was played in are not specified.}}
{{#if:{{{2007|}}}|[[Category:Matches from 2007]]2007 |}}
{{#if:{{{2007|}}}|[[Category:Matches from 2007]]2007 |}}

Revision as of 01:02, 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)