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 mNo edit summary |
||
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 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: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=" | ||
top: 20%; left: 28.5%; | top: 20%; left: 28.5%; | ||
">[[Eqiad cluster|<strong title="Ashburn, Virginia, United States" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">eqiad</strong>]]</div> | ">[[Eqiad cluster|<strong title="Ashburn, Virginia, United States" class="tpl-clustermap-label tpl-clustermap-label--top tpl-clustermap-label--right">eqiad</strong>]]</div> |
Revision as of 17:10, 14 January 2022
Usage
{{ClusterMap}}
<templatedata> { "params": { "thumb": { "type": "boolean" }, "width": { "type": "number", "default": "700" }, "caption": { "type": "content" } }, "format": "inline", "description": " Map of Wikimedia Foundation clusters.", "paramOrder": [ "thumb", "width", "caption" ] } </templatedata>
Example
{{ClusterMap|thumb=1|caption=Hello world.}}
{{ClusterMap|minimap=1|width=300}}
See also
- File:Eckert-iv-atlantic.jpg (Jordan Engel, CC BY-SA 4.0)
- Clusters
- Template:BastionMap
- Template:ClusterMap/style.css