Difference between revisions of "Template:TMPrevNext"

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search
m (update - again with the switches)
m (This should fix some problems.)
Line 4: Line 4:
 
{{#ifeq: TM{{#expr: {{{number|2}}} - 1}}|None| |
 
{{#ifeq: TM{{#expr: {{{number|2}}} - 1}}|None| |
 
{{{!}} class="roundyleft" align="right" style="background: #{{TMs and HMs color light}}; width:100%;"
 
{{{!}} class="roundyleft" align="right" style="background: #{{TMs and HMs color light}}; width:100%;"
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr: {{{number|2}}} - 1}}}}|{{color|000|←}}]]
+
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{padleft:{{#expr: {{{number|2}}} - 1}}|2}}}}|{{color|000|←}}]]
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr: {{{number|2}}} - 1}}}}|{{#ifeq: {{BASEPAGENAME}} | TM01 | {{color|000|TM95}} | {{color|000|TM{{#expr: {{{number|2}}} - 1}}{{#if: |: ''''}}}}}}]]
+
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{padleft:{{#expr: {{{number|2}}} - 1}}|2}}}}|{{#ifeq: {{BASEPAGENAME}} | TM01 | {{color|000|TM95}} | {{color|000|TM{{padleft:{{#expr: {{{number|2}}} - 1}}|2}}{{#if: |: ''''}}}}}}]]
 
{{!}}}
 
{{!}}}
 
}}
 
}}
Line 15: Line 15:
 
{{#ifeq: TM{{#expr: {{{number|2}}} + 1}}|None| |
 
{{#ifeq: TM{{#expr: {{{number|2}}} + 1}}|None| |
 
{{{!}} class="roundyright" align="left" style="background: #{{TMs and HMs color light}}; width:100%;"
 
{{{!}} class="roundyright" align="left" style="background: #{{TMs and HMs color light}}; width:100%;"
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr: {{{number|2}}} + 1}}}}|{{#ifeq: {{BASEPAGENAME}} | TM95 | {{color|000|TM01}} | {{color|000|TM{{#expr: {{{number|2}}} + 1}}{{#if: |: ''''}}}}}}]]
+
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM95 | TM01 | TM{{padleft:{{#expr: {{{number|2}}} + 1}}|2}}}}|{{#ifeq: {{BASEPAGENAME}} | TM95 | {{color|000|TM01}} | {{color|000|TM{{padleft:{{#expr: {{{number|2}}} + 1}}|2}}{{#if: |: ''''}}}}}}]]
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr: {{{number|2}}} + 1}}}}|{{color|000|→}}]]
+
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM95 | TM01 | TM{{padleft:{{#expr: {{{number|2}}} + 1}}|2}}}}|{{color|000|→}}]]
 
{{!}}}
 
{{!}}}
 
}}
 
}}

Revision as of 18:04, 29 September 2010

TM01
Technical Machines
TM03