Difference between revisions of "Template:CurrEpNum"

From The Star Wars Minute Wiki
Jump to navigation Jump to search
Line 7: Line 7:
             {{#ifexpr:{{{1}}}=7|139|
             {{#ifexpr:{{{1}}}=7|139|
               {{#ifexpr:{{{1}}}=8|134|
               {{#ifexpr:{{{1}}}=8|134|
                 {{#ifexpr:{{{1}}}=9|152|{{#expr:({{LOCALWEEK}}-1)*5+{{#ifexpr:{{LOCALDOW}}=6|5|{{LOCALDOW}} }}-({{{2}}}-1)*5+{{#ifexpr:{{LOCALDOW}}=6|5|{{LOCALDOW}} }} }}
                 {{#ifexpr:{{{1}}}=9|152|{{#expr:({{LOCALWEEK}}-1)*5+{{#ifexpr:{{LOCALDOW}}=6|5|{{LOCALDOW}} }}-{{{2}}}*5+{{#ifexpr:{{LOCALDOW}}=6|5|{{LOCALDOW}} }} }}


}}
}}
Line 18: Line 18:
               }}
               }}
                 }}</includeonly><noinclude>
                 }}</includeonly><noinclude>
Calculates the latest episode number given the season of the show you're interested in. For example, <code><nowiki>{{CurrEpNum|6}}</nowiki></code>={{CurrEpNum|10|3}}.
Calculates the latest episode number given the season of the show you're interested in. For example, <code><nowiki>{{CurrEpNum|9}}</nowiki></code>= {{CurrEpNum|9}}.


Inputs:
Inputs:

Revision as of 11:26, 6 January 2022

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

Inputs:

  1. Season of the show

    Only if using for current season, otherwise, leave blank.
  2. Start week of current season