Template:PkmnInfoTab: Difference between revisions

From PokéFarm Q Official Wiki
Jump to navigation Jump to search
m (Alright, let's just get a base to work with...)
(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...)
Line 10: Line 10:
<includeonly>
<includeonly>
<div style="font-weight:bold; text-align:center; margin-bottom:0px;">
<div style="font-weight:bold; text-align:center; margin-bottom:0px;">
{{#ifeq:{{FULLPAGENAME}}|{{{link1|{{{tab1}}}}}}|  
{{#ifeq:{{FULLPAGENAME}}|{{{tab1}}}|  
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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}}}
</td></tr></table></div>
</td></tr></table></div>
|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<table style="height:100%;width:100%;"><tr>
<td style="vertical-align:center;">[[{{{link1|{{{tab1}}}}}}{{!}}{{{tab1}}}]]</td>
</tr></table></div>
}}{{#if:{{{tab2| }}}|
}}{{#if:{{{tab2| }}}|
{{#ifeq:{{FULLPAGENAME}}|{{{link2|{{{tab2}}}}}}|
{{#ifeq:{{FULLPAGENAME}}|{{{tab2}}}|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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 style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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;">[[{{{link2|{{{tab2}}}}}}{{!}}{{{tab2}}}]]
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab2}}}]]
</td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
}}{{#if:{{{tab3| }}}|
}}{{#if:{{{tab3| }}}|
{{#ifeq:{{FULLPAGENAME}}|{{{link3|{{{tab3}}}}}}|
{{#ifeq:{{FULLPAGENAME}}{{{tab3}}}|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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 style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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;">[[{{{link3|{{{tab3}}}}}}{{!}}{{{tab3}}}]]
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab3}}}]]
</td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
}}{{#if: {{{tab4| }}}|
}}{{#if: {{{tab4| }}}|
{{#ifeq:{{FULLPAGENAME}}|{{{link4|{{{tab4}}}}}}|
{{#ifeq:{{FULLPAGENAME}}|{{{tab4}}}|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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 style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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;">[[{{{link4|{{{tab4}}}}}}{{!}}{{{tab4}}}]]
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab4}}}]]
</td>
</td>
</tr></table></div>
</tr></table></div>
}}
}}
}}{{#if: {{{tab5| }}}|
}}{{#if: {{{tab5| }}}|
{{#ifeq:{{FULLPAGENAME}}|{{{link5|{{{tab5}}}}}}|
{{#ifeq:{{FULLPAGENAME}}|{{{tab5}}}|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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 style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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;">[[{{{link5|{{{tab5}}}}}}{{!}}{{{tab5}}}]]
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab5}}}]]
</td></tr></table></div>
</td></tr></table></div>
}}
}}
}}{{#if: {{{tab6| }}}|
}}{{#if: {{{tab6| }}}|
{{#ifeq:{{FULLPAGENAME}}|{{{link6|{{{tab6}}}}}}|
{{#ifeq:{{FULLPAGENAME}}|{{{tab6}}}|
<div style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px; background-color:{{{backcolor|#DDDDDD}}}; color: black; font-size:100%;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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 style="min-width:{{{minwidth|5.0}}}em; max-width:{{{maxwidth|12}}}em; float:left; border:1.5px solid gray; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; border-top-right-radius: 4px; border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; padding: .0em 0.5em; height:{{{height|3.8}}}em; margin-bottom:10px;">
<div style="image-rendering: pixelated; image-rendering: crisp-images; margin-left: auto; margin: 0 0 0 10px; float: right; width: 275px; border: 2px solid #332211; border-radius: 14px 14px 8px 8px; background-color: #c1d091; color: #004000; border-spacing: 4px 0; padding: 4px 0;" align="center">
<table style="height:100%;width:100%;"><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;">[[{{{link6|{{{tab6}}}}}}{{!}}{{{tab6}}}]]
<td style="vertical-align:center;">[[{{FULLPAGENAME}}|{{{tab6}}}]]
</td></tr></table></div>
</td></tr></table></div>
}}
}}

Revision as of 04:46, 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.