Template:Episode: Difference between revisions

From SGUTranscripts
Jump to navigation Jump to search
m (small tweak)
m (trying to insert an "if episode older than 1 year ago, use "old episode" message" calculation)
Line 4: Line 4:
| width="3" bgcolor=#22b222| 
| width="3" bgcolor=#22b222| 
| width="40" align="center"|[[File:Emblem-pen-green.png|25x25px|link=]]
| width="40" align="center"|[[File:Emblem-pen-green.png|25x25px|link=]]
|{{#ifexpr: ({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-{{JULIANDAY|{{{3}}}|{{{1}}}|{{{2}}}}}) > 365 | This episode is not yet complete. Please help us complete the transcript as soon as possible by transcribing a section.  Remember to add your [[Transcribing templates|Transcribing template]] to the top of this episode (and to your section) before you start so that we don't duplicate your efforts. |}}
|{{#ifexpr: ({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-{{JULIANDAY|{{{3}}}|{{{1}}}|{{{2}}}}}) < 8 | This is the '''latest episode''' and it is not yet complete. Please help us complete the transcript as soon as possible by transcribing a section.  Remember to add your [[Transcribing templates|Transcribing template]] to the top of this episode (and to your section) before you start so that we don't duplicate your efforts. | This is a '''recent episode''' and it is not yet complete. Please help us complete the transcript as soon as possible by transcribing a section.  Remember to add your [[Transcribing templates|Transcribing template]] to the top of this episode (and to your section) before you start so that we don't duplicate your efforts.}}
|{{#ifexpr: ({{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}-{{JULIANDAY|{{{3}}}|{{{1}}}|{{{2}}}}}) < 8 | This is the '''latest episode''' and it is not yet complete. Please help us complete the transcript as soon as possible by transcribing a section.  Remember to add your [[Transcribing templates|Transcribing template]] to the top of this episode (and to your section) before you start so that we don't duplicate your efforts. | This is a '''recent episode''' and it is not yet complete. Please help us complete the transcript as soon as possible by transcribing a section.  Remember to add your [[Transcribing templates|Transcribing template]] to the top of this episode (and to your section) before you start so that we don't duplicate your efforts.}}
|}
|}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
=== Description ===
=== Description ===
Include this template at the top of episodes that are incomplete. Use the parameters "MM", "DD", and "YYYY", which represent the broadcast date. If I can get this template squared up, it should be able to calculate how "recent" the episode is, and will display the relevant message. The "latest episode" message will be for the episode whose broadcast date is no more than 6 days older than the current date; the "recent episode" message will be for the one whose date is no more than a year older than the current date; all older episodes will just say "This episode...". (So this template is attempting to be a mashup of the [[Template:LatestEpisode|Latest Episode]] and [[Template:RecentEpisode|Recent Episode]] templates.
Include this template at the top of episodes that are incomplete. Use the parameters "MM", "DD", and "YYYY", which represent the broadcast date. If I can get this template squared up, it should be able to calculate how "recent" the episode is, and will display the relevant message. The "latest episode" message will be for the episode whose broadcast date is no more than 6 days older than the current date; the "recent episode" message will be for the one whose date is no more than a year older than the current date; all older episodes will just say "This episode...". (So this template is attempting to be a mashup of the [[Template:LatestEpisode|Latest Episode]] and [[Template:RecentEpisode|Recent Episode]] templates.

Revision as of 15:51, 9 October 2020

Description

Include this template at the top of episodes that are incomplete. Use the parameters "MM", "DD", and "YYYY", which represent the broadcast date. If I can get this template squared up, it should be able to calculate how "recent" the episode is, and will display the relevant message. The "latest episode" message will be for the episode whose broadcast date is no more than 6 days older than the current date; the "recent episode" message will be for the one whose date is no more than a year older than the current date; all older episodes will just say "This episode...". (So this template is attempting to be a mashup of the Latest Episode and Recent Episode templates.

Based on the current calculation setup, it will generate either

  Emblem-pen-green.png This is the transcript for the latest episode and it is not yet complete. Please help us complete it!
Add a Transcribing template to the top of this episode before you start so that we don't duplicate your efforts.

or

  Emblem-pen-green.png This is a transcript of a recent episode and it is not finished. Please help us finish it!
Add a Transcribing template to the top of this transcript before you start so that we don't duplicate your efforts.

Usage

{{Episode|MM|DD|YYYY}}