Difference between revisions of "Template:SeasonSwitcher"

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>
<includeonly>
{{#ifexpr:{{{1}}}=10|1
{{#ifexpr:{{{1}}}=11|{{#expr:1}}
  |{{#ifexpr:{{{1}}}=9|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+1}}|8}}+9}}
|{{#ifexpr:{{{1}}}=10|{{#expr:{{CurrEpNum|11|}}+1+1}}
    |{{#ifexpr:{{{1}}}=8|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+2}}|8}}+9+135+18}}
  |{{#ifexpr:{{{1}}}=9|{{#expr:{{CurrEpNum|11|}}+1+1+135+8}}
          |{{#ifexpr:{{{1}}}=7|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+3}}|8}}+9+135+5+139+11}}
    |{{#ifexpr:{{{1}}}=8|{{#expr:{{CurrEpNum|11|}}+1+1+135+8+152}}
                |{{#ifexpr:{{{1}}}=6|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+4}}|8}}+9+135+5+139+4+141+9}}
      |{{#ifexpr:{{{1}}}=7|{{#expr:{{CurrEpNum|11|}}+1+1+135+8+152+138}}
                  |{{#ifexpr:{{{1}}}=5|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+5}}|8}}+8+152+135+5+139+4+141+3}}
        |{{#ifexpr:{{{1}}}=6|{{#expr:{{CurrEpNum|11|}}+1+1+135+8+152+139+1+141}}
                    |{{#ifexpr:{{{1}}}=4|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+6}}|8}}+8+152+135+5+139+4+141+5+144+1}}
                      |{{#ifexpr:{{{1}}}=3|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+7}}|8}}+8+152+135+5+139+4+141+5+144+3+139+1}}
                        |{{#ifexpr:{{{1}}}=2|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+8}}|8}}+8+152+135+5+139+4+141+5+144+3+139+1+133+5}}
                          |{{#ifexpr:{{{1}}}=1|{{#expr:{{CurrEpNum|{{#expr:{{{1}}}+9}}|8}}+8+152+135+5+139+4+141+5+144+3+139+1+133+5+122}}
}}
}}
   }}
   }}
Line 16: Line 12:
         }}
         }}
           }}
           }}
            }}
</includeonly><noinclude><u>Syntax:</u>
              }}
                }}
                  }}


</includeonly><noinclude><u>Inputs:</u>
<code><nowiki>{{SeasonSwitcher| {{{1}}} }} = {{{2}}}</nowiki></code>
#SWM season
<u>Outputs:</u>
#Number in feed of latest episode of specified season[[Category:Wiki]]


<u>Dependencies</u>
<u>Input(s):</u>
<ol><li>SWM season</li></ol>
<u>Output(s):</u>
<ol start="2"><li>Number in feed of latest episode of specified season</li></ol>[[Category:Wiki]]
 
<u>Dependencies:</u>


This template requires the following other templates to work properly:
This template requires the following other templates to work properly:
*<code>[[Template:CurrEpNum]]</code></noinclude>
*<code>[[Template:CurrEpNum]]</code></noinclude>

Latest revision as of 20:10, 26 May 2024

Syntax:

{{SeasonSwitcher| {{{1}}} }} = {{{2}}}

Input(s):

  1. SWM season

Output(s):

  1. Number in feed of latest episode of specified season

Dependencies:

This template requires the following other templates to work properly: