- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:World/Hub"
Jump to navigation
Jump to search
m (quickfix) |
(Current World/Map highlighted) |
||
Line 1: | Line 1: | ||
− | __TOC__{{#vardefine:world#|{{#sub:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}|-1|1}}}} | + | __TOC__{{#vardefine:world#|{{#sub:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}|-1|1}}}}{{#vardefine:map#|{{#sub:{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}|-1|1}}}} |
− | <div><div id="world-select"style="float: left; position: relative; display: flex; bottom: -11px;"> | + | <div><div id="world-select" style="float: left; position: relative; display: flex; bottom: -11px;"> |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-1|{{#var:world#|?}}-1]]</div> | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|1|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-1|{{#var:world#|?}}-1]]</div> |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-2|{{#var:world#|?}}-2]]</div> | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|2|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-2|{{#var:world#|?}}-2]]</div> |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-3|{{#var:world#|?}}-3]]</div> | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|3|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-3|{{#var:world#|?}}-3]]</div> |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-4|{{#var:world#|?}}-4]]</div>{{#ifeq:{{#var:world#|?}}|7|| | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|4|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-4|{{#var:world#|?}}-4]]</div>{{#ifeq:{{#var:world#|?}}|7|| |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-5|{{#var:world#|?}}-5]]</div>{{#ifeq:{{#var:world#|?}}|1| | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|5|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-5|{{#var:world#|?}}-5]]</div>{{#ifeq:{{#var:world#|?}}|1| |
− | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-6|{{#var:world#|?}}-6]]</div>}}}} | + | <div class="faux-tabber" style="width: 24px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:map#|?}}|6|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World {{#var:world#|?}}/{{#var:world#|?}}-6|{{#var:world#|?}}-6]]</div>}}}} |
</div> | </div> | ||
<div id="world-select" style="float: right; position: relative; display: flex; bottom: -11px;"> | <div id="world-select" style="float: right; position: relative; display: flex; bottom: -11px;"> | ||
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 1]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|1|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 1]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 2]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|2|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 2]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 3]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|3|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 3]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 7]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|7|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 7]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 4]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|4|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 4]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 5]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|5|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 5]]</div> |
− | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: #F2F7FF; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 6]]</div> | + | <div class="faux-tabber" style="width: 53px; padding: 3px .5em; margin-left: 3px; border: 1px solid #CCC; border-bottom: none; background: {{#ifeq:{{#var:world#|?}}|6|white; height: 16px; margin-bottom: -1px|#F2F7FF}}; text-decoration: none; white-space: pre; font: bold 12px Verdana,sans-serif">[[World 6]]</div> |
</div></div>{{clear}}<noinclude> | </div></div>{{clear}}<noinclude> | ||
+ | |||
==Example World 6-1: 潜水艦作戦 Submarine Operation== | ==Example World 6-1: 潜水艦作戦 Submarine Operation== | ||
</noinclude> | </noinclude> |