You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:ClusterMap: Difference between revisions
Jump to navigation
Jump to search
imported>Krinkle No edit summary |
imported>Krinkle (Convert to high contrast hand drawn map, as proposed by User:Effie Mouzeli at Template:ClusterMap1 in May 2019) |
||
Line 11: | Line 11: | ||
Otherwise, relatively positioned DCs will end up in wrong location based on viewport width. | Otherwise, relatively positioned DCs will end up in wrong location based on viewport width. | ||
--><div class="tpl-clustermap {{#ifeq:{{{thumb|}}}|1|thumbimage}} {{#ifeq:{{{minimap|}}}|1|tpl-clustermap--minimap}}">[[File: | --><div class="tpl-clustermap {{#ifeq:{{{thumb|}}}|1|thumbimage}} {{#ifeq:{{{minimap|}}}|1|tpl-clustermap--minimap}}">[[File:Simplified_blank_world_map_without_Antartica_(no_borders).svg|{{{width|700}}}px|link=|A map of the world showing where Wikimedia Foundation data centers are located.]]<div class="tpl-clustermap-dc tpl-clustermap-dc--eqiad" style=" | ||
top: | top: 25.0%; left: 19.5%; | ||
">[[Eqiad data center|<strong title="Ashburn, Virginia, United States" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">eqiad</strong>]]</div> | ">[[Eqiad data center|<strong title="Ashburn, Virginia, United States" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">eqiad</strong>]]</div> | ||
<div class="tpl-clustermap-dc tpl-clustermap-dc--codfw" style=" | <div class="tpl-clustermap-dc tpl-clustermap-dc--codfw" style=" | ||
top: | top: 32.7%; left: 12.8%; | ||
">[[Codfw data center|<strong title="Carrollton, Texas, United States" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">codfw</strong>]]</div> | ">[[Codfw data center|<strong title="Carrollton, Texas, United States" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">codfw</strong>]]</div> | ||
<div class="tpl-clustermap-dc tpl-clustermap-dc--esams" style=" | <div class="tpl-clustermap-dc tpl-clustermap-dc--esams" style=" | ||
top: | top: 17.2%; left: 41.8%; | ||
">[[Esams data center|<strong title="Amsterdam, The Netherlands" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">esams</strong>]]</div> | ">[[Esams data center|<strong title="Amsterdam, The Netherlands" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">esams</strong>]]</div> | ||
<div class="tpl-clustermap-dc tpl-clustermap-dc--ulsfo" style=" | <div class="tpl-clustermap-dc tpl-clustermap-dc--ulsfo" style=" | ||
top: | top: 28.1%; left: 5.8%; | ||
">[[Ulsfo data center|<strong title="San Francisco, California, United States" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--left">ulsfo</strong>]]</div> | ">[[Ulsfo data center|<strong title="San Francisco, California, United States" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--left">ulsfo</strong>]]</div> | ||
<div class="tpl-clustermap-dc tpl-clustermap-dc--eqsin" style=" | <div class="tpl-clustermap-dc tpl-clustermap-dc--eqsin" style=" | ||
top: | top: 53.7%; left: 71.8%; | ||
">[[Eqsin data center|<strong title="Singapore" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">eqsin</strong>]]</div> | ">[[Eqsin data center|<strong title="Singapore" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">eqsin</strong>]]</div> | ||
<div class="tpl-clustermap-dc tpl-clustermap-dc--drmrs" style=" | <div class="tpl-clustermap-dc tpl-clustermap-dc--drmrs" style=" | ||
top: | top: 26.1%; left: 42.4%; | ||
">[[Drmrs data center|<strong title="Marseille, France" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">drmrs</strong>]]</div> | ">[[Drmrs data center|<strong title="Marseille, France" class="tpl-clustermap-label tpl-clustermap-label--bottom tpl-clustermap-label--right">drmrs</strong>]]</div> | ||
{{#ifeq:{{{thumb|}}}|1 | {{#ifeq:{{{thumb|}}}|1 | ||
Line 68: | Line 68: | ||
== See also == | == See also == | ||
* [[:File: | * [[:File:Simplified_blank_world_map_without_Antartica_(no_borders).svg]] by [[commons:User:Skimel|Skimel]] (Public domain) | ||
* [[Data centers]] | * [[Data centers]] | ||
* [[Template:BastionMap]] | * [[Template:BastionMap]] |
Latest revision as of 23:30, 17 June 2022
Usage
{{ClusterMap}}
<templatedata> { "params": { "thumb": { "type": "boolean" }, "width": { "type": "number", "default": "700" }, "caption": { "type": "content" } }, "format": "inline", "description": " Map of Wikimedia Foundation data centers.", "paramOrder": [ "thumb", "width", "caption" ] } </templatedata>
Example
{{ClusterMap|thumb=1|caption=Hello world.}}
{{ClusterMap|minimap=1|width=300}}