Templat:Kiraan episod/doc

Daripada Wikipedia, ensiklopedia bebas.

Penggunaan[sunting sumber]

Penggunaan[sunting sumber]

Templat boleh ditambah dengan menampal sintaks seperti yang ditunjukkan di bawah ke dalam artikel (sebaik-baiknya dalam {{Infobox television}}'s num_episodes parameter) dan kemudian mengisi medan yang dikehendaki. Sebarang parameter yang dibiarkan kosong atau ditinggalkan tidak akan dipaparkan.

Examples
  • {{Episode counter|123|2021|07|07|ended=tidak}} → "123 (sebagai of 07 Julai 2021 (2021-07-07))"
  • {{Episode counter|123|2021|07|07|df=ya|ended=no}} → "123 (sebagai of 07 Julai 2021 (2021-07-07))"
  • {{Episode counter|123|2021|07|07|ended=yes}} → "123"
  • {{Episode counter|123|2021|07|07|df=yes|ended=yes}} → "123"
  • {{Episode counter|123 + 1 pilot|2021|07|07|ended=no}} → "123 + 1 pilot (sebagai of 07 Julai 2021 (2021-07-07))"
  • {{Episode counter|123 + 1 pilot|2021|07|07|ended=yes}} → "123 + 1 pilot"

Parameters[sunting sumber]

List of parameters
Parameter Required Description
1 Ya Set the number of episodes aired.
2 Ya Set the date of the last aired episode.
3 Ya
4 Ya
df Pilihan Display the day before the month name.
ended Ditamatkan Display only the episode.
Change to yes when the series/show has ended.
small Ditamatkan Display the (bagi ...) in smaller text.
Defaults to no.

TemplateData[sunting sumber]

Berikut ialah pendokumenan TemplateData untuk templat ini yang digunakan oleh VisualEditor dan alatan-alatan lain; lihat laporan penggunaan parameter bulanan untuk templat ini.

TemplateData untuk Kiraan episod

<templatedata> {

   "description": "",
   "params": {
       "1": {
             "description": "Set the number of episodes aired.",
             "label": "episode",
             "required": true,
             "type": "string"
       },
       "2": {
             "description": "Set the date of the last aired episode.",
             "label": "year",
             "required": true,
             "type": "number"
       },
       "3": {
             "description": "Set the date of the last aired episode.",
             "label": "month",
             "required": true,
             "type": "number"
       },
       "4": {
             "description": "Set the date of the last aired episode.",
             "label": "day",
             "required": true,

"

Lihat juga[sunting sumber]