Template:TMPrevNext: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
m (update - again with the switches)
Line 1: Line 1:
{| align="center" style="background: #1E90FF; width: 100%; margin: 5px; -moz-border-radius: 10px;"
{| class="roundy" align="center" style="background: #{{TMs and HMs color dark}}; width: 100%; margin: 5px;"
|- align="center"
|- align="center"
| width="35%" style="background: #{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}|None|1E90FF|A6D4FF}}; -moz-border-radius-topleft: 10px; -moz-border-radius-bottomleft: 10px;" |  
| class="roundyleft" width="35%" style="background: #{{#ifeq: TM{{#expr:  {{{number|2}}} - 1}}|None|{{TMs and HMs color}}|{{TMs and HMs color light}}}};" |  
{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}|None| |
{{#ifeq: TM{{#expr:  {{{number|2}}} - 1}}|None| |
{{{!}} align="right" style="background: #A6D4FF; width:100%; -moz-border-radius-topleft: 10px; -moz-border-radius-bottomleft: 10px;"
{{{!}} class="roundyleft" align="right" style="background: #{{TMs and HMs color light}}; width:100%;"
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM92 | TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}}}|{{color|000|←}}]]
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr:  {{{number|2}}} - 1}}}}|{{color|000|←}}]]
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM92 | TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}}}|{{#ifeq: {{BASEPAGENAME}} | TM01 | {{color|000|TM92}} | {{color|000|TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}{{#if: |: ''''}}}}}}]]
{{!}} 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: |: ''''}}}}}}]]
{{!}}}
{{!}}}
}}
}}
| style="background: #A6D4FF" |  
| style="background: #{{TMs and HMs color light}}" |  
{| align="center" style="background: #A6D4FF; width:100%;"
{| align="center" style="background: #{{TMs and HMs color light}}; width:100%;"
| align="center" | [[Technical Machine|{{color|000|{{#switch: Technical Machines|AG|Advanced Generation|Advanced Generation series=''Advanced Generation'' series|DP|Diamond & Pearl|Diamond & Pearl series=''Diamond & Pearl'' series|{{ucfirst: Technical Machines}}}}}}]]
| align="center" | [[Technical Machine|{{color|000|Technical Machines}}]]
|}
|}
| width="35%" style="background: #{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}|None|1E90FF|A6D4FF}}; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px;" |  
| class="roundyright" width="35%" style="background: #{{#ifeq: TM{{#expr:  {{{number|2}}} + 1}}|None|{{TMs and HMs color}}|{{TMs and HMs color light}}}};" |  
{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}|None| |
{{#ifeq: TM{{#expr:  {{{number|2}}} + 1}}|None| |
{{{!}} align="left" style="background: #A6D4FF; width:100%; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px;"
{{{!}} class="roundyright" align="left" style="background: #{{TMs and HMs color light}}; width:100%;"
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM92 | TM01 | TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}}}|{{#ifeq: {{BASEPAGENAME}} | TM92 | {{color|000|TM01}} | {{color|000|TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}{{#if: |: ''''}}}}}}]]
{{!}} 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}} | TM92 | TM01 | TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}}}|{{color|000|→}}]]
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM95 | TM{{#expr:  {{{number|2}}} + 1}}}}|{{color|000|→}}]]
{{!}}}
{{!}}}
}}
}}
|}<noinclude>[[Category:PrevNext templates]]</noinclude>
|}<noinclude>[[Category:PrevNext templates]]</noinclude>

Revision as of 03:47, 18 September 2010