ข้ามไปเนื้อหา

แม่แบบ:Infobox football match

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

การใช้งาน

[แก้]

กรณีแข่งนัดเดียว

[แก้]
{{Infobox football match
| title                   = 
| other_titles            =
| image                   = 
| event                   = 
| caption                 = 
| team1                   = 
| team1association        = 
| team1score              = 
| team1penaltyscore       =
| team2                   = 
| team2association        = 
| team2score              = 
| team2penaltyscore       =
| details                 = 
| date                    = {{Start date|YYYY|MM|DD}}
| stadium                 = 
| city                    = 
| man_of_the_match1a      = 
| man_of_the_match1atitle = 
| man_of_the_match1b      = 
| man_of_the_match1btitle = 
| fair_player1            = 
| fair_player1title       = 
| referee                 = 
| attendance              = 
| weather                 = 
| previous                = 
| next                    = 
}}

กรณีแข่งสองนัด (เหย้า-เยือน)

[แก้]
{{Infobox football match
| title                   = 
| other_titles            =
| image                   = 
| event                   = 
| caption                 = 
| team1                   = 
| team1association        = 
| team1score              = 
| team2                   = 
| team2association        = 
| team2score              = 
| details                 = 
| referee                 = 
| firstleg                = 
| team1score1             = 
| team2score1             = 
| details1                = 
| date1                   = {{Start date|YYYY|MM|DD}}
| stadium1                = 
| city1                   = 
| man_of_the_match1a      = 
| man_of_the_match1atitle = 
| man_of_the_match1b      = 
| man_of_the_match1btitle = 
| fair_player1            = 
| fair_player1title       = 
| referee1                = 
| attendance1             = 
| weather1                = 
| secondleg               = 
| team1score2             = 
| team2score2             = 
| details2                = 
| date2                   = {{Start date|YYYY|MM|DD}}
| stadium2                = 
| city2                   = 
| man_of_the_match2a      = 
| man_of_the_match2atitle = 
| man_of_the_match2b      = 
| man_of_the_match2btitle = 
| fair_player2            = 
| fair_player2title       = 
| referee2                = 
| attendance2             = 
| weather2                = 
| previous                = 
| next                    = 
}}

กรณีแข่งสองนัด และมีนัดรีเพลย์ (Replay)

[แก้]
{{Infobox football match
| title                   = 
| other_titles            =
| image                   = 
| event                   = 
| caption                 = 
| team1                   = 
| team1association        = 
| team1score              = 
| team2                   = 
| team2association        = 
| team2score              = 
| details                 = 
| referee                 = 
| firstleg                = 
| team1score1             = 
| team2score1             = 
| details1                = 
| date1                   = {{Start date|YYYY|MM|DD}}
| stadium1                = 
| city1                   = 
| man_of_the_match1a      = 
| man_of_the_match1atitle = 
| man_of_the_match1b      = 
| man_of_the_match1btitle = 
| fair_player1            = 
| fair_player1title       = 
| referee1                = 
| attendance1             = 
| weather1                = 
| secondleg               = 
| team1score2             = 
| team2score2             = 
| details2                = 
| date2                   = {{Start date|YYYY|MM|DD}}
| stadium2                = 
| city2                   = 
| man_of_the_match2a      = 
| man_of_the_match2atitle = 
| man_of_the_match2b      = 
| man_of_the_match2btitle = 
| fair_player2            = 
| fair_player2title       = 
| referee2                = 
| attendance2             = 
| weather2                = 
| firstreplaymatch        = 
| team1score3             = 
| team2score3             = 
| details3                = 
| date3                   = {{Start date|YYYY|MM|DD}}
| stadium3                = 
| city3                   = 
| man_of_the_match3a      = 
| man_of_the_match3atitle = 
| man_of_the_match3b      = 
| man_of_the_match3btitle = 
| fair_player3            = 
| fair_player3title       = 
| referee3                = 
| attendance3             = 
| weather3                = 
| secondreplaymatch       = 
| team1score4             = 
| team2score4             = 
| details4                = 
| date4                   = {{Start date|YYYY|MM|DD}}
| stadium4                = 
| city4                   = 
| man_of_the_match4a      = 
| man_of_the_match4atitle = 
| man_of_the_match4b      = 
| man_of_the_match4btitle = 
| fair_player4            = 
| fair_player4title       = 
| referee4                = 
| attendance4             = 
| weather4                = 
| previous                = 
| next                    = 
}}

