Difference between revisions of "Template:CurrEpNum"

From The Star Wars Minute Wiki
Jump to navigation Jump to search
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{{1}}}=1|122|
<includeonly>{{#ifexpr:{{{1}}}=1|122|
   {{#ifexpr:{{{1}}}=2|125|
   {{#ifexpr:{{{1}}}=2|126|
     {{#ifexpr:{{{1}}}=3|132|
     {{#ifexpr:{{{1}}}=3|133|
       {{#ifexpr:{{{1}}}=4|137|
       {{#ifexpr:{{{1}}}=4|139|
         {{#ifexpr:{{{1}}}=5|143|
         {{#ifexpr:{{{1}}}=5|144|
           {{#ifexpr:{{{1}}}=6|141|
           {{#ifexpr:{{{1}}}=6|141|
             {{#ifexpr:{{{1}}}=7|139|
             {{#ifexpr:{{{1}}}=7|139|
               {{#ifexpr:{{{1}}}=8|134|
               {{#ifexpr:{{{1}}}=8|135|
                 {{#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|
                  {{#ifexpr:{{{1}}}=10|135|
                    {{#ifexpr:{{{1}}}=11|<!-- {{#expr:5*( {{LOCALWEEK}}-{{{2}}} )+{{#ifexpr:{{LOCALDOW}}=6|5|{{#ifexpr:{{LOCALDOW}}=0|5|{{LOCALDOW}} }} }}+1 }}-->143 }}


}}
}}
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|6}}</nowiki></code>={{CurrEpNum|10|3}}.
                  }}</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|}}-1}}.


Inputs:
Inputs:
<ol><li>Season of the show<br>
<ol><li>Season of the show.</li>
----
<li>(Only if using for current season, otherwise, leave blank) Start week of current season (out of 52)</li></ol>
Only if using for current season, otherwise, leave blank.</li>
<li>Start week of current season</li></ol>
[[Category:Wiki]]</noinclude>
[[Category:Wiki]]</noinclude>

Latest revision as of 07:54, 1 November 2023

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

Inputs:

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