Template:MatchboxV2: Difference between revisions

From ytptenniswiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
Version 2 of the Matchbox template, used to show important information about a tennis match.
A Matchbox has a space for:
* the match name
* the type of match
* when it was played
* who played in it
* the number of rounds
* a link to the corresponding forum/etc. post of the match
* (in the case of a tournament match) who won.
'''COPY THIS CODE INTO YOUR PAGE:'''
<pre>
{{MatchboxV2
<!-- Name of the Match -->
|MATCHNAME=
<!-- Type of match. Leave blank for "Standard" -->
|MATCHTYPE=
<!-- A picture of part of the match. -->
|MATCHIMAGE=
<!-- A quote from the match, or description of the image. -->
|MATCHQUOTE=""
<!-- Start date of the match. Keep dates in "Month Date, Year" format. For example; November 9th, 2000 -->
|STARTDATE=
<!-- End date.-->
|ENDDATE=
<!-- Number of rounds in the match -->
|ROUNDS=
<!-- Participants who partook in this match. Keep as a comma-delimited list ("a,b,c"). If using alias templates, add "|U=1" at the end, for example: {{mrdoognoog|U=1}} IT WILL BREAK OTHERWISE! -->
|PARTICIPANTS=
<!-- Corresponding match page (one of the many forum sites, etc.) for the match. -->
|MATCHPAGE=
<!-- Was this a tournament match? Leave blank if no, "y" if yes-->
|TOURNAMENT=
<!-- Winner of the tournament (if applicable) -->
|WINNER=
}}
</pre>
</noinclude>
{| {{MATCHBOX Infobox style|main_box}}
{| {{MATCHBOX Infobox style|main_box}}
|-
|-
Line 5: Line 47:
| colspan="2" {{MATCHBOX Infobox style|sub_header_bar}} | {{if||{{{MATCHTYPE}}}| {{{MATCHTYPE}}} | Standard }}
| colspan="2" {{MATCHBOX Infobox style|sub_header_bar}} | {{if||{{{MATCHTYPE}}}| {{{MATCHTYPE}}} | Standard }}
|-
|-
| colspan="2" {{MATCHBOX Infobox style|image_box}} | [[{{{MATCHIMAGE}}}|200px]] {{if||{{{MATCHQUOTE}}}|<br/>{{{MATCHQUOTE}}}|}}
| colspan="2" {{MATCHBOX Infobox style|image_box}} | {{if||{{{MATCHIMAGE}}}|[[{{{MATCHIMAGE}}}|200px]]|[[Category:Matches with missing images]]<nowiki/>}} {{if||{{{MATCHQUOTE}}}|<br/>{{{MATCHQUOTE}}}|}}
|-
|-
! style="padding-right: 1em;" | Start Date
! style="padding-right: 1em;" | Start Date
Line 17: Line 59:
|-
|-
! style="padding-right: 1em;" | Participants
! style="padding-right: 1em;" | Participants
| ''{{{PARTICIPANTS}}}''
|''{{if||{{{PARTICIPANTS}}}|{{{PARTICIPANTS}}}|(tba) [[Category:Matches with missing participant lists]]}}''
|-
|-
! style="padding-right: 1em;" | Match Page
! style="padding-right: 1em;" | Match Page
|  {{if||{{{MATCHPAGE}}}| [{{{MATCHPAGE}}} link] |{{MissingMatchPage}} }}
|  {{if||{{{MATCHPAGE}}}| {{{MATCHPAGE}}} |{{MissingMatchPage}} }}
|-
|-
! colspan="2" {{MATCHBOX Infobox style|header_bar}} | {{if||{{{TOURNAMENT}}}|Winner|}}
! colspan="2" {{MATCHBOX Infobox style|header_bar}} | {{if||{{{TOURNAMENT}}}|Winner|}}

Latest revision as of 03:42, 2 June 2025

Version 2 of the Matchbox template, used to show important information about a tennis match.

A Matchbox has a space for:

  • the match name
  • the type of match
  • when it was played
  • who played in it
  • the number of rounds
  • a link to the corresponding forum/etc. post of the match
  • (in the case of a tournament match) who won.

COPY THIS CODE INTO YOUR PAGE:

{{MatchboxV2
<!-- Name of the Match -->
|MATCHNAME=
<!-- Type of match. Leave blank for "Standard" -->
|MATCHTYPE=
<!-- A picture of part of the match. -->
|MATCHIMAGE=
<!-- A quote from the match, or description of the image. -->
|MATCHQUOTE=""
<!-- Start date of the match. Keep dates in "Month Date, Year" format. For example; November 9th, 2000 -->
|STARTDATE=
<!-- End date.-->
|ENDDATE=
<!-- Number of rounds in the match -->
|ROUNDS=
<!-- Participants who partook in this match. Keep as a comma-delimited list ("a,b,c"). If using alias templates, add "|U=1" at the end, for example: {{mrdoognoog|U=1}} IT WILL BREAK OTHERWISE! -->
|PARTICIPANTS=
<!-- Corresponding match page (one of the many forum sites, etc.) for the match. -->
|MATCHPAGE=
<!-- Was this a tournament match? Leave blank if no, "y" if yes-->
|TOURNAMENT=
<!-- Winner of the tournament (if applicable) -->
|WINNER=
}}


{{{MATCHNAME}}}
{{{MATCHTYPE}}}
[[{{{MATCHIMAGE}}}|200px]]
{{{MATCHQUOTE}}}
Start Date {{{STARTDATE}}}
End Date {{{ENDDATE}}}
Rounds {{{ROUNDS}}}
Participants {{{PARTICIPANTS}}}
Match Page {{{MATCHPAGE}}}
Winner
{{{WINNER}}}