Template:NotableMatch: Difference between revisions
year notices for match |
add tournament flag |
||
| Line 1: | Line 1: | ||
{{Ambox | {{Ambox | ||
|nocat=true | |nocat=true | ||
| image = [[File:Notablematch waluigi.png|50px]] | | image = {{#if:{{{tournament|}}}|[[File:Notablematch waluigi.png|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 [[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 |}} | ||
| Line 33: | Line 33: | ||
=Usage= | =Usage= | ||
* '''NotableMatch''' defines the template itself. | * '''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! | * '''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! | * '''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== | |||
<nowiki>{{NotableMatch|d=y|2007=y|...}}</nowiki> | |||
==Tournament Matches== | ==Tournament Matches== | ||
<nowiki>{{NotableMatch|tournament=y|d=y|2007=y|...}}</nowiki> | |||
(to be implemented) | (to be implemented) | ||
</noinclude> | </noinclude> | ||