แม่แบบ:Episode table
| มีการใช้แม่แบบนี้ในหลายพันหน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเอง อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
| แม่แบบนี้ใช้ลูอา |
การใช้งาน
[แก้]The purpose of the {{Episode table}} template is to easily add header row to episode tables for television series, with up to 13 different columns, and optionally set the widths of these columns, and includes the {{Episode list}} template in the "episode" parameter. Cells are included by declaring the specific variable in one of two ways: title= includes the "Title" cell with no set width, and title=30 includes the "Title" cell with a width of 30%.
Syntax
[แก้]Parameters |
|---|
{{Episode table
|caption = TEXT
|background = COLOR
|total_width = WIDTH
|overall = WIDTH
|overall2 = WIDTH
|series = WIDTH
|season = WIDTH
|title = WIDTH
|aux1 = WIDTH
|director = WIDTH
|writer = WIDTH
|aux2 = WIDTH
|aux3 = WIDTH
|airdate = WIDTH
|altdate = WIDTH
|prodcode = WIDTH
|viewers = WIDTH
|aux4 = WIDTH
|country = COUNTRY
|released = BOOLEAN
|viewers_type = TEXT
|overallT = TEXT
|seriesT = TEXT
|seasonT = TEXT
|titleT = TEXT
|aux1T = TEXT
|directorT = TEXT
|writerT = TEXT
|aux2T = TEXT
|aux3T = TEXT
|airdateT = TEXT
|altdateT = TEXT
|prodcodeT = TEXT
|viewersT = TEXT
|aux4T = TEXT
|overallR = REFERENCE
|seriesR = REFERENCE
|seasonR = REFERENCE
|titleR = REFERENCE
|aux1R = REFERENCE
|directorR = REFERENCE
|writerR = REFERENCE
|aux2R = REFERENCE
|aux3R = REFERENCE
|airdateR = REFERENCE
|altdateR = REFERENCE
|prodcodeR = REFERENCE
|viewersR = REFERENCE
|aux4R = REFERENCE
|episodes = EPISODE LISTS/PART ROWS
|dontclose = BOOLEAN
}}
|
Examples
[แก้]- Standard columns:
{{Episode table|caption=This is a caption|background=#B40000 |overall=5 |season=5 |title=17 |director=11 |writer=37 |airdate=10 |prodcode=6 |viewers=9 |country=U.S.}}
| ตอนที่ (ในทั้งหมด) | ตอนที่ (ในฤดูกาล) | ชื่อ | กำกับโดย | เขียนโดย | วันที่วางจำหน่ายเดิม | รหัส การผลิต | ผู้ชมจากU.S. |
|---|
- All columns:
{{Episode table |overall= |season= |title= |aux1= |director= |writer= |aux2= |aux3= |airdate= |altdate= |prodcode= |viewers= |aux4= |country= |aux1T=Aux1 |aux2T=Aux2 |aux3T=Aux3 |aux4T=Aux4 |altdateT=AltDate}}
| ตอนที่ (ในทั้งหมด) | ตอนที่ (ในฤดูกาล) | ชื่อ | Aux1 | กำกับโดย | เขียนโดย | Aux2 | Aux3 | วันที่วางจำหน่ายเดิม | AltDate | รหัส การผลิต | ผู้ชมจาก | Aux4 |
|---|
- With {{Episode list}}:
Code |
|---|
{{Episode table |background = #005F6C |overall = 6 |series = 6 |title = 20 |director = 14 |writer = 15 |airdate = 16 |prodcode = 8 |viewers = 9 |aux4 = 6 |country = UK |overallT = Story |seriesT = Episode |aux4T = AI |aux4R = {{Dummy reference}} |dontclose = y}}
{{Episode list
|EpisodeNumber = 203
|EpisodeNumber2 = 1
|Title = [[The Eleventh Hour (Doctor Who)|The Eleventh Hour]]
|DirectedBy = Adam Smith
|WrittenBy = [[Steven Moffat]]
|OriginalAirDate = {{Start date|2010|4|3|df=y}}
|ProdCode = 1.1
|Viewers = 10.09
|Aux4 = 86
|LineColor = 005F6C
}}
{{Episode list
|EpisodeNumber = 204
|EpisodeNumber2 = 2
|Title = [[The Beast Below]]
|DirectedBy = [[Andrew Gunn (director)|Andrew Gunn]]
|WrittenBy = Steven Moffat
|OriginalAirDate = {{Start date|2010|4|10|df=y}}
|ProdCode = 1.2
|Viewers = 8.42
|Aux4 = 86
|LineColor = 005F6C
}}
{{End|html=y|Episode table}}
|
| Story | Episode | ชื่อ | กำกับโดย | เขียนโดย | วันที่วางจำหน่ายเดิม | รหัส การผลิต | ผู้ชมจากUK | AI [1] |
|---|---|---|---|---|---|---|---|---|
| 203 | 1 | "The Eleventh Hour" | Adam Smith | Steven Moffat | 3 เมษายน ค.ศ. 2010 | 1.1 | 10.09 | 86 |
| 204 | 2 | "The Beast Below" | Andrew Gunn | Steven Moffat | 10 เมษายน ค.ศ. 2010 | 1.2 | 8.42 | 86 |
Parted seasons
[แก้]For seasons which have been split into parts, use {{Episode table/part}}, as per the examples below. The part row has a HTML ID attribute applied to it, equal to the text displayed; i.e. the ID attributes of the following examples will be "Part 1" and "Athelstan's Journal".
There are multiple available parameters for the parted template:
|act=1gives Act 1|chapter=1gives Chapter 1|part=1gives Part 1|volume=1gives Volume 1|week=1gives Week 1
The use of a subtitle is used through |subtitle=Subtitle Name, and can be used by itself or combined with any of the previous parameters. (Italics in the subtitle are to be inserted manually.) For example:
|chapter=1|subtitle=Crossovergives Chapter 1: Crossover|subtitle=''Crossover''gives Crossover
(แม่แบบ:Itcol |p= and |nopart= have been deprecated; use |part= and |subtitle= instead.)
Examples
[แก้]{{Episode table/part|c=#183E54|part=1}}
| ตอนที่ (ในทั้งหมด) | ตอนที่ (ในฤดูกาล) | ชื่อ | กำกับโดย | เขียนโดย | วันที่วางจำหน่ายเดิม | ผู้ชมจากU.S. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Part 1 | ||||||||||||
{{Episode table/part|c=#061453|subtitle=''Athelstan's Journal''}}
| ตอนที่ (ในทั้งหมด) | ชื่อ | กำกับโดย | เขียนโดย | วันที่วางจำหน่ายเดิม | Length (minutes) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Athelstan's Journal | ||||||||||||
พารามิเตอร์
[แก้]พารามิเตอร์เซลล์แต่ละอันมีนามแฝงเพื่อให้ตรงกับพารามิเตอร์ที่ใช้ใน {{Episode list}} ในแถว การรวมเซลล์และความกว้าง พารามิเตอร์ดั้งเดิมจะปรากฏในรายการ ตามด้วยนามแฝงของรายการตอน ซึ่งหมายความว่า:
{{Episode table |background=#B40000 |overall=5 |season=5 |title=17 |director=11 |writer=37 |airdate=10 |prodcode=6 |viewers=9 |country=U.S.}}
จะได้ผลเหมือนกันทุกประการดังนี้:
{{Episode table |background=#B40000 |EpisodeNumber=5 |EpisodeNumber2=5 |Title=17 |DirectedBy=11 |WrittenBy=37 |OriginalAirDate=10 |ProdCode=6 |Viewers=9 |country=U.S.}}
| พารามิเตอร์ | คำอธิบาย | ตัวพิมพ์ | สถานะ | ||
|---|---|---|---|---|---|
| คำบรรยายในตาราง | caption | ควรใส่คำอธิบายประกอบที่อธิบายเนื้อหาโดยทั่วไปของตาราง โดยค่าเริ่มต้น คำอธิบายประกอบจะใช้ {{Screen reader-only}} เพื่อไม่ให้แสดงผลในเบราว์เซอร์ แต่ยังคงปรากฏและอ่านออกเสียงโดยโปรแกรมอ่านหน้าจอเพื่อการเข้าถึงได้ หากต้องการให้คำบรรยายปรากฏ ให้ใช้ |show_caption=y เช่น NCIS season 11 episodes |
วิกิเท็กซ์ | จำเป็นสำหรับการเข้าถึง | |
| สีพื้นหลัง | background | สีพื้นหลังของแถวส่วนหัว หากไม่ได้ระบุสี พื้นหลังจะเป็นค่า #CCCCFF รูปแบบ: #595959 |
สีรหัสเลขฐานสิบหก | ไม่จำเป็น | |
| ความกว้างทั้งหมด | total_width | ความกว้างของตารางเริ่มต้นที่ 100% สำหรับตารางที่มีความกว้างน้อยกว่า 100% ให้ตั้งค่าฟิลด์นี้ตามความจำเป็น โดยอาจมีหรือไม่มีเครื่องหมายเปอร์เซ็นต์ก็ได้ ตั้งค่าเป็น "auto" หรือเว้นว่างไว้เพื่อลบความกว้างที่กำหนดไว้ และให้ตารางแสดงได้ตามปกติ รูปแบบ: 75 |
ตัวเลข | ไม่จำเป็น | |
| Anchor | anchor | In {{Episode list}}, |EpisodeNumber= is a number representing the episode's order in the series. For example, the first episode would be 1. When defined, the specified number also generates a link anchor, prefixed by ep; for example, [[List of episodes#ep1]]; see more at แม่แบบ:Episode table § Notes. In the case of multiple tables with the same anchored episode number, the anchor can be made unique with the |anchor= parameter in the call of {{Episode table}}. For example, if |anchor= in this template is set to |anchor=Minisodes, then the anchor will be [[List of episodes#Minisodesep1]]. Note that the |anchor= parameter has no effect if the |episodes= parameter is absent. |
Wikitext | Optional | |
| Cell Inclusion & Widths* | Overall Number | overall EpisodeNumber |
The inclusion (and optionally the width) of the "No." / "No. overall" cell. Use |forceoverall=y to force this column to display "No. overall" when season/series is not set. Change the "overall" term by using |overall_type=)Format: 10 / <blank> |
Number | Optional |
| Season | season EpisodeNumber2 |
The inclusion (and optionally the width) of the "No. in season" cell. (Inclusion will set "No." cell to "No. overall" if overallT is unset. Change the "season" term by using |season_type=)Format: 10 / <blank> Note: "series" and "season" cannot be included in the same table. |
Number | Optional | |
| Series | series EpisodeNumber2Series |
The inclusion (and optionally the width) of the "No. in series" cell. (Inclusion will set "No." cell to "No. overall" if overallT is unset. Change the "series" term by using |series_type=)Format: 10 / <blank> Note: "series" and "season" cannot be included in the same table. |
Number | Optional | |
| Title | title Title |
The inclusion (and optionally the width) of the "Title" cell. Format: 10 / <blank> |
Number | Optional | |
| Aux1 | aux1 Aux1 |
The inclusion (and optionally the width) of the "Aux1" cell. Format: 10 / <blank> |
Number | Optional | |
| Director | director DirectedBy |
The inclusion (and optionally the width) of the "Directed by" cell. Format: 10 / <blank> |
Number | Optional | |
| Writer | writer WrittenBy |
The inclusion (and optionally the width) of the "Written by" cell. Format: 10 / <blank> |
Number | Optional | |
| Aux2 | aux2 Aux2 |
The inclusion (and optionally the width) of the "Aux2" cell. Format: 10 / <blank> |
Number | Optional | |
| Aux3 | aux3 Aux3 |
The inclusion (and optionally the width) of the "Aux3" cell. Format: 10 / <blank> |
Number | Optional | |
| Air Date | airdate OriginalAirDate |
The inclusion (and optionally the width) of the "Original air date" cell. Format: 10 / <blank> |
Number | Optional | |
| Alternative Air Date | altdate AltDate |
The inclusion (and optionally the width) of the "Alternative Air Date" cell. Format: 10 / <blank> |
Number | Optional | |
| Production Code | prodcode ProdCode |
The inclusion (and optionally the width) of the "Production code" cell. Format: 10 / <blank> |
Number | Optional | |
| Viewers | viewers Viewers |
The inclusion (and optionally the width) of the "Viewers" cell. Format: 10 / <blank> |
Number | Optional | |
| Aux4 | aux4 Aux4 |
The inclusion (and optionally the width) of the "Aux4" cell. Format: 10 / <blank> |
Number | Optional | |
| Content | Country | country | The series' originating country; displayed before "viewers". (Exclusion capitalized "Viewers"; inclusion un-capitalizes "viewers".) Format: U.S. |
String | Optional / Unrequired when viewers is not set |
| Released/Aired | released | Determines whether the episodes were released online or aired. Changes the "Original air date" cell to "Original release date". Format: y |
String | Optional | |
| Viewers type | viewers_type | The numeric format that viewers are grouped within the episode table. Set to "millions" by default. Including the parameter but leaving it blank will disclude the bracketed format. Format: thousands |
String | Optional | |
| Variable Content | {variable}T | Custom content of any cell (e.g. overallT, titleT). Format: Any string |
String | Optional / Required when aux{1-4} and altdate set | |
| Reference | {variable}R | Reference for any cell (e.g. overallR, titleR). If Wikipedia's link colours are not WCAG 2 AAA Compliant with the background colour, {{Episode table/ref}} is used to provide the reference with a compliant background colour. Format: Reference |
Reference | Optional | |
| Episodes | episodes | An infinite number of consecutive episode rows. Format: {{Episode list}} or {{Episode table/part}} |
Template | Required when using {{Episode list}} | |
| Don't Close | dontclose | Set this parameter to "y" to be able to close the initial wikicode declaration of the episode table, but to be able to continue displaying the separate episode rows after the header but outside of the initial declaration. Particularly useful for when the individual rows have to be transcluded outside of the article and thus must be outside of a template, or in articles with lots of templates that would otherwise exceed the post-expand include size limit. To close the initial declaration, {{End|html=y|Episode table}} must be used. |
Text | Optional | |
*: These variables can be included but not set to a value, e.g. |title=, which will include the cell but not set a width to it.
TemplateData
[แก้]TemplateData documentation used by VisualEditor and other tools | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ไม่มีคำอธิบาย
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
หมวดหมู่ที่ติดตาม
[แก้]
ดูเพิ่ม
[แก้]{{Episode table/part}}{{Episode table/ref}}