Template:TMPrevNext: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (Testing out a fix for a bug on TM92)
mNo edit summary
 
(16 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{| align="center" style="background: #1E90FF; width: 100%; margin: 5px; -moz-border-radius: 10px;"
{| class="roundy" style="background: #{{TMs and HMs color dark}}; width: 100%; margin: 5px;"
|- 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" style="text-align:right; background: #{{TMs and HMs color light}}; width: 35%" |
{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} - 1}}|2|0}}|None| |
{| style="width:100%"
{{{!}} align="right" style="background: #A6D4FF; width:100%; -moz-border-radius-topleft: 10px; -moz-border-radius-bottomleft: 10px;"
| {{color2|000|{{#ifeq: {{BASEPAGENAME}} | TM00 | TM229 | TM{{padleft:{{#expr: {{{number|1}}} - 1}}|{{#if: {{{number|1}}}|2|3}}}} }}|←}}
{{!}} align="right" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM01 | TM92 | TM{{padleft:{{#expr: {{{number|2}}} - 1}}|2|0}}}}|{{color|000|←}}]]
| {{color2|000|{{#ifeq: {{BASEPAGENAME}} | TM00 | TM229 | TM{{padleft:{{#expr: {{{number|1}}} - 1}}|{{#if: {{{number|1}}}|2|3}}}} }}}}
{{!}} 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: |: ''''}}}}}}]]
{{!}}}
}}
| style="background: #A6D4FF" |
{| align="center" style="background: #A6D4FF; 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}}}}}}]]
|}
|}
| 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;" |  
| style="background: #{{TMs and HMs color light}}; text-align: center" | [[TM|{{color|000|Technical Machines}}]]
{{#ifeq: TM{{padleft:{{#expr:  {{{number|2}}} + 1}}|2|0}}|None| |
| class="roundyright" style="background: #{{TMs and HMs color light}}; width: 35%" |
{{{!}} align="left" style="background: #A6D4FF; width:100%; -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px;"
{| style="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: |: ''''}}}}}}]]
| {{color2|000|{{#ifeq: {{BASEPAGENAME}} | TM229 | TM00 | TM{{padleft:{{#expr: {{{number|2}}} + 1}}|3}} }}}}
{{!}} align="left" {{!}} [[{{#ifeq: {{BASEPAGENAME}} | TM92 | TM01 | TM{{padleft:{{#expr: {{{number|2}}} + 1}}|2|0}}|{{color|000|→}}}}]]
| {{color2|000|{{#ifeq: {{BASEPAGENAME}} | TM229 | TM00 | TM{{padleft:{{#expr: {{{number|2}}} + 1}}|3}} }}|→}}
{{!}}}
|}
}}
|}<includeonly>[[Category:TMs]]</includeonly><noinclude>
|}<noinclude>[[Category:Navigation templates]]</noinclude>
 
[[Category:PrevNext templates]]
</noinclude>

Latest revision as of 17:40, 9 January 2024