Template:PkmnInfoTab: Difference between revisions
Jump to navigation
Jump to search
m (Getting frustrated with trying to figure this out, so I'm just taking a break because I have no idea what I'm actually doing. :< Feel free to edit, anyone.) |
m (Alright, let's just get a base to work with...) |
||
Line 4: | Line 4: | ||
{{PkmnInfoTab | {{PkmnInfoTab | ||
| | |tab1=Lunupine | ||
| | |tab2=Mega Lunupine Q | ||
}}</noinclude> | }}</noinclude> | ||
<includeonly> | <includeonly> | ||
<div style="font-weight:bold; text-align:center; margin-bottom:0px;"> | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link1|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | <table style="height:100%;width:100%;"><tr> | ||
<td style="vertical-align:center;">{{{tab1}}}</td></tr></table> | <td style="vertical-align:center;">{{{tab1}}} | ||
</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> | <table style="height:100%;width:100%;"><tr> | ||
<td style="vertical-align:center;">{{{tab2}}}</td></tr></table> | <td style="vertical-align:center;">[[{{{link1|{{{tab1}}}}}}{{!}}{{{tab1}}}]]</td> | ||
|}</includeonly> | </tr></table></div> | ||
}}{{#if:{{{tab2| }}}| | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link2|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<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;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<td style="vertical-align:center;">[[{{{link2|{{{tab2}}}}}}{{!}}{{{tab2}}}]] | |||
</td> | |||
</tr></table></div> | |||
}} | |||
}}{{#if:{{{tab3| }}}| | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link3|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<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;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<td style="vertical-align:center;">[[{{{link3|{{{tab3}}}}}}{{!}}{{{tab3}}}]] | |||
</td> | |||
</tr></table></div> | |||
}} | |||
}}{{#if: {{{tab4| }}}| | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link4|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<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;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<td style="vertical-align:center;">[[{{{link4|{{{tab4}}}}}}{{!}}{{{tab4}}}]] | |||
</td> | |||
</tr></table></div> | |||
}} | |||
}}{{#if: {{{tab5| }}}| | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link5|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<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;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<td style="vertical-align:center;">[[{{{link5|{{{tab5}}}}}}{{!}}{{{tab5}}}]] | |||
</td></tr></table></div> | |||
}} | |||
}}{{#if: {{{tab6| }}}| | |||
{{#ifeq:{{FULLPAGENAME}}|{{{link6|{{{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%;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<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;"> | |||
<table style="height:100%;width:100%;"><tr> | |||
<td style="vertical-align:center;">[[{{{link6|{{{tab6}}}}}}{{!}}{{{tab6}}}]] | |||
</td></tr></table></div> | |||
}} | |||
}} | |||
<div style="clear:both;"></div> | |||
</div></includeonly> |
Revision as of 06:01, 24 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.