Vés al contingut

Plantilla:Episode table

De Viki.cat
Icona de documentació de mòdul Documentació de la plantilla [ mostra ] [ ⧼Visualeditor-ca-editsource-section⧽ ] [ mostra l'historial ] [ refresca ]

Ús

L'objectiu de la plantilla {{Episode table}} és afegir fàcilment una fila de capçalera a les taules d'episodis de sèries de televisió, fins a 13 columnes diferents i, opcionalment, establir l'amplada d'aquestes columnes i incloure-hi la plantilla {{Llista d'episodis}} al paràmetre "episodi". Les cel·les s'afegeixen declarant la variable específica d'una d'aquestes dues maneres: title= afegeix la cel·la "Títol" sense una amplada establerta, i title=30 afegeix la cel·la "Títol" amb una amplada del 30%.

Sintaxi

Paràmetres
{{Episode table
|caption      = TEXT
|background   = COLOR

|total_width  = AMPLADA
|overall      = AMPLADA
|series       = AMPLADA
|season       = AMPLADA
|title        = AMPLADA
|aux1         = AMPLADA
|director     = AMPLADA
|writer       = AMPLADA
|aux2         = AMPLADA
|aux3         = AMPLADA
|airdate      = AMPLADA
|altdate      = AMPLADA
|prodcode     = AMPLADA
|viewers      = AMPLADA
|aux4         = AMPLADA
|country      = PAÍS
|released     = TEXT
|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     = REFERÈNCIA
|seriesR      = REFERÈNCIA
|seasonR      = REFERÈNCIA
|titleR       = REFERÈNCIA
|aux1R        = REFERÈNCIA
|directorR    = REFERÈNCIA
|writerR      = REFERÈNCIA
|aux2R        = REFERÈNCIA
|aux3R        = REFERÈNCIA
|airdateR     = REFERÈNCIA
|altdateR     = REFERÈNCIA
|prodcodeR    = REFERÈNCIA
|viewersR     = REFERÈNCIA
|aux4R        = REFERÈNCIA

|episodes     = LLISTES D'EPISODIS/FILES DE PARTS
}}

Exemples

Columnes estàndard:

{{Episode table|caption=Això és una descripció|background=#B40000 |overall=5 |season=5 |title=17 |director=11 |writer=37 |airdate=10 |prodcode=6 |viewers=9 |country=Catalunya}}

Això és una descripció
Núm.
total
Núm. de la
temporada
TítolDireccióGuióData d'estrena originalCodi de
prod.
Espectadors a Catalunya
(milions)

Totes les columnes:

{{Episode table |overall= |season= |title= |aux1= |director= |writer= |aux2= |aux3= |airdate= |altdate= |prodcode= |viewers= |aux4= |country= |aux1T=Títol estranger |aux2T=Guionista convidat |aux3T=Personatge destacat |aux4T=Espectadors a internet |altdateT=Data d'emissió a Catalunya}}

Núm.
total
Núm. de la
temporada
TítolTítol estrangerDireccióGuióGuionista convidatPersonatge destacatData d'estrena originalData d'emissió a CatalunyaCodi de
prod.
Espectadors a Catalunya
(milions)
Espectadors a internet

Amb {{Llista d'episodis}}:
Codi
{{Episode table |background = #005F6C |overall = 6 |series = 6 |title = 20 |director = 14 |writer = 15 |airdate = 16 |prodcode = 8 |viewers = 9 |aux4 = 6 |country = al Regne Unit|overallT = Història|seriesT = Episodi |aux4T = AI |aux4R = {{Dummy reference}} |episodes =
{{Llista d'episodis
 |EpisodeNumber = 203
 |EpisodeNumber2 = 1
 |Title = L'onzena hora
 |AltTitle = 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
}}
{{Llista d'episodis
 |EpisodeNumber = 204
 |EpisodeNumber2 = 2
 |Title = La bèstia de sota
 |AltTitle= 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
}}
}}
HistòriaEpisodiTítolDireccióGuióData d'estrena originalCodi de
prod.
Espectadors al Regne Unit
(milions)
AI [1]
2031«L'onzena hora»
«The Eleventh Hour»
Adam SmithSteven Moffatabril 3, 2010 (2010-04-03)1.110.0986
2042«La bèstia de sota»
«The Beast Below»
Andrew GunnSteven Moffatabril 10, 2010 (2010-04-10)1.28.4286

Temporades partides

<section begin=parted />Per a les temporades que es divideixen en parts, utilitzeu {{Episode table/part}}, com als exemples següents. La fila de la part té un atribut d'ID HTML aplicat, igual al text que es mostra; és a dir, els atributs d'identificació dels exemples següents seran "Part 1" i "Diari d'Athelstan".

Hi ha diversos paràmetres disponibles per a la plantilla de partició:

  • |act=1 deriva Acte 1
  • |chapter=1 deriva Capítol 1
  • |part=1 deriva Part 1
  • |volume=1 deriva Volum 1
  • |week=1 deriva Setmana 1

Es pot afegir un subtítol amb |subtitle=Nom del subtítol, i es pot utilitzar per si mateix o combinat amb qualsevol dels paràmetres anteriors. (La cursiva al subtítol s'ha d'introduir manualment.) Per exemple:

  • |chapter=1|subtitle=Crossover deriva Capítol 1: Crossover
  • |subtitle=''Crossover'' deriva Crossover

(Nota: |p= i |nopart= estan obsolets; feu servir millor |part= i|subtitle=)

Exemples

<syntaxhighlight lang="wikitext">Part 1</syntaxhighlight>
Núm.
total
Núm. de la
temporada
TítolDireccióGuióData d'estrena originalEspectadors a Catalunya
(milions)
Part 1
<syntaxhighlight lang="wikitext">Diari d'Athelstan</syntaxhighlight>
Núm.TítolDireccióGuióData d'estrena originalDurada
(minuts)
Diari d'Athelstan
<section end=parted />

Paràmetres

Each cell parameter has an alias to match the parameters used in {{Episode list}}. In the Cell Inclusion & Widths rows, the original parameter is listed, followed by its episode-list alias. This means that this:

<syntaxhighlight lang="wikitext">
Núm.
total
Núm. de la
temporada
TítolDireccióGuióData d'estrena originalCodi de
prod.
Espectadors U.S.
(milions)
</syntaxhighlight>

will produce exactly the same as this:

<syntaxhighlight lang="wikitext">
Núm.
total
Núm. de la
temporada
TítolDireccióGuióData d'estrena originalCodi de
prod.
Espectadors U.S.
(milions)
</syntaxhighlight>
Template parameters
Parameter Description Type Status
Table caption caption A caption should be provided that describes in general the content of the table. By default, the caption uses {{Screen reader-only}} to not be visually displayed in a browser, but still be present and voiced by a screen reader for accessibility. To make the caption visible, use |show_caption=y. e.g. NCIS season 11 episodes Wikitext Required for accessibility
Background color background The background color of the header row. If no color is specified, the background defaults to #CCCCFF.
Format: #595959
String Optional
Total width total_width Table width defaults to 100%. For tables that are less than 100%, set this field as necessary, with or without a percentage sign. Set to "auto" or blank to remove the set width and allow the table to display naturally.
Format: 75
Number Optional
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, <syntaxhighlight lang="wikitext">List of episodes#ep1</syntaxhighlight>; see more at Template:Episode list § EpisodeNumber. 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 <syntaxhighlight lang="wikitext">List of episodes#Minisodesep1</syntaxhighlight>. 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 <syntaxhighlight lang="text" class="" style="" inline="1">season</syntaxhighlight>/<syntaxhighlight lang="text" class="" style="" inline="1">series</syntaxhighlight> 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

L'objectiu de la plantilla {{Episode table}} és afegir fàcilment una fila de capçalera a les taules d'episodis de sèries de televisió, fins a 13 columnes diferents i, opcionalment, establir l'amplada d'aquestes columnes i incloure-hi la plantilla {{Llista d'episodis}} al paràmetre "episodi". Les cel·les s'afegeixen declarant la variable específica d'una d'aquestes dues maneres: title= afegeix la cel·la "Títol" sense una amplada establerta, i title=30 afegeix la cel·la "Títol" amb una amplada del 30%.

Paràmetres de la plantilla

Aquesta plantilla té un format personalitzat.

ParàmetreDescripcióTipusEstat
Color de fonsbackground colorfons Colorfons

cap descripció

Líniaopcional
Amplada totaltotal_width

cap descripció

Nombreopcional
Mostra encapçalamentshow_caption

cap descripció

Valor automàtic
y
Booleàopcional
Encapçalamentcaption

cap descripció

Cadenaopcional
Número totaloverall EpisodeNumber EpisodiNúmero episodinúmero Número Total número total númerototal NúmeroTotal

Visualització i amplada de "Núm. total".

Nombreopcional
(Força total)forceoverall

Replaces "No." with "No. overall" when "series" or "season" is not set, also activates "overall_type" in such cases.

Valor automàtic
1
Booleàopcional
(Tipus de total)overall_type

Replaces "overall" in "No. overall". Use "overallT" to replace header completely.

Líniaopcional
Número total 2overall2 *

Visualització i amplada de la segona columna addicional per a les xifres generals, sense titular per defecte.

Nombreopcional
Número en la temporadaseason EpisodeNumber2 EpisodiNúmero2 episodinúmero2 episodi número 2 Episodi Número 2

Visualització i amplada de "Núm. de temporada".

Nombreopcional
(Tipus de temporada)season_type

Replaces "season" in "No. in season". Use "seasonT" to replace header completely.

Líniaopcional
Número en la sèrieseries EpisodeNumber2Series sèrie Sèrie

Visualització i amplada del "Núm. de sèrie".

Nombreopcional
(Tipus de sèrie)series_type

Replaces "series" in "No. in series". Use "seriesT" to replace header completely.

Líniaopcional
Títoltitle Title Títol títol

Visualització i amplada de "Títol".

Nombreopcional
Columna addicional 1aux1 Aux1

Visualització i amplada de la primera columna addicional.

Nombreopcional
Direcciódirector DirectedBy direcció Direcció dirigitper DirigitPer

Visualització i amplada de "Direcció".

Nombreopcional
Guiówriter WrittenBy Guió guió EscritPer escritper

Displaying and width of "Written by".

Nombreopcional
Columna addicional 2aux2 Aux2

Visualització i amplada de la segona columna addicional.

Nombreopcional
Columna addicional 3aux3 Aux3

Visualització i amplada de la tercera columna addicional.

Nombreopcional
Data d'emissióairdate OriginalAirDate data original dataoriginal DataOriginal

Visualització i amplada de la "Data d'emissió original".

Nombreopcional
Data d'emissió alternativaaltdate AltDate DataAlt dataalt

Visualització i amplada de data alternativa, normalment de Catalunya.

Nombreopcional
Convidat(s)guests Guests convidats Convidats

Convidat(s)

Exemple
Displaying and width of "Guest(s)".
Nombreopcional
Convidat(s) musical(s)musicalguests MusicalGuests ConvidatsMusicals Convidats Musicals convidats musicals convidatsmusicals

Convidat(s) musical(s)/entreteniment

Exemple
Displaying and width of "Musical/entertainment guest(s)".
Nombreopcional
Codi de produccióprodcode ProdCode CodiProd codiprod

Visualització i amplada de "Codi de producció".

Nombreopcional
Espectadorsviewers Viewers Espectadors espectadors

Visualització i amplada d'"Espectadors".

Nombreopcional
(País)country país País

Especificació de país dels espectadors

Cadenaopcional
(Tipus d'espectadors)viewers_type

Substitueix "milions"

Líniaopcional
Columna addicional 4aux4 Aux4

Visualització i amplada de la quarta columna addicional.

Nombreopcional
[text] Número totaloverallT EpisodeNumberT número totalT Número TotalT

cap descripció

Cadenaopcional
[text] Número total 2overall2T *T

cap descripció

Cadenaopcional
[text] Número temporadaseasonT EpisodeNumber2T temporadaT TemporadaT

cap descripció

Cadenaopcional
[text] Número sèrieseriesT EpisodeNumber2SeriesT sèrieT SèrieT

cap descripció

Cadenaopcional
[text] TítoltitleT TitleT títolT TítolT

cap descripció

Cadenaopcional
[text] Columna addicional 1aux1T Aux1T

cap descripció

Cadenaopcional
[text] DirecciódirectorT DirectedByT direccióT DireccióT

cap descripció

Cadenaopcional
[text] GuiówriterT WrittenByT guióT GuióT

cap descripció

Cadenaopcional
[text] Columna addicional 2aux2T Aux2T

cap descripció

Cadenaopcional
[text] Columna addicional 3aux3T Aux3T

cap descripció

Cadenaopcional
[text] Data d'emissióairdateT OriginalAirDateT dataT DataT

cap descripció

Cadenaopcional
[text] Data d'emissió alternativaaltdateT AltDateT data altT Data AltT DataAltT dataaltT

cap descripció

Cadenaopcional
[text] Convidat(s)guestsT GuestsT convidatsT ConvidatsT

cap descripció

Cadenaopcional
[text] Convidat(s) Musical(s)musicalguestsT MusicalGuestsT convidats musicalsT Convidats MusicalsT convidatsmusicalsT ConvidatsMusicalsT

cap descripció

Cadenaopcional
[text] Codi de produccióprodcodeT ProdCodeT CodiProdT codiprodT

cap descripció

Cadenaopcional
[text] EspectadorsviewersT ViewersT EspectadorsT espectadorsT

cap descripció

Cadenaopcional
[text] Columna addicional 4aux4T Aux4T

cap descripció

Cadenaopcional
[ref] Número totaloverallR EpisodeNumberR número totalR Número TotalR númerototalR NúmeroTotalR

cap descripció

Cadenaopcional
[ref] Número total 2overall2R *R

cap descripció

Cadenaopcional
[ref] Número temporadaseasonR EpisodeNumber2R TemporadaR temporadaR

cap descripció

Cadenaopcional
[ref] Número sèrieseriesR EpisodeNumber2SeriesR SèrieR sèrieR

cap descripció

Cadenaopcional
[ref] TítoltitleR TitleR títolR TítolR

cap descripció

Cadenaopcional
[ref] Columna addicional 1aux1R Aux1R

cap descripció

Cadenaopcional
[ref] DirecciódirectorR DirectedByR direccióR DireccióR

cap descripció

Cadenaopcional
[ref] GuiówriterR WrittenByR guióR GuióR

cap descripció

Cadenaopcional
[ref] Columna addicional 2aux2R Aux2R

cap descripció

Cadenaopcional
[ref] Columna addicional 3aux3R Aux3R

cap descripció

Cadenaopcional
[ref] Data d'emissióairdateR OriginalAirDateR dataR DataR

cap descripció

Cadenaopcional
[ref] Data d'emissió alternativaaltdateR AltDateR data altR Data AltR

cap descripció

Cadenaopcional
[ref] Convidat(s)guestsR GuestsR convidatsR ConvidatsR

cap descripció

Cadenaopcional
[ref] Convidat(s) Musical(s)musicalguestsR MusicalGuestsR convidats musicalsR Convidats MusicalsR

cap descripció

Cadenaopcional
[ref] Codi de produccióprodcodeR ProdCodeR CodiProdR codiprodR

cap descripció

Cadenaopcional
[ref] EspectadorsviewersR ViewersR EspectadorsR espectadorsR

cap descripció

Cadenaopcional
[ref] Columna addicional 4aux4R Aux4R

cap descripció

Cadenaopcional
Àncoraanchor

cap descripció

Líniaopcional
No tanquisdontclose

cap descripció

Valor automàtic
y
Booleàopcional
Episodisepisodes episodis Episodis

Per posar-hi {{Episode list}}

Contingutopcional

Categories de seguiment

<section begin=Tracking/>

Vegeu també