Template:TabRow: Difference between revisions

From TowersWiki

(Fix for Tab links)
(Adding conditionals for tabs.)
Line 11: Line 11:


<div class="tabRow {{{name|}}}">
<div class="tabRow {{{name|}}}">
<div class="tab first {{{name|}}}">[[#{{{name|}}}_{{{1|}}}|{{{1}}}]]</div>
{{#if {{{1|}}}|<div class="tab first {{{name|}}}">[[#{{{name|}}}_{{{1|}}}|{{{1}}}]]</div>}}
<div class="tab second {{{name|}}}">[[#{{{name|}}}_{{{2|}}}|{{{2}}}]]</div>
{{#if {{{2|}}}|<div class="tab second {{{name|}}}">[[#{{{name|}}}_{{{2|}}}|{{{2}}}]]</div>}}
<div class="tab third {{{name|}}}">[[#{{{name|}}}_{{{3|}}}|{{{3}}}]]</div>
{{#if {{{3|}}}|<div class="tab third {{{name|}}}">[[#{{{name|}}}_{{{3|}}}|{{{3}}}]]</div>}}
<div class="tab fourth {{{name|}}}">[[#{{{name|}}}_{{{4|}}}|{{{4}}}]]</div>
{{#if {{{4|}}}|<div class="tab fourth {{{name|}}}">[[#{{{name|}}}_{{{4|}}}|{{{4}}}]]</div>}}
<div class="tab fifth {{{name|}}}">[[#{{{name|}}}_{{{5|}}}|{{{5}}}]]</div>
{{#if {{{5|}}}|<div class="tab fifth {{{name|}}}">[[#{{{name|}}}_{{{5|}}}|{{{5}}}]]</div>}}
<div class="tab sixth {{{name|}}}">[[#{{{name|}}}_{{{6|}}}|{{{6}}}]]</div>
{{#if {{{6|}}}|<div class="tab sixth {{{name|}}}">[[#{{{name|}}}_{{{6|}}}|{{{6}}}]]</div>}}
<div class="tab seventh {{{name|}}}">[[#{{{name|}}}_{{{7|}}}|{{{7}}}]]</div>
{{#if {{{7|}}}|<div class="tab seventh {{{name|}}}">[[#{{{name|}}}_{{{7|}}}|{{{7}}}]]</div>}}
<div class="tab eight {{{name|}}}">[[#{{{name|}}}_{{{8|}}}|{{{8}}}]]</div>
{{#if {{{8|}}}|<div class="tab eight {{{name|}}}">[[#{{{name|}}}_{{{8|}}}|{{{8}}}]]</div>}}
<div class="tab ninth {{{name|}}}">[[#{{{name|}}}_{{{9|}}}|{{{9}}}]]</div>
{{#if {{{9|}}}|<div class="tab ninth {{{name|}}}">[[#{{{name|}}}_{{{9|}}}|{{{9}}}]]</div>}}
<div class="tab tenth {{{name|}}}">[[#{{{name|}}}_{{{10|}}}|{{{10}}}]]</div>
{{#if {{{10|}}}|<div class="tab tenth {{{name|}}}">[[#{{{name|}}}_{{{10|}}}|{{{10}}}]]</div>}}
</div>
</div>

Revision as of 04:27, 21 July 2024


{{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}} {{#if |}}