Difference between revisions of "Template:CurrEpNum"

From The Star Wars Minute Wiki
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 7: Line 7:
             {{#ifexpr:{{{1}}}=7|139|
             {{#ifexpr:{{{1}}}=7|139|
               {{#ifexpr:{{{1}}}=8|135|
               {{#ifexpr:{{{1}}}=8|135|
                 {{#ifexpr:{{{1}}}=9|152|{{#expr:5*( {{LOCALWEEK}}-{{{2}}} )+{{#ifexpr:{{LOCALDOW}}=6|5|{{#ifexpr:{{LOCALDOW}}=0|5|{{LOCALDOW}} }} }} }}
                 {{#ifexpr:{{{1}}}=9|152|
                  {{#ifexpr:{{{1}}}=10|135|
                    {{#ifexpr:{{{1}}}=11|143<!-- {{#expr:5*( {{LOCALWEEK}}-{{{2}}} )+{{#ifexpr:{{LOCALDOW}}=6|5|{{#ifexpr:{{LOCALDOW}}=0|5|{{LOCALDOW}} }} }}+1 }}-->|1}}


}}
}}
Line 17: Line 19:
             }}
             }}
               }}
               }}
                 }}</includeonly><noinclude>
                 }}
Calculates the latest episode number given the season of the show you're interested in. For example, <code><nowiki>{{CurrEpNum|10|8}}</nowiki></code>= {{CurrEpNum|10|8}}.
                  }}</includeonly><noinclude>
Calculates the latest episode number given the season of the show you're interested in. For example, <code><nowiki>{{CurrEpNum|11|}}</nowiki></code>= {{#expr:{{CurrEpNum|11|}}}}.


Inputs:
Inputs:

Latest revision as of 20:30, 10 June 2024

Calculates the latest episode number given the season of the show you're interested in. For example, {{CurrEpNum|11|}}= 143.

Inputs:

  1. Season of the show.
  2. (Only if using for current season, otherwise, leave blank) Start week of current season (out of 52)