Difference between revisions of "Template:CurrEpNum"

From The Star Wars Minute Wiki
Jump to navigation Jump to search
Tag: Reverted
Tag: Reverted
Line 8: Line 8:
               {{#ifexpr:{{{1}}}=8|135|
               {{#ifexpr:{{{1}}}=8|135|
                 {{#ifexpr:{{{1}}}=9|152|
                 {{#ifexpr:{{{1}}}=9|152|
                   {{#ifexpr:{{LOCALDOW}}=0|{{#expr:5+5*({{LOCALWEEK}}-{{{2}}}-1)}|{{#expr:5*( {{LOCALWEEK}}-{{{2}}} )+{{#ifexpr:{{LOCALDOW}}=6|5|{{LOCALDOW}} }} }} }}
                   {{#ifexpr:{{LOCALDOW}}=0|{{#expr:5+5*({{LOCALWEEK}}-{{{2}}}-1)}}|
 
                    {{#expr:5*( {{LOCALWEEK}}-{{{2}}} )+{{#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|10|8}}</nowiki></code>= {{CurrEpNum|10|8}}.
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}}.



Revision as of 10:16, 27 February 2022

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

                   }}.

Inputs:

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