กรณีแข่งสามนัด

[แก้]
{{Infobox football match
| title                   = 
| other_titles            =
| image                   = 
| event                   = 
| caption                 = 
| team1                   = 
| team1association        = 
| team1total              = 
| team2                   = 
| team2association        = 
| team2total              = 
| details                 = 
| referee                 = 
| gameone                 = 
| team1score1             = 
| team2score1             = 
| details1                = 
| date1                   = {{Start date|YYYY|MM|DD}}
| stadium1                = 
| city1                   = 
| man_of_the_match1a      = 
| man_of_the_match1atitle = 
| man_of_the_match1b      = 
| man_of_the_match1btitle = 
| fair_player1            = 
| fair_player1title       = 
| referee1                = 
| attendance1             = 
| weather1                = 
| gametwo                 = 
| team1score2             = 
| team2score2             = 
| details2                = 
| date2                   = {{Start date|YYYY|MM|DD}}
| stadium2                = 
| city2                   = 
| man_of_the_match2a      = 
| man_of_the_match2atitle = 
| man_of_the_match2b      = 
| man_of_the_match2btitle = 
| fair_player2            = 
| fair_player2title       = 
| referee2                = 
| attendance2             = 
| weather2                = 
| gamethree               = 
| team1score3             = 
| team2score3             = 
| details3                = 
| date3                   = {{Start date|YYYY|MM|DD}}
| stadium3                = 
| city3                   = 
| man_of_the_match3a      = 
| man_of_the_match3atitle = 
| man_of_the_match3b      = 
| man_of_the_match3btitle = 
| fair_player3            = 
| fair_player3title       = 
| referee3                = 
| attendance3             = 
| weather3                = 
| previous                = 
| next                    = 
}}

พารามิเตอร์

