Template:NotableMatch: Difference between revisions

From ytptenniswiki
Jump to navigation Jump to search
link back to notable matches category
hide template itself from appearing in its categories
 
Line 1: Line 1:
{{Ambox
{{Ambox
|nocat=true
|nocat=true
| image      = {{#if:{{{tournament|}}}|[[File:Goldenrule.jpeg|50px]][[Category:Notable Tournament Matches]]|[[File:Notablematch waluigi.png|50px]]}}
| image      = {{#if:{{{tournament|}}}|[[File:Goldenrule.jpeg|50px]]<includeonly>[[Category:Notable Tournament Matches]]</includeonly>|[[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 [[:Category:Notable Matches|notable]] {{#if:{{{tournament|}}}|[[Tournament|Tournament Match]]|[[Tennis Match]]}}. [[Category:Notable Matches]] <br>
|text=This article is about a [[:Category:Notable Matches|notable]] {{#if:{{{tournament|}}}|[[Tournament|Tournament Match]]|[[Tennis Match]]}}. <includeonly>[[Category:Notable Matches]]</includeonly> <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: |<includeonly>[[Category:Matches with missing year categories]]</includeonly> The years this match was played in are not specified.}}
{{#if:{{{2007|}}}|[[Category:Matches from 2007]][[:Category:Matches from 2007|2007]] |}}
{{#if:{{{2007|}}}|[[Category:Matches from 2007]][[:Category:Matches from 2007|2007]] |}}
{{#if:{{{2008|}}}|[[Category:Matches from 2008]]<nowiki/> [[:Category:Matches from 2008|2008]] |}}
{{#if:{{{2008|}}}|[[Category:Matches from 2008]]<nowiki/> [[:Category:Matches from 2008|2008]] |}}

Latest revision as of 02:03, 14 August 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|...}}