• 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"

From Kancolle Wiki
Jump to navigation Jump to search
(Current World/Map highlighted)
m
Line 1: Line 1:
 
__TOC__{{#vardefine:world#|{{#sub:{{#explode:{{{page|{{PAGENAME}}}}}|/|0}}|-1|1}}}}{{#vardefine:map#|{{#sub:{{#explode:{{{page|{{PAGENAME}}}}}|/|1}}|-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: {{#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: {{#ifeq:{{#var:map#|1}}|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: {{#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: {{#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: {{#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: {{#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>

Revision as of 10:53, 7 November 2022