[แก้]
พารามิเตอร์ การใช้งาน ตัวอย่าง
title ชื่อนัดการแข่งขัน (ใช้เฉพาะเมื่อไม่เหมือนกับชื่อบทความ) ยูฟ่าแชมเปียนส์ลีก นัดชิงชนะเลิศ 2011
other_titles ชื่อนัดการแข่งขันอื่น (เช่น ในภาษาอื่น)
image รูปภาพ Include the [[file:]] markup and include alt text if appropriate.
event รายการ ยูฟ่าแชมเปียนส์ลีก ฤดูกาล 2010–11 หรือ กระชับมิตร
team1 ชื่อสโมสรที่ 1 (เช่น สโมสรเหย้า หรือสโมสรที่ชนะในกรณีที่ใช้สนามกลาง)
team1score คะแนน(รวม)ของสโมสรที่ 1
team1penaltyscore Home team score during penalty shootout stage
team1total Home team total wins, Home teams total games won in the best of three series
team1association the association/conference/etc the team represents {{flagicon|GER|size=30px}}
team2 ชื่อสโมสรที่ 2 (เช่น สโมสรเยือน หรือสโมสรที่แพ้ในกรณีที่ใช้สนามกลาง)
team2score คะแนน(รวม)ของสโมสรที่ 2
team2penaltyscore Away team score during penalty shootout stage
team2total Away team total wins, Away teams total games won in the best of three series
team2association the association/conference/etc the team represents {{flagicon|GER|size=30px}}
details Any details relevant to the final scoreline. Primarily used for wins after extra time. for wins after a penalty shootout, use the team1penaltyscore and team2penaltyscore parameters.
referee* Referee of the single-game; two-legged game; two-legged game plus replay matches; or series (only used in all other game formats aside from single-game, if the information in the subcategories are the same; if not the same, then use subcategory to differentiate)
firstleg this is the title of the leg First leg
Gameone this is the title of the game Game one
team1score1 Home team score in the first leg or game one
team2score1 Away team score in the first leg or game one
details1 Any details relevant to the final scoreline. (Only used in two legged match)
date หรือ date1 Date of the match or the first leg or game one
stadium หรือ stadium1 Stadium of the match or the first leg or game one
city หรือ city1 City of the match or the first leg or game one
man_of_the_match1a Man of the match for the match or the first leg or game one
man_of_the_match1atitle Man of the match title, if there are two different man of the match awards UEFA
man_of_the_match1b Second man of the match for the match or the first leg or game one
man_of_the_match1btitle Man of the match title, if there are two different man of the match awards แฟน
fair_player1 Fair Player of the match for the match or the first leg or game one
fair_player1title Fair Player of the Match title, e.g. if the award has been given by a company Samsung
referee หรือ referee1 Referee of the match or first leg or game one (use latter if all legs or series games are the same)
attendance หรือ attendance1 Attendance of the match or first leg or game one
weather หรือ weather1 Weather of the match or first leg or game one
secondleg "Second leg" if it's a two legged match, will have team1 away on the second leg. "Replay" if it's a replay, will have team1 home on the second leg. Second leg หรือ Replay (ดูคำอธิบาย)
Gametwo this is the title of the game Game two
team1score2 Team1's score in the second leg or game two
team2score2 Team2's score in the second leg or game two
details2 Any details relevant to the final scoreline. (Only used in two legged match)
date2 Date of the second leg or game two
stadium2 Stadium of the second leg or game two
city2 City of the second leg or game two
man_of_the_match2a Man of the match for the second leg or game two
man_of_the_match2a Man of the match for the second leg or game two
man_of_the_match2atitle Man of the match title, if there are two different man of the match awards ยูฟ่า
man_of_the_match2b Second man of the match for the second leg or game two
man_of_the_match2btitle Man of the match title, if there are two different man of the match awards แฟน
fair_player2 Fair Player of the match for the second leg or game two
fair_player2title Fair Player of the Match title, e.g. if the award has been given by a company Samsung
referee2 Referee of the second leg or game two
attendance2 Attendance of the second leg or game two
weather2 Weather of the second leg or game two
firstreplaymatch this is the title of the game First replay match
Gamethree this is the title of the game Game three
team1score3 Team1's score in the first replay match or game three
team2score3 Team2's score in the first replay match or game three
details3 Any details relevant to the final scoreline. (Only used in two legged match or series)
date3 Date of the first replay match or game three
stadium3 Stadium of first replay match or game three
city3 City of the first replay match or game three
man_of_the_match3a Man of the match for the first replay match or game three
man_of_the_match3atitle Man of the match title, if there are two different man of the match awards ยูฟ่า
man_of_the_match3b Second man of the match for first replay match or game three
man_of_the_match3btitle Man of the match title, if there are two different man of the match awards แฟน
fair_player3 Fair Player of the match for the first replay match or game three
fair_player3title Fair Player of the Match title, e.g. if the award has been given by a company Samsung
referee3 Referee of the first replay match or game three
attendance3 Attendance of the first replay match or game three
weather3 Weather of the first replay match or game three
secondreplaymatch this is the title of the game Second replay match
team1score4 Team1's score in second replay match
team2score4 Team2's score in the second replay match
details4 Any details relevant to the final scoreline. (Only used in two legged match)
date4 Date of the second replay match
stadium4 Stadium of the second replay match
city4 City of the second replay match
man_of_the_match4a Man of the match for the second replay match
man_of_the_match4atitle Man of the match title, if there are two different man of the match awards ยูฟ่า
man_of_the_match4b Second man of the match for the second replay match
man_of_the_match4btitle Man of the match title, if there are two different man of the match awards แฟน
fair_player4 Fair Player of the match for the second replay match
fair_player4title Fair Player of the Match title, e.g. if the award has been given by a company Samsung
referee4 Referee of the second replay match
attendance4 Attendance of the second replay match
weather4 Weather of the second replay match
previous การแข่งขันครั้งที่แล้วในรายการเดียวกัน [[ฟุตบอลโลก 1998|1998]]
next การแข่งขันครั้งต่อไปในรายการเดียวกัน [[ฟุตบอลโลก 2006|2006]]

Microformat

[แก้]
กรณีแข่งนัดเดียว The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
Classes used

The HTML classes of this microformat include:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.