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

From Wikitech-static
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:Eckert-iv-atlantic.jpg|{{{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="
--><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: 20%; left: 28.5%;
  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: 25.7%; left: 22.8%;
  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: 10.5%; left: 50.0%;
  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: 18.9%; left: 18.6%;
  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: 45.7%; left: 77.8%;
  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: 18.4%; left: 51.1%;
  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:Eckert-iv-atlantic.jpg]] (Jordan Engel, CC BY-SA 4.0)
* [[: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

Map of Wikimedia Foundation data centers.

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}}

Map of Wikimedia Foundation data centers.

See also