Welcome to Square Enix Wiki! Be sure to check out our To-Do List to see what work we need done!
Difference between revisions of "Template:DivTabs"
From Square Enix Wiki, the Fan-wiki for all things Square Enix
Jump to navigationJump to search
(KeybladeSpyMaster, Removing "Doc" templates) |
|||
(10 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#ifeq: {{{ | {{#ifeq: {{{name|}}} | {{FULLPAGENAME}} | ||
| {{#vardefine: round-main | {{roundtop|15px}} | | {{#vardefine: round-main | {{roundtop|15px}} }} {{#vardefine: round-contents | {{roundtr|15px}}{{roundbottom|15px}} }} | ||
| {{#vardefine: round-main | {{round|15px}} | | {{#vardefine: round-main | {{round|15px}} }} {{#vardefine: round-contents | {{round|15px}} }} | ||
}}{{#ifeq: {{{1|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | }}{{#ifeq: {{{1|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | ||
| {{#vardefine: round-1 | {{roundtop|15px}} | | {{#vardefine: round-1 | {{roundtop|15px}} }} | ||
| {{#vardefine: round-1 | {{round|15px}} | | {{#vardefine: round-1 | {{round|15px}} }} | ||
}}{{#ifeq: {{{2|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | }}{{#ifeq: {{{2|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | ||
| {{#vardefine: round-2 | {{roundtop|15px}} | | {{#vardefine: round-2 | {{roundtop|15px}} }} | ||
| {{#vardefine: round-2 | {{round|15px}} | | {{#vardefine: round-2 | {{round|15px}} }} | ||
}}{{#ifeq: {{{3|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | }}{{#ifeq: {{{3|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | ||
| {{#vardefine: round-3 | {{roundtop|15px}} | | {{#vardefine: round-3 | {{roundtop|15px}} }} | ||
| {{#vardefine: round-3 | {{round|15px}} | | {{#vardefine: round-3 | {{round|15px}} }} | ||
}}{{#ifeq: {{{4|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | }}{{#ifeq: {{{4|}}} | {{#titleparts: {{PAGENAME}} | 1 | 2 }} | ||
| {{#vardefine: round-4 | {{roundtop|15px}} | | {{#vardefine: round-4 | {{roundtop|15px}} }} | ||
| {{#vardefine: round-4 | {{round|15px}} | | {{#vardefine: round-4 | {{round|15px}} }} | ||
}}<div style="text-align:center"> | }}<div style="text-align:center"> | ||
{{#if: {{{main|}}} | | {{#if: {{{main|}}} | | ||
{{DivTabs/cell|name={{{name}}}|{{{1}}}|main={{{main}}}|main-text={{{main-text}}} | round = {{#var: round-main}} }} | {{DivTabs/cell|colorscheme={{{colorscheme}}}|name={{{name}}}|{{{1}}}|main={{{main}}}|main-text={{{main-text}}} | round = {{#var: round-main}} }} | ||
|}} | |}} | ||
{{#if: {{{1|}}} | {{DivTabs/cell|name={{{name}}}|{{{1}}} | round = {{#var: round-1}} }} }} | {{#if: {{{1|}}} | {{DivTabs/cell|colorscheme={{{colorscheme}}}|name={{{name}}}|{{{1}}} | round = {{#var: round-1}} }} }} | ||
{{#if: {{{2|}}} | {{DivTabs/cell|name={{{name}}}|{{{2}}} | round = {{#var: round-2}} }} }} | {{#if: {{{2|}}} | {{DivTabs/cell|colorscheme={{{colorscheme}}}|name={{{name}}}|{{{2}}} | round = {{#var: round-2}} }} }} | ||
{{#if: {{{3|}}} | {{DivTabs/cell|name={{{name}}}|{{{3}}} | round = {{#var: round-3}} }} }} | {{#if: {{{3|}}} | {{DivTabs/cell|colorscheme={{{colorscheme}}}|name={{{name}}}|{{{3}}} | round = {{#var: round-3}} }} }} | ||
{{#if: {{{4|}}} | {{DivTabs/cell|name={{{name}}}|{{{4}}} | round = {{#var: round-4}} }} }} | {{#if: {{{4|}}} | {{DivTabs/cell|colorscheme={{{colorscheme}}}|name={{{name}}}|{{{4}}} | round = {{#var: round-4}} }} }} | ||
</div> | </div> | ||
<div style="clear:both; width:98%; padding:5px; border:2px solid # | <div style="{{#var: round-contents}}; clear:both; width:98%; padding:5px; border:2px solid #{{{{{colorscheme|Square Enix}}} 3rd color}}; background-color:#{{{{{colorscheme|Square Enix}}} 1st color}};color:#{{{{{colorscheme|Square Enix}}} text color}};"><noinclude> | ||
</div> | </div> | ||
<noinclude> | <noinclude> | ||
Q designed by [[wikisimpsons:User:Simpsons88|Simpsons88]]. | Q designed by [[wikisimpsons:User:Simpsons88|Simpsons88]]. | ||
[[Category:Templates|Tab]][[sv:Mall:Tab]] | [[Category:Templates|Tab]][[sv:Mall:Tab]] | ||
</noinclude> | </noinclude> |