Template:Episode: Difference between revisions
Jump to navigation
Jump to search
(switch just isn't cooperating... but at least with this template I won't have to constantly change from Latest to Recent... Undo revision 12899 by Xanderox (talk)) Tag: Undo |
(update) |
||
Line 10: | Line 10: | ||
=== 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. Once I 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. Once I 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. | ||
Based on the calculation, it will generate either | |||
{{LatestEpisode}} | |||
or | |||
{{RecentEpisode}} | |||
=== Usage === | === Usage === | ||
<pre>{{Episode}}</pre> | <pre>{{Episode|MM|DD|YYYY}}</pre> | ||
[[Category: Message templates]] | [[Category: Message templates]] | ||
[[Category: Templates]] | [[Category: Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 11:34, 22 September 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. Once I 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 calculation, it will generate either
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
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}}