Template:PkmnInfoTab: Difference between revisions
Jump to navigation
Jump to search
(Thanks to Niet, -webkit- and -moz- have been removed from an outdated base. Also added attributes of Template:PkmnInfo. Next part: figuring out how to condense this into shorter code...) |
m (First thing's first: Get Niet's suggestion out of the way.) |
||
Line 9: | Line 9: | ||
<includeonly> | <includeonly> | ||
<div | <div> | ||
{{#ifeq:{{FULLPAGENAME}}| | {{#ifeq:{{FULLPAGENAME}}|tab1| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">{{{tab1}}} | <td style="vertical-align:center;">{{{tab1}}} | ||
Line 17: | Line 17: | ||
}}{{#if:{{{tab2| }}}| | }}{{#if:{{{tab2| }}}| | ||
{{#ifeq:{{FULLPAGENAME}}|{{{tab2}}}| | {{#ifeq:{{FULLPAGENAME}}|{{{tab2}}}| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">tab2</td></tr></table></div> | <td style="vertical-align:center;">tab2</td></tr></table></div> | ||
| | | | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab2}}}]] | <td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab2}}}]] | ||
Line 29: | Line 29: | ||
}}{{#if:{{{tab3| }}}| | }}{{#if:{{{tab3| }}}| | ||
{{#ifeq:{{FULLPAGENAME}}{{{tab3}}}| | {{#ifeq:{{FULLPAGENAME}}{{{tab3}}}| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">{{{tab3}}}</td></tr></table></div> | <td style="vertical-align:center;">{{{tab3}}}</td></tr></table></div> | ||
| | | | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab3}}}]] | <td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab3}}}]] | ||
Line 41: | Line 41: | ||
}}{{#if: {{{tab4| }}}| | }}{{#if: {{{tab4| }}}| | ||
{{#ifeq:{{FULLPAGENAME}}|{{{tab4}}}| | {{#ifeq:{{FULLPAGENAME}}|{{{tab4}}}| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">{{{tab4}}}</td></tr></table></div> | <td style="vertical-align:center;">{{{tab4}}}</td></tr></table></div> | ||
| | | | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab4}}}]] | <td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab4}}}]] | ||
Line 53: | Line 53: | ||
}}{{#if: {{{tab5| }}}| | }}{{#if: {{{tab5| }}}| | ||
{{#ifeq:{{FULLPAGENAME}}|{{{tab5}}}| | {{#ifeq:{{FULLPAGENAME}}|{{{tab5}}}| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">{{{tab5}}}</td></tr></table></div> | <td style="vertical-align:center;">{{{tab5}}}</td></tr></table></div> | ||
| | | | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab5}}}]] | <td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab5}}}]] | ||
Line 64: | Line 64: | ||
}}{{#if: {{{tab6| }}}| | }}{{#if: {{{tab6| }}}| | ||
{{#ifeq:{{FULLPAGENAME}}|{{{tab6}}}| | {{#ifeq:{{FULLPAGENAME}}|{{{tab6}}}| | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">{{{tab6}}}</td></tr></table></div> | <td style="vertical-align:center;">{{{tab6}}}</td></tr></table></div> | ||
| | | | ||
<div | <div> | ||
<table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | <table style="font-size: 16pt; border: 1px solid #332211; background-color: #64493e; color: #CCCCCC; padding: 4px; border-radius: 10px;"><tr> | ||
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab6}}}]] | <td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab6}}}]] |
Revision as of 21:45, 25 November 2016
- Note: The template does not display properly with undefined variables. As such, the example displayed has been filled with Lunupine's information.
- Note: Template is to be used with Template:PkmnInfo.