Jdrewniak has uploaded a new change for review.
https://gerrit.wikimedia.org/r/248563
Change subject: inlining CSS and JS files, adding gulp build process.
......................................................................
inlining CSS and JS files, adding gulp build process.
Change-Id: If8a6a93ff6b761cf64902d696cc5c934042aec60
---
A .gitignore
A dev/wikipedia.org/assets/css/wm-portal.css
A dev/wikipedia.org/assets/js/wm-portal.js
A dev/wikipedia.org/index.html
A gulpfile.js
A package.json
M prod/wikipedia.org/index.html
7 files changed, 1,620 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/wikimedia/portals
refs/changes/63/248563/1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..34977ee
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+.idea
\ No newline at end of file
diff --git a/dev/wikipedia.org/assets/css/wm-portal.css
b/dev/wikipedia.org/assets/css/wm-portal.css
new file mode 100644
index 0000000..c33119b
--- /dev/null
+++ b/dev/wikipedia.org/assets/css/wm-portal.css
@@ -0,0 +1,477 @@
+/**
+ * This is the stylesheet for the [[m:Project portal]] templates.
+ * It should loosely match the style of MediaWiki's Vector theme
+ * for consistency.
+ * Colors from ./skins/Vector/screen.css
+ *
+ * Indention style: 1 tab
+ *
+ * Don't be afraid to document changes here with comments, this stylesheet
+ * is loaded through ResourceLoader on the portal pages and as such is minified
+ * and sqeezed into a tiny package delivered from bits.wikimedia.org
+ *
+ * Usage:
+ * <link rel="stylesheet"
href="//meta.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.gadget.wm-portal&only=styles&skin=vector&*">
+ *
+ * (if RTL flipping is needed, replace lang=en with the correct language)
+ */
+
+body {
+ background-color: white;
+ font: 13px/1.5 sans-serif;
+ margin: 0.3em 0;
+}
+
+a,
+a:active,
+a:focus {
+ unicode-bidi: embed;
+ white-space: nowrap;
+ outline: 0;
+ color: #0645AD;
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+img {
+ border: none;
+ vertical-align: middle;
+}
+
+hr {
+ height: 1px;
+ color: #aaa;
+ background-color: #aaa;
+ border: 0 none;
+ margin: 0.2em 0;
+}
+
+/**
+ * Alternative link style
+ */
+a.extiw,
+a.extiw:active,
+a.extiw:visited,
+a.extiw:active,
+a.external,
+a.external:visited,
+a.external:active {
+ color: #36b;
+}
+
+/**
+ * Central logo area for wiki-project portals
+ * (e.g. where the globe is on www.wikipedia.org)
+ */
+.central-textlogo {
+ margin: 1em 0 0.3em 0;
+ text-align: center;
+ font-size: 30px;
+ line-height: 110%;
+ font-family: 'Linux Libertine', 'Hoefler Text', Georgia, 'Times New
Roman', Times, serif;
+ font-weight: normal;
+ padding: 10px 0;
+ /* Crossed W in Linux Libertine */
+ -moz-font-feature-settings: "ss05=1"; -moz-font-feature-settings: "ss05";
+ -webkit-font-feature-settings: "ss05";
+ -ms-font-feature-settings: "ss05";
+ font-feature-settings: "ss05";
+}
+
+.central-featured {
+ position: relative;
+ text-align: center;
+ vertical-align: middle;
+ max-width: 100%;
+ width: 42em;
+ margin: 0 auto;
+ height: 26em;
+}
+
+.central-featured-logo {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 0;
+ height: 0;
+}
+
+.central-featured-logo-inner {
+ position: relative;
+ left: -100px;
+ top: -115px;
+ width: 200px;
+ height: 200px;
+}
+
+.central-featured-lang {
+ position: absolute;
+ width: 12em;
+}
+
+/* Make entire block clickable, surpress hover underline */
+.central-featured-lang .link-box {
+ display: block;
+ padding: 0;
+ text-decoration: none;
+}
+/* Restore underline on main label */
+.central-featured-lang .link-box:hover strong {
+ text-decoration: underline;
+}
+/* Surpress blue color */
+.central-featured-lang .link-box em,
+.central-featured-lang .link-box small {
+ color: black;
+ text-decoration: none;
+}
+
+.central-featured-lang strong {
+ font-size: larger;
+}
+
+.central-featured-lang em {
+ font-style: italic;
+}
+
+.central-featured-lang em.emNonItalicLang {
+ font-style: normal;
+}
+
+.lang1 {
+ top: 0%;
+ right: 60%;
+}
+.lang2 {
+ top: 0%;
+ left: 60%;
+}
+.lang3 {
+ top: 20%;
+ right: 70%;
+}
+.lang4 {
+ top: 20%;
+ left: 70%;
+}
+.lang5 {
+ top: 40%;
+ right: 72%;
+}
+.lang6 {
+ top: 40%;
+ left: 72%;
+}
+.lang7 {
+ top: 60%;
+ right: 70%;
+}
+.lang8 {
+ top: 60%;
+ left: 70%;
+}
+.lang9 {
+ top: 80%;
+ right: 60%;
+}
+.lang10 {
+ top: 80%;
+ left: 60%;
+}
+
+/**
+ * Search bar below the central logo area
+ */
+.search-container {
+ float: none;
+ margin: 1em auto 1.5em auto;
+ max-width: 95%;
+ padding: 0.3em;
+ text-align: center;
+ vertical-align: middle;
+ width: 540px;
+}
+
+.search-container h5 {
+ white-space: normal;
+}
+
+.search-container label span {
+ white-space: nowrap;
+}
+
+.search-form fieldset {
+ background-color: #f9f9f9;
+ border: 1px solid #aaa;
+ margin-top: 0.5em;
+ padding: 0.7em;
+ width: auto;
+}
+
+.search-form #searchInput {
+ font-size: 1.2em;
+ margin: 0;
+ padding: 0;
+ vertical-align: top;
+}
+
+.search-form select {
+ margin: 0 0.4em;
+ padding: 0;
+ vertical-align: middle;
+}
+
+.search-form .searchButton {
+ font-size: 1.2em;
+ margin: 0;
+ padding: 0;
+ vertical-align: middle;
+}
+
+/**
+ * Language lists, bookshelves, etc.
+ */
+.bookshelf-container {
+ width: 100%;
+ overflow: hidden;
+ margin: 2em 0 0.5em 0;
+}
+
+.bookshelf-container-small {
+ margin: 0.5em 0;
+}
+
+.bookshelf {
+ width: 300%;
+ overflow: hidden;
+ position: relative;
+ left: -100%;
+ text-align: center;
+ white-space: nowrap;
+}
+
+.langlist {
+ text-align: center;
+ margin: 0.5em 3em 2.5em 3em;
+}
+
+.langlist-large {
+ font-size: larger;
+}
+
+.langlist-tiny {
+ margin: 0.5em 3em 3em 3em;
+}
+
+.langlist-others {
+ margin: 0 3em 2em 3em;
+ font-weight: bold;
+}
+
+.otherprojects {
+ float: left;
+ font-weight: bold;
+ margin: 1.5em 0;
+ text-align: center;
+ vertical-align: middle;
+ width: 100%;
+}
+
+.otherprojects-item {
+ float: left;
+ height: 60px;
+ min-width: 12em;
+ width: 33%;
+}
+
+.wm-site-info {
+ clear: both;
+ margin: 2.5em 0 2em 0;
+ text-align: center;
+}
+
+/**
+ * Print stylesheet
+ */
+@media print {
+
+ body {
+ background-color: transparent;
+ }
+
+ a {
+ color: black !important;
+ background: none !important;
+ padding: 0 !important;
+ }
+
+ a:link,
+ a:visited {
+ color: #520;
+ background: transparent;
+ }
+
+ img {
+ border: none;
+ }
+
+}
+
+@media all and (max-width:480px) {
+ .central-textlogo {
+ line-height: normal;
+ padding: 0;
+ margin: 0;
+ height: 70px;
+ text-align: left;
+ padding-left: 84px;
+ position: relative;
+ }
+ .central-textlogo img {
+ height: 35px;
+ width: auto;
+ margin-top: 22.5px;
+ }
+ .central-featured {
+ width: auto;
+ height: auto;
+ padding-top: 2em;
+ text-align: left;
+ font-size: 0.8em;
+ margin-top: 4em;
+ }
+ .central-featured-logo {
+ right: 0;
+ left: 0.8em;
+ top: -70px;
+ margin-top: -4em;
+ }
+ .central-featured-logo-inner {
+ left: auto;
+ top: auto;
+ }
+ .central-featured-logo,
+ .central-featured-logo-inner img,
+ .central-featured-logo-inner {
+ width: 70px;
+ height: 70px;
+ }
+ .central-featured-lang {
+ right: auto;
+ top: auto;
+ position: relative;
+ left: auto;
+ text-align: left;
+ margin-left: 1em;
+ display: block;
+ float: left;
+ width: 40%;
+ height: 5em;
+ }
+ .search-container {
+ margin-top: 0;
+ height: 6em;
+ position: absolute;
+ top: 5em;
+ left: 0;
+ right: 0;
+ max-width: 100%;
+ width: auto;
+ padding: 0;
+ text-align: left;
+ }
+ .search-container label {
+ display: none;
+ }
+ .search-form #searchInput {
+ max-width: 40%;
+ }
+ .search-form #searchLanguage,
+ .search-form .formBtn {
+ max-width: 25%;
+ vertical-align: middle;
+ }
+ form fieldset {
+ margin: 0;
+ border-left: none;
+ border-right: none;
+ }
+ .search-form #searchInput {
+ vertical-align:middle;
+ }
+ .language-search {
+ display: none;
+ }
+ .bookshelf {
+ width: auto;
+ left: auto;
+ overflow: hidden;
+ text-align: left;
+ }
+ .bookshelf img {
+ display: none;
+ }
+ .bookshelf img:first-child {
+ display: inline-block;
+ }
+ .langlist a {
+ word-wrap: break-word;
+ white-space: normal;
+ }
+ .langlist {
+ font-size: 0.7em
+ }
+ .otherprojects-item {
+ width: 50%;
+ text-align: left;
+ }
+ .bookshelf-container,
+ .langlist {
+ margin: 1em 1em 0em 1em;
+ text-align: left;
+ width: auto;
+ }
+ .divider {
+ clear: both;
+ padding: 0.5em 1em 0 1em !important;
+ }
+}
+@media all and (max-width:240px) {
+ .central-featured-lang,
+ .otherprojects-item {
+ width: 100%;
+ }
+ .central-textlogo img {
+ width: 100px;
+ height: auto;
+ }
+}
+
+/* Subpixel borders supported in Gecko, Trident */
+@media (min--moz-device-pixel-ratio: 2), (min-resolution: 2dppx),
(min-resolution: 192dpi) {
+ div#footer,
+ table#content td#footer,
+ .search-form fieldset {
+ border-width: 0.5px;
+ }
+
+ hr {
+ height: 0.5px;
+ }
+}
+
+/* Subpixel borders not supported in older releases of Blink, WebKit */
+@supports (-webkit-transform: rotate(30deg)) {
+ div#footer,
+ table#content td#footer,
+ .search-form fieldset {
+ border-width: 1px;
+ }
+
+ hr {
+ height: 1px;
+ }
+}
diff --git a/dev/wikipedia.org/assets/js/wm-portal.js
b/dev/wikipedia.org/assets/js/wm-portal.js
new file mode 100644
index 0000000..b315f9b
--- /dev/null
+++ b/dev/wikipedia.org/assets/js/wm-portal.js
@@ -0,0 +1,481 @@
+/**
+ * This is the javascript module for the [[m:Project portals]] templates.
+ *
+ * Indention style: 1 tab
+ *
+ * Beware: This is used not only for www.wikipedia.org, but also for sister
projects
+ * like www.wiktionary.org and for portals without bookshelves like
www.wikimedia.org.
+ *
+ * Warning: "mediaWiki" and "jQuery" are NOT available here. This is used
outside
+ * mediawiki-software output context, on the [[m:Project portals]] HTML pages.
+ *
+ * Don't be afraid to supplement code with comments, this script is loaded
through
+ * ResourceLoader on the portal pages and as such is minified and squeezed
into a
+ * tiny package served from load.php
+ *
+ * Validate with JSLint or JSHint.
+ *
+ * Usage:
+ * <script
src="//meta.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.gadget.wm-portal&only=scripts&skin=vector&*"></script>
+ */
+/*jshint eqeqeq:true, strict:true, unused:true, curly:true, browser:true,
quotmark:double */
+(function () {
+ "use strict";
+
+ var attachedEvents = [];
+
+ /**
+ * Returns the DOM element with the given ID.
+ */
+ function $(id) {
+ return document.getElementById(id);
+ }
+
+ /**
+ * Removes all event handlers in Internet Explorer 8 and below.
+ *
+ * Any attached event handlers are stored in memory until IE exits, leaking
+ * every time you leave (or reload) the page. This method cleans up any
+ * event handlers that remain at the time the page is unloaded.
+ */
+ window.onunload = function () {
+ var i, evt;
+ for (i = 0; i < attachedEvents.length; i++) {
+ evt = attachedEvents[i];
+ if (evt[0]) {
+ evt[0].detachEvent("on" + evt[1], evt[2]);
+ }
+ }
+ attachedEvents = [];
+ };
+
+ function addEvent(obj, evt, fn) {
+ if (!obj) {
+ return;
+ }
+
+ if (obj.addEventListener) {
+ obj.addEventListener(evt, fn, false);
+ } else if (obj.attachEvent) {
+ attachedEvents.push([obj, evt, fn]);
+ obj.attachEvent("on" + evt, fn);
+ }
+ }
+
+ function removeEvent(obj, evt, fn) {
+ if (!obj) {
+ return;
+ }
+
+ if (obj.removeEventListener) {
+ obj.removeEventListener(evt, fn);
+ } else if (obj.detachEvent) {
+ obj.detachEvent("on" + evt, fn);
+ }
+ }
+
+ /**
+ * Queues the given function to be called once the DOM has finished loading.
+ *
+ * Based on jquery/src/core/ready.js@825ac37 (MIT licensed)
+ */
+ function doWhenReady(fn) {
+ var ready = function () {
+ removeEvent(document, "DOMContentLoaded", ready);
+ removeEvent(window, "load", ready);
+ fn();
+ };
+
+ if (document.readyState === "complete") {
+ // Already ready, so call the function synchronously.
+ fn();
+ } else {
+ // Wait until the DOM or whole page loads, whichever comes first.
+ addEvent(document, "DOMContentLoaded", ready);
+ addEvent(window, "load", ready);
+ }
+ }
+
+ /**
+ * Replaces the “hero graphic” with the given language edition’s logo.
+ */
+ function updateBranding(lang) {
+ var option, logo;
+
+ // Only Wiktionary has such a mess of logos.
+ if (!document.querySelector || document.body.id !== "www-wiktionary-org") {
+ return;
+ }
+
+ option = document.querySelector("option[lang|='" + lang + "']");
+ logo = option && option.getAttribute("data-logo");
+ if (logo) {
+ document.body.setAttribute("data-logo", logo);
+ }
+ }
+
+ /**
+ * Returns the user's preferred language according to browser preferences.
+ */
+ function getUALang() {
+ var uiLang = ((navigator.languages && navigator.languages[0]) ||
+ navigator.language || navigator.userLanguage || "");
+ return uiLang.toLowerCase().split("-")[0];
+ }
+
+ /**
+ * Returns the preferred language as stored in a cookie. Falls back on the
+ * browser's language.
+ */
+ function getSavedLang() {
+ var match = document.cookie.match(/(?:^|\W)searchLang=([^;]+)/);
+ return (match ? match[1] : getUALang()).toLowerCase();
+ }
+
+ /**
+ * Converts Chinese strings from traditional to simplified.
+ *
+ * Convertible elements start out with traditional text and title attributes
+ * along with simplified counterparts in the data-*-Hans attributes.
+ */
+ function convertChinese(lang) {
+ var i, elt,
+ txtAttr = "data-convert-Hans",
+ titleAttr = "data-convertTitle-Hans";
+
+ if ("zh-hans,zh-cn,zh-sg,zh-my,".indexOf(lang + ",") === -1) {
+ return;
+ }
+
+ // If we ever drop support for IE 8 and below, we can put all these
+ // elements in a "convertible" class and call
+ // document.getElementsByClassName() instead.
+ var ids = ["zh_art", "zh_others", "zh_search", "zh_tag", "zh_top10",
"zh-yue_wiki", "gan_wiki", "hak_wiki", "wuu_wiki"];
+ for (i = 0; i < ids.length; i += 1) {
+ if ((elt = $(ids[i]))) {
+ if (elt.hasAttribute(txtAttr)) {
+ elt.innerHTML = elt.getAttribute(txtAttr);
+ }
+ if (elt.hasAttribute(titleAttr)) {
+ elt.title = elt.getAttribute(titleAttr);
+ }
+ }
+ }
+ }
+
+ /**
+ * Modifies links to the Chinese language edition to point to traditional or
+ * simplified versions, based on the user's preference.
+ */
+ function convertZhLinks(lang) {
+ var locale;
+
+ if (lang.indexOf("zh") !== 0) {
+ return;
+ }
+
+ locale = lang.substring(3 /* "zh-".length */);
+ if (locale === "mo") {
+ locale = "hk";
+ } else if (locale === "my") {
+ locale = "sg";
+ }
+
+ if (locale && "cn,tw,hk,sg,".indexOf(locale + ",") >= 0) {
+ $("zh_wiki").href += "zh-" + locale + "/";
+ $("zh_others").href = $("zh_others").href.replace("wiki/", "zh-" +
locale + "/");
+ }
+
+ convertChinese(lang);
+ }
+
+ /**
+ * Selects the language from the dropdown according to the user's preference.
+ */
+ doWhenReady(function () {
+ var iso639, select, options, i, len, matchingLang, matchingLink,
+ customOption,
+ lang = getSavedLang();
+
+ if (!lang) {
+ return;
+ }
+
+ convertZhLinks(lang);
+
+ iso639 = lang.match(/^\w+/);
+ if (!iso639) {
+ return;
+ }
+ iso639 = (iso639[0] === "nb") ? "no" : iso639[0];
+
+ select = $("searchLanguage");
+ // Verify that an <option> exists for the langCode that was
+ // in the cookie. If so, set the value to it.
+ if (select) {
+ options = select.getElementsByTagName("option");
+ for (i = 0, len = options.length; !matchingLang && i < len; i += 1) {
+ if (options[i].value === iso639) {
+ matchingLang = iso639;
+ }
+ }
+ if (!matchingLang && document.querySelector) {
+ matchingLink = document.querySelector(".langlist a[lang|='" + iso639 +
"']");
+ if (matchingLink) {
+ matchingLang = iso639;
+ customOption = document.createElement("option");
+ customOption.setAttribute("lang", iso639);
+ customOption.setAttribute("value", iso639);
+ customOption.innerHTML = matchingLink.textContent ||
matchingLink.innerText || iso639;
+ select.appendChild(customOption);
+ }
+ }
+ if (matchingLang) {
+ select.value = matchingLang;
+ updateBranding(matchingLang);
+ }
+ }
+ });
+
+ /**
+ * Invokes the MediaWiki API of the selected wiki to search for articles
+ * whose titles begin with the entered text.
+ */
+ function setupSuggestions() {
+ // For simplicity's sake, rely on the HTML5 <datalist> element available
+ // on IE 10+ (and all other modern browsers).
+ if (window.HTMLDataListElement === undefined) {
+ return;
+ }
+
+ var list = document.createElement("datalist"),
+ search = $("searchInput");
+
+ list.id = "suggestions";
+ document.body.appendChild(list);
+ search.autocomplete = "off";
+ search.setAttribute("list", "suggestions");
+
+ addEvent(search, "input", function () {
+ var head = document.getElementsByTagName("head")[0],
+ hostname = window.location.hostname.replace("www.",
$("searchLanguage").value + "."),
+ script = $("api_opensearch");
+
+ if (script) {
+ head.removeChild(script);
+ }
+ script = document.createElement("script");
+ script.id = "api_opensearch";
+ script.src = "//" + hostname +
"/w/api.php?action=opensearch&limit=10&format=json&callback=portalOpensearchCallback&search="
+ search.value;
+ head.appendChild(script);
+ });
+ }
+
+ /**
+ * Sets the search box's data list to the results returned by the MediaWiki
+ * API. The results are returned in JSON-P format, so this callback must be
+ * global.
+ */
+ window.portalOpensearchCallback = function(xhrResults) {
+ var i,
+ suggestions = $("suggestions"),
+ oldOptions = suggestions.children;
+
+ // Update the list, reusing any existing items from the last search.
+ for (i = 0; i < xhrResults[1].length; i += 1) {
+ var option = oldOptions[i] || document.createElement("option");
+ option.value = xhrResults[1][i];
+ if (!oldOptions[i]) {
+ suggestions.appendChild(option);
+ }
+ }
+
+ // If this search has fewer results than the last one, trim the list.
+ for (i = suggestions.children.length - 1; i >= xhrResults[1].length; i -=
1) {
+ suggestions.removeChild(suggestions.children[i]);
+ }
+ };
+
+ /**
+ * Stores the user's preferred language in a cookie. This function is called
+ * once a language other than the browser's default is selected from the
+ * dropdown.
+ */
+ function setLang(lang) {
+ if (!lang) {
+ return;
+ }
+ var uiLang = getUALang(),
+ match = uiLang.match(/^\w+/),
+ date = new Date();
+
+ updateBranding(lang);
+ if (match && match[0] === lang) {
+ date.setTime(date.getTime() - 1);
+ } else {
+ date.setFullYear(date.getFullYear() + 1);
+ }
+
+ document.cookie = "searchLang=" + lang + ";expires=" +
+ date.toUTCString() + ";domain=" + location.host + ";";
+ }
+
+ doWhenReady(function () {
+ var params, i, param,
+ search = $("searchInput"), select = $("searchLanguage");
+
+ if (search) {
+ // Add a search icon to the box in Safari.
+ search.setAttribute("results", "10");
+ setupSuggestions();
+
+ if (search.autofocus === undefined) {
+ // Focus the search box.
+ search.focus();
+ } else {
+ // autofocus causes scrolling in most browsers that
+ // support it.
+ window.scroll(0, 0);
+ }
+
+ // Prefills the search box with the "search" URL parameter.
+ params = location.search && location.search.substr(1).split("&");
+ for (i = 0; i < params.length; i += 1) {
+ param = params[i].split("=");
+ if (param[0] === "search" && param[1]) {
+ search.value = decodeURIComponent(param[1].replace(/\+/g, " "));
+ return;
+ }
+ }
+ }
+
+ addEvent(select, "change", function () {
+ setLang(select.value);
+ });
+ });
+
+ doWhenReady(function () {
+ var uselang = document.searchwiki && document.searchwiki.elements.uselang;
+ if (uselang) {
+ // Don't use getSavedLang() since that uses the cookie for the search
form.
+ // The searchwiki form should not be affected by the values in the
searchpage form.
+ uselang.value = getUALang();
+ }
+ });
+
+ // Based on jquery.hidpi module with the jQuery removed and support for the
+ // full srcset syntax added.
+
+ /**
+ * Detects reported or approximate device pixel ratio.
+ * * 1.0 means 1 CSS pixel is 1 hardware pixel
+ * * 2.0 means 1 CSS pixel is 2 hardware pixels
+ * * etc.
+ *
+ * Uses window.devicePixelRatio if available, or CSS media queries on IE.
+ *
+ * @returns {number} Device pixel ratio
+ */
+ function devicePixelRatio() {
+ if ( window.devicePixelRatio !== undefined ) {
+ // Most web browsers:
+ // * WebKit (Safari, Chrome, Android browser, etc)
+ // * Opera
+ // * Firefox 18+
+ return window.devicePixelRatio;
+ } else if ( window.msMatchMedia !== undefined ) {
+ // Windows 8 desktops / tablets, probably Windows Phone 8
+ //
+ // IE 10 doesn't report pixel ratio directly, but we can get the
+ // screen DPI and divide by 96. We'll bracket to [1, 1.5, 2.0] for
+ // simplicity, but you may get different values depending on zoom
+ // factor, size of screen and orientation in Metro IE.
+ if ( window.msMatchMedia( "(min-resolution: 192dpi)" ).matches ) {
+ return 2;
+ } else if ( window.msMatchMedia( "(min-resolution: 144dpi)" ).matches ) {
+ return 1.5;
+ } else {
+ return 1;
+ }
+ } else {
+ // Legacy browsers...
+ // Assume 1 if unknown.
+ return 1;
+ }
+ }
+
+ /**
+ * Matches a srcset entry for the given device pixel ratio.
+ *
+ * @param {number} devicePixelRatio
+ * @param {string} srcset
+ * @return {mixed} null or the matching src string
+ */
+ function matchSrcSet( devicePixelRatio, srcset ) {
+ var candidates,
+ candidate,
+ i,
+ ratio,
+ selection = {ratio: 1};
+ candidates = srcset.split( / *, */ );
+ for ( i = 0; i < candidates.length; i++ ) {
+ //
http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/#additions-to-the-img-element
+ candidate =
candidates[i].match(/\s*(\S+)(?:\s*([\d.]+)w)?(?:\s*([\d.]+)h)?(?:\s*([\d.]+)x)?\s*/);
+ ratio = candidate[4] && parseFloat(candidate[4]);
+ if ( ratio <= devicePixelRatio && ratio > selection.ratio ) {
+ selection.ratio = ratio;
+ selection.src = candidate[1];
+ selection.width = candidate[2] && parseFloat(candidate[2]);
+ selection.height = candidate[3] && parseFloat(candidate[3]);
+ }
+ }
+ return selection;
+ }
+
+ /**
+ * Implements responsive images based on srcset attributes, if browser has
+ * no native srcset support.
+ */
+ function hidpi() {
+ var imgs, i,
+ ratio = devicePixelRatio(),
+ testImage = new Image();
+
+ if ( ratio > 1 && testImage.srcset === undefined ) {
+ // No native srcset support.
+ imgs = document.getElementsByTagName( "img" );
+ for ( i = 0; i < imgs.length; i++ ) {
+ var img = imgs[i],
+ srcset = img.getAttribute( "srcset" ),
+ match;
+ if ( typeof srcset === "string" && srcset !== "" ) {
+ match = matchSrcSet( ratio, srcset );
+ if ( match.src !== undefined ) {
+ img.setAttribute( "src", match.src );
+ if ( match.width !== undefined ) {
+ img.setAttribute( "width", match.width );
+ }
+ if ( match.height !== undefined ) {
+ img.setAttribute( "height", match.height );
+ }
+ }
+ }
+ }
+ }
+ }
+ doWhenReady(hidpi);
+
+}());
+
+/*
+ * Depending on how this script is loaded, it may not have
+ * the mediaWiki global object. Simulate if needed, for the
+ * load.php?only=scripts response that calls mw.loader.state(.., ..);
+ */
+if (!window.mw) {
+ window.mw = window.mediaWiki = {
+ loader: {
+ state: function () {}
+ }
+ };
+}
diff --git a/dev/wikipedia.org/index.html b/dev/wikipedia.org/index.html
new file mode 100644
index 0000000..660edaf
--- /dev/null
+++ b/dev/wikipedia.org/index.html
@@ -0,0 +1,601 @@
+<!DOCTYPE html>
+<html lang="mul" dir="ltr">
+<head>
+<!-- Sysops: Please do not edit the main template directly; update /temp and
synchronise. -->
+<meta charset="utf-8">
+<title>Wikipedia</title>
+<!--[if lt IE 7]><meta http-equiv="imagetoolbar" content="no"><![endif]-->
+<meta name="viewport" content="initial-scale=1.0, user-scalable=yes">
+<link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png">
+<link rel="shortcut icon" href="/static/favicon/wikipedia.ico">
+<link rel="license" href="//creativecommons.org/licenses/by-sa/3.0/">
+<link rel="stylesheet" href="assets/css/wm-portal.css">
+<style type="text/css">
+.central-featured-logo{background:url(//upload.wikimedia.org/wikipedia/meta/0/08/Wikipedia-logo-v2_1x.png)
center center
no-repeat;left:0;top:0;width:100%;height:100%}.bookshelf{display:block}.bookshelf-container{font-size:13px;font-weight:700;line-height:20px}.bookshelf-container
.text{padding:0 .5em}.bookshelf-container
.bookend{display:-moz-inline-stack;display:inline-block;background-image:url(//upload.wikimedia.org/wikipedia/commons/b/bd/Bookshelf-40x201_6.png);background-repeat:repeat-x;width:480px;height:20px;vertical-align:top}.otherprojects{text-align:left;float:none;width:90%;margin-left:auto;margin-right:auto}.otherprojects-item{width:24.75%;line-height:60px}.otherprojects-item
a{display:block;width:10em;margin-left:auto;margin-right:auto}.otherprojects-item
.icon{display:-moz-inline-stack;display:inline-block;width:47px;text-align:center}.wm-site-info{padding-top:1.5em}@media
(-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:3/2),(min-resolution:1.5dppx),(min-resolution:144dpi){.central-featured-logo{background-image:url(//upload.wikimedia.org/wikipedia/meta/d/d1/Wikipedia-logo-v2_1.5x.png);background-size:200px
auto}.bookshelf-container
.bookend{background-image:url(//upload.wikimedia.org/wikipedia/meta/5/52/Bookshelf-40x20_1.5x.png);background-size:40px
auto}}@media
(-webkit-min-device-pixel-ratio:2),(min--moz-device-pixel-ratio:2),(-o-min-device-pixel-ratio:2),(min-resolution:2dppx),(min-resolution:192dpi){.central-featured-logo{background-image:url(//upload.wikimedia.org/wikipedia/meta/b/be/Wikipedia-logo-v2_2x.png);background-size:200px
auto}.bookshelf-container
.bookend{background-image:url(//upload.wikimedia.org/wikipedia/meta/4/46/Bookshelf-40x20_2x.png);background-size:40px
auto}}@media all and
(max-width:480px){.central-featured-logo{background-size:70px
auto;left:.8em;top:-70px;width:70px;height:70px}.bookshelf-container
.bookend{width:40px!important}.bookshelf-container
.bookend:last-child{display:none}}@media all and
(max-width:45em){.otherprojects{width:100%}.otherprojects-item{width:33.33%}}@media
all and (max-width:30em){.otherprojects-item{width:50%}}@media all and
(max-width:20em){.otherprojects-item{width:100%}}
+</style>
+<!--[if lt IE 8]><style type="text/css">
+.bookshelf-container .bookend,.otherprojects-icon{zoom:1;display:inline}
+</style><![endif]-->
+</head>
+<body id="www-wikipedia-org">
+
+<h1 class="central-textlogo" style="font-variant: small-caps;">
+<img
src="//upload.wikimedia.org/wikipedia/meta/6/6d/Wikipedia_wordmark_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/a/a9/Wikipedia_wordmark_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/8/8a/Wikipedia_wordmark_2x.png 2x"
width="174" height="30" alt="WikipediA" title="Wikipedia">
+</h1>
+
+<!-- container div for the central logo and the links to the most viewed
language editions -->
+<div class="central-featured">
+
+<!-- logo -->
+<div class="central-featured-logo"></div>
+
+<!-- Rankings from http://stats.wikimedia.org/EN/Sitemap.htm (data from
2015-08-31) -->
+<!-- Article counts from
http://meta.wikimedia.org/wiki/List_of_Wikipedias/Table -->
+<!-- #1. en.wikipedia.org - 7,152,612 views/hr -->
+<div class="central-featured-lang lang1" lang="en">
+<a class="link-box" href="//en.wikipedia.org/" title="English — Wikipedia —
The Free Encyclopedia"><strong>English</strong><br>
+<em>The Free Encyclopedia</em><br>
+<small>4 985 000+ articles</small></a>
+</div>
+
+<!-- #2. es.wikipedia.org - 985,806 views/hr -->
+<div class="central-featured-lang lang2" lang="es">
+<a class="link-box" href="//es.wikipedia.org/" title="Español — Wikipedia — La
enciclopedia libre"><strong>Español</strong><br>
+<em>La enciclopedia libre</em><br>
+<small>1 206 000+ artículos</small></a>
+</div>
+
+<!-- #3. de.wikipedia.org - 921,087 views/hr -->
+<div class="central-featured-lang lang3" lang="de">
+<a class="link-box" href="//de.wikipedia.org/" title="Deutsch — Wikipedia —
Die freie Enzyklopädie"><strong>Deutsch</strong><br>
+<em>Die freie Enzyklopädie</em><br>
+<small>1 864 000+ Artikel</small></a>
+</div>
+
+<!-- #4. ja.wikipedia.org - 888,602 views/hr -->
+<div class="central-featured-lang lang4" lang="ja">
+<a class="link-box" href="//ja.wikipedia.org/" title="Nihongo — Wikipedia —
フリー百科事典"><strong>日本語</strong><br>
+<em class="emNonItalicLang">フリー百科事典</em><br>
+<small>986 000+ 記事</small></a>
+</div>
+
+<!-- #5. ru.wikipedia.org - 844,534 views/hr -->
+<div class="central-featured-lang lang5" lang="ru">
+<a class="link-box" href="//ru.wikipedia.org/" title="Russkiy — Wikipedia —
Свободная энциклопедия"><strong>Русский</strong><br>
+<em>Свободная энциклопедия</em><br>
+<small>1 259 000+ статей</small></a>
+</div>
+
+<!-- #6. fr.wikipedia.org - 648,364 views/hr -->
+<div class="central-featured-lang lang6" lang="fr">
+<a class="link-box" href="//fr.wikipedia.org/" title="Français — Wikipedia —
L’encyclopédie libre"><strong>Français</strong><br>
+<em>L’encyclopédie libre</em><br>
+<small>1 670 000+ articles</small></a>
+</div>
+
+<!-- #7. zh.wikipedia.org - 512,065 views/hr -->
+<div class="central-featured-lang lang7" lang="zh">
+<a class="link-box" id="zh_top10" href="//zh.wikipedia.org/" title="Zhōngwén —
Wikipedia — 自由的百科全書" data-convertTitle-Hans="Zhōngwén — Wikipedia —
自由的百科全书"><strong>中文</strong><br>
+<em id="zh_tag" class="emNonItalicLang"
data-convert-Hans="自由的百科全书">自由的百科全書</em><br>
+<small>845 000+ <span id="zh_art" data-convert-Hans="条目">條目</span></small></a>
+</div>
+
+<!-- #8. it.wikipedia.org - 396,653 views/hr -->
+<div class="central-featured-lang lang8" lang="it">
+<a class="link-box" href="//it.wikipedia.org/" title="Italiano — Wikipedia —
L’enciclopedia libera"><strong>Italiano</strong><br>
+<em>L’enciclopedia libera</em><br>
+<small>1 228 000+ voci</small></a>
+</div>
+
+<!-- #9. pt.wikipedia.org - 301,392 views/hr -->
+<div class="central-featured-lang lang9" lang="pt">
+<a class="link-box" href="//pt.wikipedia.org/" title="Português — Wikipedia —
A enciclopédia livre"><strong>Português</strong><br>
+<em>A enciclopédia livre</em><br>
+<small>891 000+ artigos</small></a>
+</div>
+
+<!-- #10. pl.wikipedia.org - 298,421 views/hr -->
+<div class="central-featured-lang lang10" lang="pl">
+<a class="link-box" href="//pl.wikipedia.org/" title="Polski — Wikipedia —
Wolna encyklopedia"><strong>Polski</strong><br>
+<em>Wolna encyklopedia</em><br>
+<small>1 137 000+ haseł</small></a>
+</div>
+
+</div>
+
+<!-- Search form -->
+<div class="search-container">
+
+<form class="search-form"
action="/index.html/www.wikipedia.org/search-redirect.php">
+<fieldset>
+
+<!-- search-redirect.php is project-independent, requires a family -->
+<input type="hidden" name="family" value="wikipedia">
+
+<input id="searchInput" name="search" type="search" size="20"
autofocus="autofocus" accesskey="F" dir="auto">
+
+<select id="searchLanguage" name="language">
+<!-- 100,000+ content pages, sorted by romanization -->
+<option value="ar" lang="ar">العربية</option><!-- Al-ʿArabīyah -->
+<option value="be" lang="be">Беларуская (Акадэмічная)</option><!-- Belaruskaya
(Akademichnaya) -->
+<option value="bg" lang="bg">Български</option><!-- Bulgarski -->
+<option value="ca" lang="ca">Català</option>
+<option value="cs" lang="cs">Čeština</option>
+<option value="da" lang="da">Dansk</option>
+<option value="de" lang="de">Deutsch</option>
+<option value="el" lang="el">Ελληνικά</option><!-- Ellīniká -->
+<option value="en" lang="en" selected="selected">English</option>
+<option value="es" lang="es">Español</option>
+<option value="eo" lang="eo">Esperanto</option>
+<option value="et" lang="et">Eesti</option>
+<option value="eu" lang="eu">Euskara</option>
+<option value="fa" lang="fa">فارسی</option><!-- Fārsi -->
+<option value="fr" lang="fr">Français</option>
+<option value="gl" lang="gl">Galego</option>
+<option value="ko" lang="ko">한국어</option><!-- Hangugeo -->
+<option value="hy" lang="hy">Հայերեն</option><!-- Hayeren -->
+<option value="hi" lang="hi">हिन्दी</option><!-- Hindī -->
+<option value="hr" lang="hr">Hrvatski</option>
+<option value="id" lang="id">Bahasa Indonesia</option>
+<option value="it" lang="it">Italiano</option>
+<option value="he" lang="he">עברית</option><!-- ʿIvrit -->
+<option value="la" lang="la">Latina</option>
+<option value="lt" lang="lt">Lietuvių</option>
+<option value="hu" lang="hu">Magyar</option>
+<option value="ms" lang="ms">Bahasa Melayu</option>
+<option value="min" lang="min">Bahaso Minangkabau</option>
+<option value="nl" lang="nl">Nederlands</option>
+<option value="ja" lang="ja">日本語</option><!-- Nihongo -->
+<option value="no" lang="nb">Norsk (Bokmål)</option>
+<option value="nn" lang="nn">Norsk (Nynorsk)</option>
+<option value="ce" lang="ce">Нохчийн</option><!-- Noxçiyn -->
+<option value="uz" lang="uz">Oʻzbekcha / Ўзбекча</option>
+<option value="pl" lang="pl">Polski</option>
+<option value="pt" lang="pt">Português</option>
+<option value="kk" lang="kk">Қазақша / Qazaqşa / قازاقشا</option>
+<option value="ro" lang="ro">Română</option>
+<option value="ru" lang="ru">Русский</option><!-- Russkiy -->
+<option value="simple" lang="en">Simple English</option>
+<option value="ceb" lang="ceb">Sinugboanong Binisaya</option><!-- Cebuano -->
+<option value="sk" lang="sk">Slovenčina</option>
+<option value="sl" lang="sl">Slovenščina</option>
+<option value="sr" lang="sr">Српски / Srpski</option>
+<option value="sh" lang="sh">Srpskohrvatski / Српскохрватски</option>
+<option value="fi" lang="fi">Suomi</option>
+<option value="sv" lang="sv">Svenska</option>
+<option value="tr" lang="tr">Türkçe</option>
+<option value="uk" lang="uk">Українська</option><!-- Ukrayins’ka -->
+<option value="vi" lang="vi">Tiếng Việt</option>
+<option value="vo" lang="vo">Volapük</option>
+<option value="war" lang="war">Winaray</option>
+<option value="zh" lang="zh">中文</option><!-- Zhōngwén -->
+</select>
+
+<input class="formBtn" type="submit" value=" → " name="go">
+<input type="hidden" value="Go" name="go">
+
+</fieldset>
+</form>
+</div>
+
+<div class="divider" style="padding: 0 1%;"><hr></div>
+
+<div class="search-container language-search">
+<form action="//incubator.wikimedia.org/w/index.php" method="get"
name="searchwiki">
+<input type="hidden" name="title" value="Special:SearchWiki">
+<input type="hidden" name="uselang" value="en">
+<input type="hidden" name="searchproject" value="p">
+<label for="langsearch-input">Find Wikipedia in a language:</label>
+<input type="search" name="searchlanguage" id="langsearch-input" value=""
dir="auto">
+<input class="formBtn" type="submit" value=" → ">
+</form>
+
+</div>
+
+<!-- Bookshelves -->
+<h2 class="bookshelf-container">
+<span class="bookshelf"><span class="bookend" style="width: 360px /* 9 * 40
*/;"></span><span class="text">1 000 000+</span><span class="bookend"
style="width: 360px;"></span></span>
+</h2>
+
+<!-- 1,000,000+ content pages -->
+<div class="langlist langlist-large"><div>
+<a href="//de.wikipedia.org/" lang="de">Deutsch</a> •
+<a href="//en.wikipedia.org/" lang="en">English</a> •
+<a href="//es.wikipedia.org/" lang="es">Español</a> •
+<a href="//fr.wikipedia.org/" lang="fr">Français</a> •
+<a href="//it.wikipedia.org/" lang="it">Italiano</a> •
+<a href="//nl.wikipedia.org/" lang="nl">Nederlands</a> •
+<a href="//pl.wikipedia.org/" lang="pl">Polski</a> •
+<a href="//ru.wikipedia.org/" lang="ru" title="Russkiy">Русский</a> •
+<a href="//ceb.wikipedia.org/" lang="ceb">Sinugboanong Binisaya</a> •
+<a href="//sv.wikipedia.org/" lang="sv">Svenska</a> •
+<a href="//vi.wikipedia.org/" lang="vi">Tiếng Việt</a> •
+<a href="//war.wikipedia.org/" lang="war">Winaray</a>
+</div></div>
+
+<!-- Bookshelves -->
+<h2 class="bookshelf-container">
+<span class="bookshelf"><span class="bookend" style="width: 280px /* 7 * 40
*/;"></span><span class="text">100 000+</span><span class="bookend"
style="width: 280px;"></span></span>
+</h2>
+
+<!-- 100,000+ content pages -->
+<div class="langlist langlist-large"><div>
+<a href="//ar.wikipedia.org/" lang="ar" title="Al-ʿArabīyah"><bdi
dir="rtl">العربية</bdi></a> •
+<a href="//be.wikipedia.org/" lang="be" title="Belaruskaya
(Akademichnaya)">Беларуская (Акадэмічная)</a> •
+<a href="//bg.wikipedia.org/" lang="bg" title="Bulgarski">Български</a> •
+<a href="//ca.wikipedia.org/" lang="ca">Català</a> •
+<a href="//cs.wikipedia.org/" lang="cs">Čeština</a> •
+<a href="//da.wikipedia.org/" lang="da">Dansk</a> •
+<a href="//et.wikipedia.org/" lang="et">Eesti</a> •
+<a href="//el.wikipedia.org/" lang="el" title="Ellīniká">Ελληνικά</a> •
+<a href="//eo.wikipedia.org/" lang="eo">Esperanto</a> •
+<a href="//eu.wikipedia.org/" lang="eu">Euskara</a> •
+<a href="//fa.wikipedia.org/" lang="fa" title="Fārsi"><bdi
dir="rtl">فارسی</bdi></a> •
+<a href="//gl.wikipedia.org/" lang="gl">Galego</a> •
+<a href="//ko.wikipedia.org/" lang="ko" title="Hangugeo">한국어</a> •
+<a href="//hy.wikipedia.org/" lang="hy" title="Hayeren">Հայերեն</a> •
+<a href="//hi.wikipedia.org/" lang="hi" title="Hindī">हिन्दी</a> •
+<a href="//hr.wikipedia.org/" lang="hr">Hrvatski</a> •
+<a href="//id.wikipedia.org/" lang="id">Bahasa Indonesia</a> •
+<a href="//ka.wikipedia.org/" lang="ka" title="Kartuli">ქართული</a> •
+<a href="//he.wikipedia.org/" lang="he" title="ʿIvrit"><bdi
dir="rtl">עברית</bdi></a> •
+<a href="//la.wikipedia.org/" lang="la">Latina</a> •
+<a href="//lt.wikipedia.org/" lang="lt">Lietuvių</a> •
+<a href="//hu.wikipedia.org/" lang="hu">Magyar</a> •
+<a href="//ms.wikipedia.org/" lang="ms">Bahasa Melayu</a> •
+<a href="//min.wikipedia.org/" lang="min">Bahaso Minangkabau</a> •
+<a href="//ja.wikipedia.org/" lang="ja" title="Nihongo">日本語</a> •
+<span lang="no">Norsk (<a href="//no.wikipedia.org/"
lang="nb">Bokmål</a> • <a href="//nn.wikipedia.org/"
lang="nn">Nynorsk</a>)</span> •
+<a href="//ce.wikipedia.org/" lang="ce" title="Noxçiyn">Нохчийн</a> •
+<a href="//uz.wikipedia.org/" lang="uz"><span lang="uz-Latn">Oʻzbekcha</span>
/ <span lang="uz-Cyrl">Ўзбекча</span></a> •
+<a href="//pt.wikipedia.org/" lang="pt">Português</a> •
+<a href="//kk.wikipedia.org/" lang="kk"><span lang="kk">Қазақша</span> / <span
lang="kk-Latn">Qazaqşa</span> / <bdi lang="kk-Arab"
dir="rtl">قازاقشا</bdi></a> •
+<a href="//ro.wikipedia.org/" lang="ro">Română</a> •
+<a href="//simple.wikipedia.org/" lang="en">Simple English</a> •
+<a href="//sk.wikipedia.org/" lang="sk">Slovenčina</a> •
+<a href="//sl.wikipedia.org/" lang="sl">Slovenščina</a> •
+<a href="//sr.wikipedia.org/" lang="sr"><span lang="sr-Cyrl">Српски</span> /
<span lang="sr-Latn">Srpski</span></a> •
+<a href="//sh.wikipedia.org/" lang="sh"><span
lang="sh-Latn">Srpskohrvatski</span> / <span
lang="sh-Cyrl">Српскохрватски</span></a> •
+<a href="//fi.wikipedia.org/" lang="fi">Suomi</a> •
+<a href="//tr.wikipedia.org/" lang="tr">Türkçe</a> •
+<a href="//uk.wikipedia.org/" lang="uk"
title="Ukrayins’ka">Українська</a> •
+<a href="//vo.wikipedia.org/" lang="vo">Volapük</a> •
+<a id="zh_wiki" href="//zh.wikipedia.org/" lang="zh" title="Zhōngwén">中文</a>
+</div></div>
+
+<!-- Bookshelves -->
+<h2 class="bookshelf-container">
+<span class="bookshelf"><span class="bookend" style="width: 200px /* 5 * 40
*/;"></span><span class="text">10 000+</span><span class="bookend"
style="width: 200px;"></span></span>
+</h2>
+
+<!-- 10,000+ content pages -->
+<div class="langlist"><div>
+<a href="//af.wikipedia.org/" lang="af">Afrikaans</a> •
+<a href="//als.wikipedia.org/" lang="gsw">Alemannisch</a> •
+<a href="//am.wikipedia.org/" lang="am" title="Āmariññā">አማርኛ</a> •
+<a href="//an.wikipedia.org/" lang="an">Aragonés</a> •
+<a href="//ast.wikipedia.org/" lang="ast">Asturianu</a> •
+<a href="//az.wikipedia.org/" lang="az">Azərbaycanca</a> •
+<a href="//bn.wikipedia.org/" lang="bn" title="Bangla">বাংলা</a> •
+<a href="//zh-min-nan.wikipedia.org/" lang="nan">Bân-lâm-gú /
Hō-ló-oē</a> •
+<a href="//map-bms.wikipedia.org/" lang="map-x-bms">Basa Banyumasan</a> •
+<a href="//ba.wikipedia.org/" lang="ba" title="Başqortsa">Башҡортса</a> •
+<a href="//be-tarask.wikipedia.org/" lang="be" title="Belaruskaya
Taraškievica">Беларуская (Тарашкевіца)</a> •
+<a href="//bpy.wikipedia.org/" lang="bpy" title="Bishnupriya
Manipuri">বিষ্ণুপ্রিয়া মণিপুরী</a> •
+<a href="//bar.wikipedia.org/" lang="bar">Boarisch</a> •
+<a href="//bs.wikipedia.org/" lang="bs">Bosanski</a> •
+<a href="//br.wikipedia.org/" lang="br">Brezhoneg</a> •
+<a href="//cv.wikipedia.org/" lang="cv" title="Čăvašla">Чӑвашла</a> •
+<a href="//cy.wikipedia.org/" lang="cy">Cymraeg</a> •
+<a href="//fo.wikipedia.org/" lang="fo">Føroyskt</a> •
+<a href="//fy.wikipedia.org/" lang="fy">Frysk</a> •
+<a href="//ga.wikipedia.org/" lang="ga">Gaeilge</a> •
+<a href="//gd.wikipedia.org/" lang="gd">Gàidhlig</a> •
+<a href="//gu.wikipedia.org/" lang="gu" title="Gujarati">ગુજરાતી</a> •
+<a href="//io.wikipedia.org/" lang="io">Ido</a> •
+<a href="//ia.wikipedia.org/" lang="ia">Interlingua</a> •
+<a href="//os.wikipedia.org/" lang="os" title="Iron Ævzag">Ирон
æвзаг</a> •
+<a href="//is.wikipedia.org/" lang="is">Íslenska</a> •
+<a href="//jv.wikipedia.org/" lang="jv">Basa Jawa</a> •
+<a href="//kn.wikipedia.org/" lang="kn" title="Kannada">ಕನ್ನಡ</a> •
+<a href="//ht.wikipedia.org/" lang="ht">Kreyòl Ayisyen</a> •
+<a href="//ku.wikipedia.org/" lang="ku"><span lang="ku-Latn">Kurdî</span> /
<bdi lang="ku-Arab" dir="rtl">كوردی</bdi></a> •
+<a href="//ky.wikipedia.org/" lang="ky" title="Kyrgyzča">Кыргызча</a> •
+<a href="//mrj.wikipedia.org/" lang="mjr" title="Kyryk Mary">Кырык
Мары</a> •
+<a href="//lv.wikipedia.org/" lang="lv">Latviešu</a> •
+<a href="//lb.wikipedia.org/" lang="lb">Lëtzebuergesch</a> •
+<a href="//li.wikipedia.org/" lang="li">Limburgs</a> •
+<a href="//lmo.wikipedia.org/" lang="lmo">Lumbaart</a> •
+<a href="//mk.wikipedia.org/" lang="mk"
title="Makedonski">Македонски</a> •
+<a href="//mg.wikipedia.org/" lang="mg">Malagasy</a> •
+<a href="//ml.wikipedia.org/" lang="ml" title="Malayalam">മലയാളം</a> •
+<a href="//mr.wikipedia.org/" lang="mr" title="Marathi">मराठी</a> •
+<a href="//arz.wikipedia.org/" lang="arz" title="Maṣrī"><bdi
dir="rtl">مصرى</bdi></a> •
+<a href="//mzn.wikipedia.org/" lang="mzn" title="Mäzeruni"><bdi
dir="rtl">مازِرونی</bdi></a> •
+<a href="//mn.wikipedia.org/" lang="mn" title="Mongol">Монгол</a> •
+<a href="//my.wikipedia.org/" lang="my"
title="Myanmarsar">မြန်မာဘာသာ</a> •
+<a href="//nah.wikipedia.org/" lang="nah">Nāhuatlahtōlli</a> •
+<a href="//new.wikipedia.org/" lang="new" title="Nepal Bhasa">नेपाल
भाषा</a> •
+<a href="//ne.wikipedia.org/" lang="ne" title="Nepālī">नेपाली</a> •
+<a href="//nap.wikipedia.org/" lang="nap">Nnapulitano</a> •
+<a href="//oc.wikipedia.org/" lang="oc">Occitan</a> •
+<a href="//or.wikipedia.org/" lang="or" title="Oṛiā">ଓଡି଼ଆ</a> •
+<a href="//pa.wikipedia.org/" lang="pa" title="Pañjābī">ਪੰਜਾਬੀ</a> •
+<a href="//pms.wikipedia.org/" lang="pms">Piemontèis</a> •
+<a href="//nds.wikipedia.org/" lang="nds">Plattdüütsch</a> •
+<a href="//qu.wikipedia.org/" lang="qu">Runa Simi</a> •
+<a href="//sa.wikipedia.org/" lang="sa" title="Saṃskṛtam">संस्कृतम्</a> •
+<a href="//sah.wikipedia.org/" lang="sah" title="Saxa Tyla">Саха
Тыла</a> •
+<a href="//pnb.wikipedia.org/" lang="pnb" title="Shāhmukhī Pañjābī"><bdi
dir="rtl">شاہ مکھی پنجابی</bdi></a> •
+<a href="//sco.wikipedia.org/" lang="sco">Scots</a> •
+<a href="//sq.wikipedia.org/" lang="sq">Shqip</a> •
+<a href="//scn.wikipedia.org/" lang="scn">Sicilianu</a> •
+<a href="//si.wikipedia.org/" lang="si" title="Siṃhala">සිංහල</a> •
+<a href="//ckb.wikipedia.org/" lang="ckb" title="Kurdîy Nawendî"><bdi
dir="rtl">کوردیی ناوەندی</bdi></a> •
+<a href="//su.wikipedia.org/" lang="su">Basa Sunda</a> •
+<a href="//sw.wikipedia.org/" lang="sw">Kiswahili</a> •
+<a href="//tl.wikipedia.org/" lang="tl">Tagalog</a> •
+<a href="//ta.wikipedia.org/" lang="ta" title="Tamiḻ">தமிழ்</a> •
+<a href="//tt.wikipedia.org/" lang="tt"><span lang="tt-Cyrl">Татарча</span> /
<span lang="tt-Latn">Tatarça</span></a> •
+<a href="//te.wikipedia.org/" lang="te" title="Telugu">తెలుగు</a> •
+<a href="//tg.wikipedia.org/" lang="tg" title="Tojikī">Тоҷикӣ</a> •
+<a href="//th.wikipedia.org/" lang="th" title="Phasa Thai">ภาษาไทย</a> •
+<a href="//bug.wikipedia.org/" lang="bug"><span lang="bug-Bugi">ᨅᨔ ᨕᨙᨁᨗ</span>
/ <span lang="bug-Latn">Basa Ugi</span></a> •
+<a href="//ur.wikipedia.org/" lang="ur" title="Urdu"><bdi
dir="rtl">اردو</bdi></a> •
+<a href="//vec.wikipedia.org/" lang="vec">Vèneto</a> •
+<a href="//wa.wikipedia.org/" lang="wa">Walon</a> •
+<a href="//yi.wikipedia.org/" lang="yi" title="Yidiš"><bdi
dir="rtl">ייִדיש</bdi></a> •
+<a href="//yo.wikipedia.org/" lang="yo">Yorùbá</a> •
+<a id="zh-yue_wiki" href="//zh-yue.wikipedia.org/" lang="yue" title="Yuht Yúh
/ Jyut6 jyu5" data-convert-Hans="粤语">粵語</a> •
+<a href="//bat-smg.wikipedia.org/" lang="sgs">Žemaitėška</a>
+</div></div>
+
+<!-- Bookshelves -->
+<h2 class="bookshelf-container">
+<span class="bookshelf"><span class="bookend" style="width: 120px /* 3 * 40
*/;"></span><span class="text">1 000+</span><span class="bookend"
style="width: 120px;"></span></span>
+</h2>
+
+<!-- 1,000+ content pages -->
+<div class="langlist">
+<a href="//ace.wikipedia.org/" lang="ace">Bahsa Acèh</a> •
+<a href="//kbd.wikipedia.org/" lang="kbd" title="Adighabze">Адыгэбзэ</a> •
+<a href="//roa-rup.wikipedia.org/" lang="rup">Armãneashce</a> •
+<a href="//frp.wikipedia.org/" lang="frp">Arpitan</a> •
+<a href="//arc.wikipedia.org/" lang="arc" title="Ātûrāyâ"><bdi
dir="rtl">ܐܬܘܪܝܐ</bdi></a> •
+<a href="//gn.wikipedia.org/" lang="gn">Avañe’ẽ</a> •
+<a href="//av.wikipedia.org/" lang="av" title="Avar">Авар</a> •
+<a href="//ay.wikipedia.org/" lang="ay">Aymar</a> •
+<a href="//ang.wikipedia.org/" lang="ang">Ænglisc</a> •
+<a href="//bjn.wikipedia.org/" lang="bjn">Bahasa Banjar</a> •
+<a href="//bh.wikipedia.org/" lang="bh" title="Bhōjapurī">भोजपुरी</a> •
+<a href="//bcl.wikipedia.org/" lang="bcl">Bikol Central</a> •
+<a href="//bo.wikipedia.org/" lang="bo" title="Bod Skad">བོད་ཡིག</a> •
+<a href="//bxr.wikipedia.org/" lang="bxr" title="Buryad">Буряад</a> •
+<a href="//cbk-zam.wikipedia.org/" lang="cbk-x-zam">Chavacano de
Zamboanga</a> •
+<a href="//co.wikipedia.org/" lang="co">Corsu</a> •
+<a href="//za.wikipedia.org/" lang="za">Cuengh</a> •
+<a href="//pdc.wikipedia.org/" lang="pdc">Deitsch</a> •
+<a href="//dv.wikipedia.org/" lang="dv" title="Dhivehi"><bdi
dir="rtl">ދިވެހިބަސް</bdi></a> •
+<a href="//nv.wikipedia.org/" lang="nv">Diné Bizaad</a> •
+<a href="//dsb.wikipedia.org/" lang="dsb">Dolnoserbski</a> •
+<a href="//eml.wikipedia.org/" lang="roa-x-eml">Emigliàn–Rumagnòl</a> •
+<a href="//myv.wikipedia.org/" lang="myv" title="Erzjanj">Эрзянь</a> •
+<a href="//ext.wikipedia.org/" lang="ext">Estremeñu</a> •
+<a href="//hif.wikipedia.org/" lang="hif">Fiji Hindi</a> •
+<a href="//fur.wikipedia.org/" lang="fur">Furlan</a> •
+<a href="//gv.wikipedia.org/" lang="gv">Gaelg</a> •
+<a href="//gag.wikipedia.org/" lang="gag">Gagauz</a> •
+<a href="//glk.wikipedia.org/" lang="glk" title="Giləki"><bdi
dir="rtl">گیلکی</bdi></a> •
+<a id="gan_wiki" href="//gan.wikipedia.org/" lang="gan" title="Gon ua"
data-convert-Hans="赣语">贛語</a> •
+<a href="//hak.wikipedia.org/" lang="hak"><span
lang="hak-Latn">Hak-kâ-fa</span> / <span id="hak_wiki" lang="hak-Hani"
data-convert-Hans="客家话">客家話</span></a> •
+<a href="//xal.wikipedia.org/" lang="xal" title="Halʹmg">Хальмг</a> •
+<a href="//ha.wikipedia.org/" lang="ha"><span lang="ha-Latn">Hausa</span> /
<bdi lang="ha-Arab" dir="rtl">هَوُسَا</bdi></a> •
+<a href="//haw.wikipedia.org/" lang="haw">ʻŌlelo Hawaiʻi</a> •
+<a href="//hsb.wikipedia.org/" lang="hsb">Hornjoserbsce</a> •
+<a href="//ig.wikipedia.org/" lang="ig">Igbo</a> •
+<a href="//ilo.wikipedia.org/" lang="ilo">Ilokano</a> •
+<a href="//ie.wikipedia.org/" lang="ie">Interlingue</a> •
+<a href="//kl.wikipedia.org/" lang="kl">Kalaallisut</a> •
+<a href="//pam.wikipedia.org/" lang="pam">Kapampangan</a> •
+<a href="//csb.wikipedia.org/" lang="csb">Kaszëbsczi</a> •
+<a href="//kw.wikipedia.org/" lang="kw">Kernewek / Karnuack</a> •
+<a href="//km.wikipedia.org/" lang="km" title="Phéasa
Khmér">ភាសាខ្មែរ</a> •
+<a href="//rw.wikipedia.org/" lang="rw">Kinyarwanda</a> •
+<a href="//kv.wikipedia.org/" lang="kv" title="Komi">Коми</a> •
+<a href="//gom.wikipedia.org/" lang="gom"><span lang="gom-Deva">कोंकणी</span>
/ <span lang="gom-Latn">Konknni</span></a> •
+<a href="//lad.wikipedia.org/" lang="lad" title="Ladino"><span
lang="lad-Latn">Dzhudezmo</span> / <bdi lang="lad-Hebr"
dir="rtl">לאדינו</bdi></a> •
+<a href="//lbe.wikipedia.org/" lang="lbe" title="Lakːu">Лакку</a> •
+<a href="//lo.wikipedia.org/" lang="lo" title="Phaasaa Laao">ພາສາລາວ</a> •
+<a href="//lez.wikipedia.org/" lang="lez" title="Lezgi">Лезги</a> •
+<a href="//lij.wikipedia.org/" lang="lij">Líguru</a> •
+<a href="//ln.wikipedia.org/" lang="ln">Lingála</a> •
+<a href="//jbo.wikipedia.org/" lang="jbo">lojban</a> •<!-- Don’t
capitalize this: this language has no title case. -->
+<a href="//lrc.wikipedia.org/" lang="lrc" title="Löriyé-Šomālī"><bdi
dir="rtl">لۊری شومالی</bdi></a> •
+<a href="//mai.wikipedia.org/" lang="mai" title="Maithilī">मैथिली</a> •
+<a href="//mt.wikipedia.org/" lang="mt">Malti</a> •
+<a href="//zh-classical.wikipedia.org/" lang="lzh" title="Man4jin4 /
Wényán">文言</a> •
+<a href="//ty.wikipedia.org/" lang="ty">Reo Mā’ohi</a> •
+<a href="//mi.wikipedia.org/" lang="mi">Māori</a> •
+<a href="//xmf.wikipedia.org/" lang="xmf"
title="Margaluri">მარგალური</a> •
+<a href="//cdo.wikipedia.org/" lang="cdo">Mìng-dĕ̤ng-ngṳ̄</a> •
+<a href="//mwl.wikipedia.org/" lang="mwl">Mirandés</a> •
+<a href="//mdf.wikipedia.org/" lang="mdf" title="Mokšenj">Мокшень</a> •
+<a href="//na.wikipedia.org/" lang="na">Dorerin Naoero</a> •
+<a href="//nds-nl.wikipedia.org/" lang="nds-nl">Nedersaksisch</a> •
+<a href="//frr.wikipedia.org/" lang="frr">Nordfriisk</a> •
+<a href="//nrm.wikipedia.org/" lang="roa-x-nrm">Nouormand / Normaund</a> •
+<a href="//nov.wikipedia.org/" lang="nov">Novial</a> •
+<a href="//mhr.wikipedia.org/" lang="mhr" title="Olyk Marij">Олык
Марий</a> •
+<a href="//as.wikipedia.org/" lang="as" title="Ôxômiya">অসমীযা়</a> •
+<a href="//pi.wikipedia.org/" lang="pi" title="Pāḷi">पाऴि</a> •
+<a href="//pag.wikipedia.org/" lang="pag">Pangasinán</a> •
+<a href="//pap.wikipedia.org/" lang="pap">Papiamentu</a> •
+<a href="//ps.wikipedia.org/" lang="ps" title="Paʂto"><bdi
dir="rtl">پښتو</bdi></a> •
+<a href="//koi.wikipedia.org/" lang="koi" title="Perem Komi">Перем
Коми</a> •
+<a href="//pfl.wikipedia.org/" lang="pfl">Pfälzisch</a> •
+<a href="//pcd.wikipedia.org/" lang="pcd">Picard</a> •
+<a href="//krc.wikipedia.org/" lang="krc"
title="Qaraçay–Malqar">Къарачай–Малкъар</a> •
+<a href="//kaa.wikipedia.org/" lang="kaa">Qaraqalpaqsha</a> •
+<a href="//crh.wikipedia.org/" lang="crh">Qırımtatarca</a> •
+<a href="//ksh.wikipedia.org/" lang="ksh">Ripoarisch</a> •
+<a href="//rm.wikipedia.org/" lang="rm">Rumantsch</a> •
+<a href="//rue.wikipedia.org/" lang="rue" title="Rusin’skyj Yazyk">Русиньскый
Язык</a> •
+<a href="//se.wikipedia.org/" lang="se">Sámegiella</a> •
+<a href="//sc.wikipedia.org/" lang="sc">Sardu</a> •
+<a href="//stq.wikipedia.org/" lang="stq">Seeltersk</a> •
+<a href="//nso.wikipedia.org/" lang="nso">Sesotho sa Leboa</a> •
+<a href="//sn.wikipedia.org/" lang="sn">ChiShona</a> •
+<a href="//sd.wikipedia.org/" lang="sd" title="Sindhī"><bdi
dir="rtl">سنڌي</bdi></a> •
+<a href="//szl.wikipedia.org/" lang="szl">Ślůnski</a> •
+<a href="//so.wikipedia.org/" lang="so">Soomaaliga</a> •
+<a href="//srn.wikipedia.org/" lang="srn">Sranantongo</a> •
+<a href="//kab.wikipedia.org/" lang="kab">Taqbaylit</a> •
+<a href="//roa-tara.wikipedia.org/" lang="roa">Tarandíne</a> •
+<a href="//tet.wikipedia.org/" lang="tet">Tetun</a> •
+<a href="//tpi.wikipedia.org/" lang="tpi">Tok Pisin</a> •
+<a href="//to.wikipedia.org/" lang="to">faka Tonga</a> •
+<a href="//azb.wikipedia.org/" lang="azb" title="Türkce"><bdi
dir="rtl">تۆرکجه</bdi></a> •
+<a href="//tk.wikipedia.org/" lang="tk">Türkmençe</a> •
+<a href="//tyv.wikipedia.org/" lang="tyv" title="Tyva dyl">Тыва дыл</a> •
+<a href="//udm.wikipedia.org/" lang="udm" title="Udmurt">Удмурт</a> •
+<a href="//ug.wikipedia.org/" lang="ug"><span lang="ug-Latn">Uyghur</span> /
<bdi lang="ug-Arab" dir="rtl">ئۇيغۇرچه</bdi></a> •
+<a href="//fiu-vro.wikipedia.org/" lang="vro">Võro</a> •
+<a href="//vep.wikipedia.org/" lang="vep">Vepsän</a> •
+<a href="//vls.wikipedia.org/" lang="vls">West-Vlams</a> •
+<a href="//wo.wikipedia.org/" lang="wo">Wolof</a> •
+<a id="wuu_wiki" href="//wuu.wikipedia.org/" lang="wuu" title="Wú Yǔ"
data-convert-Hans="吴语">吳語</a> •
+<a href="//diq.wikipedia.org/" lang="diq">Zazaki</a> •
+<a href="//zea.wikipedia.org/" lang="zea">Zeêuws</a>
+</div>
+
+<!-- Bookshelves -->
+<h2 class="bookshelf-container">
+<span class="bookshelf"><span class="bookend" style="width: 40px /* 1 * 40
*/;"></span><span class="text">100+</span><span class="bookend" style="width:
40px;"></span></span>
+</h2>
+
+<!-- 100+ content pages -->
+<div class="langlist langlist-tiny">
+<a href="//ak.wikipedia.org/" lang="ak">Akan</a> •
+<a href="//ab.wikipedia.org/" lang="ab" title="Aṗsua">Аҧсуа</a> •
+<a href="//bm.wikipedia.org/" lang="bm">Bamanankan</a> •
+<a href="//bi.wikipedia.org/" lang="bi">Bislama</a> •
+<a href="//ch.wikipedia.org/" lang="ch">Chamoru</a> •
+<a href="//ny.wikipedia.org/" lang="ny">Chichewa</a> •
+<a href="//ee.wikipedia.org/" lang="ee">Eʋegbe</a> •
+<a href="//ff.wikipedia.org/" lang="ff">Fulfulde</a> •
+<a href="//ki.wikipedia.org/" lang="ki">Gĩkũyũ</a> •
+<a href="//got.wikipedia.org/" lang="got" title="Gutisk">𐌲𐌿𐍄𐌹𐍃𐌺</a> •
+<a href="//iu.wikipedia.org/" lang="iu" title="Inuktitut"><span
lang="iu-Cans">ᐃᓄᒃᑎᑐᑦ</span> / <span lang="iu-Latn">Inuktitut</span></a> •
+<a href="//ik.wikipedia.org/" lang="ik">Iñupiak</a> •
+<a href="//ks.wikipedia.org/" lang="ks" title="Kashmiri"><bdi
dir="rtl">كشميري</bdi></a> •
+<a href="//kg.wikipedia.org/" lang="kg">Kongo</a> •
+<a href="//ltg.wikipedia.org/" lang="ltg">Latgaļu</a> •
+<a href="//lg.wikipedia.org/" lang="lg">Luganda</a> •
+<a href="//mo.wikipedia.org/" lang="ro-Cyrl"
title="Moldovenească">Молдовеняскэ</a> •
+<a href="//fj.wikipedia.org/" lang="fj">Na Vosa Vaka-Viti</a> •
+<a href="//pih.wikipedia.org/" lang="pih">Norfuk / Pitkern</a> •
+<a href="//om.wikipedia.org/" lang="om">Afaan Oromoo</a> •
+<a href="//pnt.wikipedia.org/" lang="pnt" title="Pontiaká">Ποντιακά</a> •
+<a href="//dz.wikipedia.org/" lang="dz" title="Rdzong-Kha">རྫོང་ཁ</a> •
+<a href="//rmy.wikipedia.org/" lang="rmy">Romani</a> •
+<a href="//rn.wikipedia.org/" lang="rn">Kirundi</a> •
+<a href="//sm.wikipedia.org/" lang="sm">Gagana Sāmoa</a> •
+<a href="//sg.wikipedia.org/" lang="sg">Sängö</a> •
+<a href="//st.wikipedia.org/" lang="st">Sesotho</a> •
+<a href="//tn.wikipedia.org/" lang="tn">Setswana</a> •
+<a href="//cu.wikipedia.org/" lang="cu" title="Slověnĭskŭ"><span
lang="cu-Cyrl">Словѣ́ньскъ</span> / <span
lang="cu-Glag">ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ</span></a> •
+<a href="//ss.wikipedia.org/" lang="ss">SiSwati</a> •
+<a href="//ti.wikipedia.org/" lang="ti" title="Tigriññā">ትግርኛ</a> •
+<a href="//chr.wikipedia.org/" lang="chr" title="Tsalagi">ᏣᎳᎩ</a> •
+<a href="//tum.wikipedia.org/" lang="tum">chiTumbuka</a> •
+<a href="//ts.wikipedia.org/" lang="ts">Xitsonga</a> •
+<a href="//chy.wikipedia.org/" lang="chy">Tsėhesenėstsestotse</a> •
+<a href="//ve.wikipedia.org/" lang="ve">Tshivenḓa</a> •
+<a href="//tw.wikipedia.org/" lang="tw">Twi</a> •
+<a href="//xh.wikipedia.org/" lang="xh">isiXhosa</a> •
+<a href="//zu.wikipedia.org/" lang="zu">isiZulu</a>
+</div>
+
+<!-- Other languages -->
+<div class="langlist langlist-other">
+<!-- (keeping strong-element for non-css agents) -->
+<strong>
+<a href="//meta.wikimedia.org/wiki/List_of_Wikipedias" lang="en">Other
languages</a> •
+<a href="//de.wikipedia.org/wiki/Wikipedia:Sprachen" lang="de">Weitere
Sprachen</a> •
+<a href="//meta.wikimedia.org/wiki/Liste_des_Wikip%C3%A9dias" lang="fr">Autres
langues</a> •
+<a href="//pl.wikipedia.org/wiki/Wikipedia:Lista_wersji_j%C4%99zykowych"
lang="pl">Kompletna lista języków</a> •
+<a
href="//ja.wikipedia.org/wiki/Wikipedia:%E5%A4%9A%E8%A8%80%E8%AA%9E%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A8%E3%81%97%E3%81%A6%E3%81%AE%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2"
lang="ja">他の言語</a> •
+<a href="//meta.wikimedia.org/wiki/Lista_de_Wikipedias" lang="es">Otros
idiomas</a> •
+<a
href="//zh.wikipedia.org/wiki/Wikipedia:%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%E8%AF%AD%E8%A8%80%E5%88%97%E8%A1%A8"
lang="zh" id="zh_others" data-convert-Hans="其他语言">其他語言</a> •
+<a
href="//ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A1%D0%92"
lang="ru">Другие языки</a> •
+<a href="//eo.wikipedia.org/wiki/Vikipedio:Internacia_Vikipedio"
lang="eo">Aliaj lingvoj</a> •
+<a
href="//meta.wikimedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC%EC%9D%98_%EB%AA%A9%EB%A1%9D"
lang="ko">다른 언어</a> •
+<a
href="//vi.wikipedia.org/wiki/Wikipedia:Phi%C3%AAn_b%E1%BA%A3n_ng%C3%B4n_ng%E1%BB%AF"
lang="vi">Ngôn ngữ khác</a>
+</strong>
+</div>
+
+<div class="divider" style="padding: 0 1%;"><hr></div>
+
+<!-- Other projects -->
+<div class="otherprojects">
+
+<div class="otherprojects-item">
+<a href="//www.wiktionary.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/3/3b/Wiktionary-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/c/c2/Wiktionary-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/0/05/Wiktionary-logo_sister_2x.png
2x" width="35" height="35" alt=""></span> Wiktionary</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikinews.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/a/aa/Wikinews-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/e/e7/Wikinews-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/4/4b/Wikinews-logo_sister_2x.png
2x" width="47" height="24" alt=""></span> Wikinews</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikiquote.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/c/c8/Wikiquote-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/a/aa/Wikiquote-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/9/97/Wikiquote-logo_sister_2x.png
2x" width="35" height="41" alt=""></span> Wikiquote</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikibooks.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/7/74/Wikibooks-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/4/47/Wikibooks-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/0/0f/Wikibooks-logo_sister_2x.png
2x" width="35" height="35" alt=""></span> Wikibooks</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikidata.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/0/00/Wikidata-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/5/58/Wikidata-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/e/ec/Wikidata-logo_sister_2x.png
2x" width="47" height="26" alt=""></span> Wikidata</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//species.wikimedia.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/8/8c/Wikispecies-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/4/43/Wikispecies-logo_sister_1.5x.png
1.5x,
//upload.wikimedia.org/wikipedia/meta/7/7d/Wikispecies-logo_sister_2x.png 2x"
width="35" height="41" alt=""></span> Wikispecies</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikisource.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/2/27/Wikisource-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/0/06/Wikisource-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/a/a4/Wikisource-logo_sister_2x.png
2x" width="35" height="37" alt=""></span> Wikisource</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikiversity.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/a/af/Wikiversity-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/d/df/Wikiversity-logo_sister_1.5x.png
1.5x,
//upload.wikimedia.org/wikipedia/meta/6/69/Wikiversity-logo_sister_2x.png 2x"
width="35" height="28" alt=""></span> Wikiversity</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.wikivoyage.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/7/74/Wikivoyage-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/4/4c/Wikivoyage-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/4/4e/Wikivoyage-logo_sister_2x.png
2x" width="35" height="35" alt=""></span> Wikivoyage</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//commons.wikimedia.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/9/90/Commons-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/4/4e/Commons-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/b/b6/Commons-logo_sister_2x.png 2x"
width="35" height="47" alt="" style="vertical-align: top;"></span> Commons</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//www.mediawiki.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/1/16/MediaWiki-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/f/f7/MediaWiki-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/2/2e/MediaWiki-logo_sister_2x.png
2x" width="47" height="36" alt=""></span> MediaWiki</a>
+</div>
+
+<div class="otherprojects-item">
+<a href="//meta.wikimedia.org/"><span class="icon"><img
src="//upload.wikimedia.org/wikipedia/meta/f/f2/Meta-logo_sister_1x.png"
srcset="//upload.wikimedia.org/wikipedia/meta/6/61/Meta-logo_sister_1.5x.png
1.5x, //upload.wikimedia.org/wikipedia/meta/a/ac/Meta-logo_sister_2x.png 2x"
width="35" height="35" alt=""></span> Meta-Wiki</a>
+</div>
+
+</div>
+
+<!-- Site info -->
+<div class="wm-site-info">
+<a href="//wikimediafoundation.org/"><img
src="/static/images/wikimedia-button.png"
srcset="https://upload.wikimedia.org/wikipedia/meta/3/3a/A_Wikimedia_project_1.5x.png
1.5x,
https://upload.wikimedia.org/wikipedia/meta/b/b7/A_Wikimedia_project_2x.png 2x"
width="88" height="31" alt="A Wikimedia Project"></a>
+</div>
+
+<div style="text-align:center"><span id="discovery-feedback-survey"
style="display:none"><a
href="//wikimedia.qualtrics.com/jfe/form/SV_3rZFiKhpb2JzWbb">Give Us
Feedback</a> | </span><a
href="//wikimediafoundation.org/wiki/Terms_of_Use">Terms of Use</a> | <a
href="//wikimediafoundation.org/wiki/Privacy_policy">Privacy Policy</a></div>
+<script>if (Math.floor( Math.random() * 5 ) === 0) { document.getElementById(
"discovery-feedback-survey" ).style.display="inline"; }</script>
+<script src="assets/js/wm-portal.js"></script>
+</body>
+</html>
diff --git a/gulpfile.js b/gulpfile.js
new file mode 100644
index 0000000..42ebe5b
--- /dev/null
+++ b/gulpfile.js
@@ -0,0 +1,21 @@
+
+var gulp = require('gulp'),
+ gulpLoadPlugins = require('gulp-load-plugins');
+
+var plugins = gulpLoadPlugins();
+
+var baseDir = "dev/wikipedia.org/";
+var prodDir = "prod/wikipedia.org/";
+
+gulp.task('inline-assets', function(){
+ gulp.src(baseDir+"index.html")
+ .pipe(plugins.inline({
+ base: baseDir,
+ js: plugins.uglify,
+ css: plugins.minifyCss,
+ disabledTypes: ["svg", "img"]
+ }))
+ .pipe(gulp.dest(prodDir));
+});
+
+gulp.task('default', ['inline-assets']);
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..b19c94c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "portals",
+ "version": "1.0.0",
+ "description": "",
+ "main": "gulpfile.js",
+ "dependencies": {
+ "gulp": "^3.9.0",
+ "gulp-inline": "^0.1.0",
+ "gulp-load-plugins": "^1.0.0",
+ "gulp-minify-css": "^1.2.1",
+ "gulp-uglify": "^1.4.2",
+ "gulp-jshint": "^1.11.2"
+ },
+ "devDependencies": {},
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "ssh://[email protected]:29418/wikimedia/portals"
+ },
+ "author": "",
+ "license": "ISC"
+}
diff --git a/prod/wikipedia.org/index.html b/prod/wikipedia.org/index.html
index 4d9fefb..76d84a5 100644
--- a/prod/wikipedia.org/index.html
+++ b/prod/wikipedia.org/index.html
@@ -9,7 +9,9 @@
<link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png">
<link rel="shortcut icon" href="/static/favicon/wikipedia.ico">
<link rel="license" href="//creativecommons.org/licenses/by-sa/3.0/">
-<link rel="stylesheet"
href="//meta.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.gadget.wm-portal&only=styles&skin=vector&*">
+<style>
+.central-featured,.search-container,img{vertical-align:middle}.bookshelf,.central-featured,.central-textlogo,.langlist,.otherprojects,.search-container,.wm-site-info{text-align:center}body{background-color:#fff;font:13px/1.5
sans-serif;margin:.3em
0}a,a:active,a:focus{unicode-bidi:embed;white-space:nowrap;outline:0;color:#0645AD;text-decoration:none}a:hover{text-decoration:underline}img{border:none}hr{height:1px;color:#aaa;background-color:#aaa;border:0;margin:.2em
0}a.external,a.external:active,a.external:visited,a.extiw,a.extiw:active,a.extiw:visited{color:#36b}.central-textlogo{margin:1em
0 .3em;font-size:30px;line-height:110%;font-family:'Linux Libertine','Hoefler
Text',Georgia,'Times New Roman',Times,serif;font-weight:400;padding:10px
0;-moz-font-feature-settings:"ss05=1";-moz-font-feature-settings:"ss05";-webkit-font-feature-settings:"ss05";-ms-font-feature-settings:"ss05";font-feature-settings:"ss05"}.central-featured{position:relative;max-width:100%;width:42em;margin:0
auto;height:26em}.central-featured-logo{position:absolute;left:50%;top:50%;width:0;height:0}.central-featured-logo-inner{position:relative;left:-100px;top:-115px;width:200px;height:200px}.central-featured-lang{position:absolute;width:12em}.central-featured-lang
.link-box{display:block;padding:0;text-decoration:none}.central-featured-lang
.link-box:hover strong{text-decoration:underline}.central-featured-lang
.link-box em,.central-featured-lang .link-box
small{color:#000;text-decoration:none}.central-featured-lang
strong{font-size:larger}.central-featured-lang
em{font-style:italic}.central-featured-lang
em.emNonItalicLang{font-style:normal}.lang1{top:0;right:60%}.lang2{top:0;left:60%}.lang3{top:20%;right:70%}.lang4{top:20%;left:70%}.lang5{top:40%;right:72%}.lang6{top:40%;left:72%}.lang7{top:60%;right:70%}.lang8{top:60%;left:70%}.lang9{top:80%;right:60%}.lang10{top:80%;left:60%}.search-container{float:none;margin:1em
auto 1.5em;max-width:95%;padding:.3em;width:540px}.search-container
h5{white-space:normal}.bookshelf,.search-container label
span{white-space:nowrap}.search-form
fieldset{background-color:#f9f9f9;border:1px solid
#aaa;margin-top:.5em;padding:.7em;width:auto}.search-form
#searchInput{font-size:1.2em;margin:0;padding:0;vertical-align:top}.search-form
select{margin:0 .4em;padding:0;vertical-align:middle}.search-form
.searchButton{font-size:1.2em;margin:0;padding:0;vertical-align:middle}.bookshelf-container{width:100%;overflow:hidden;margin:2em
0 .5em}.bookshelf-container-small{margin:.5em
0}.bookshelf{width:300%;overflow:hidden;position:relative;left:-100%}.langlist{margin:.5em
3em 2.5em}.langlist-large{font-size:larger}.langlist-tiny{margin:.5em 3em
3em}.langlist-others{margin:0 3em
2em;font-weight:700}.otherprojects{float:left;font-weight:700;margin:1.5em
0;vertical-align:middle;width:100%}.otherprojects-item{float:left;height:60px;min-width:12em;width:33%}.wm-site-info{clear:both;margin:2.5em
0 2em}@media
print{body{background-color:transparent}a{color:#000!important;background:0
0!important;padding:0!important}a:link,a:visited{color:#520;background:0
0}img{border:none}}@media all and
(max-width:480px){.central-textlogo{line-height:normal;padding:0 0 0
84px;margin:0;height:70px;text-align:left;position:relative}.central-textlogo
img{height:35px;width:auto;margin-top:22.5px}.central-featured{width:auto;height:auto;padding-top:2em;text-align:left;font-size:.8em;margin-top:4em}.central-featured-logo{right:0;left:.8em;top:-70px;margin-top:-4em}.central-featured-logo-inner{left:auto;top:auto}.central-featured-logo,.central-featured-logo-inner,.central-featured-logo-inner
img{width:70px;height:70px}.central-featured-lang{right:auto;top:auto;position:relative;left:auto;text-align:left;margin-left:1em;display:block;float:left;width:40%;height:5em}.bookshelf
img,.language-search,.search-container
label{display:none}.search-container{margin-top:0;height:6em;position:absolute;top:5em;left:0;right:0;max-width:100%;width:auto;padding:0;text-align:left}.search-form
#searchInput{max-width:40%;vertical-align:middle}.search-form
#searchLanguage,.search-form .formBtn{max-width:25%;vertical-align:middle}form
fieldset{margin:0;border-left:none;border-right:none}.bookshelf{width:auto;left:auto;overflow:hidden;text-align:left}.bookshelf
img:first-child{display:inline-block}.langlist
a{word-wrap:break-word;white-space:normal}.langlist{font-size:.7em}.otherprojects-item{width:50%;text-align:left}.bookshelf-container,.langlist{margin:1em
1em 0;text-align:left;width:auto}.divider{clear:both;padding:.5em 1em
0!important}}@media all and
(max-width:240px){.central-featured-lang,.otherprojects-item{width:100%}.central-textlogo
img{width:100px;height:auto}}@media
(min--moz-device-pixel-ratio:2),(min-resolution:2dppx),(min-resolution:192dpi){.search-form
fieldset,div#footer,table#content
td#footer{border-width:.5px}hr{height:.5px}}@supports
(-webkit-transform:rotate(30deg)){.search-form
fieldset,div#footer,table#content td#footer{border-width:1px}hr{height:1px}}
+</style>
<style type="text/css">
.central-featured-logo{background:url(//upload.wikimedia.org/wikipedia/meta/0/08/Wikipedia-logo-v2_1x.png)
center center
no-repeat;left:0;top:0;width:100%;height:100%}.bookshelf{display:block}.bookshelf-container{font-size:13px;font-weight:700;line-height:20px}.bookshelf-container
.text{padding:0 .5em}.bookshelf-container
.bookend{display:-moz-inline-stack;display:inline-block;background-image:url(//upload.wikimedia.org/wikipedia/commons/b/bd/Bookshelf-40x201_6.png);background-repeat:repeat-x;width:480px;height:20px;vertical-align:top}.otherprojects{text-align:left;float:none;width:90%;margin-left:auto;margin-right:auto}.otherprojects-item{width:24.75%;line-height:60px}.otherprojects-item
a{display:block;width:10em;margin-left:auto;margin-right:auto}.otherprojects-item
.icon{display:-moz-inline-stack;display:inline-block;width:47px;text-align:center}.wm-site-info{padding-top:1.5em}@media
(-webkit-min-device-pixel-ratio:1.5),(min--moz-device-pixel-ratio:1.5),(-o-min-device-pixel-ratio:3/2),(min-resolution:1.5dppx),(min-resolution:144dpi){.central-featured-logo{background-image:url(//upload.wikimedia.org/wikipedia/meta/d/d1/Wikipedia-logo-v2_1.5x.png);background-size:200px
auto}.bookshelf-container
.bookend{background-image:url(//upload.wikimedia.org/wikipedia/meta/5/52/Bookshelf-40x20_1.5x.png);background-size:40px
auto}}@media
(-webkit-min-device-pixel-ratio:2),(min--moz-device-pixel-ratio:2),(-o-min-device-pixel-ratio:2),(min-resolution:2dppx),(min-resolution:192dpi){.central-featured-logo{background-image:url(//upload.wikimedia.org/wikipedia/meta/b/be/Wikipedia-logo-v2_2x.png);background-size:200px
auto}.bookshelf-container
.bookend{background-image:url(//upload.wikimedia.org/wikipedia/meta/4/46/Bookshelf-40x20_2x.png);background-size:40px
auto}}@media all and
(max-width:480px){.central-featured-logo{background-size:70px
auto;left:.8em;top:-70px;width:70px;height:70px}.bookshelf-container
.bookend{width:40px!important}.bookshelf-container
.bookend:last-child{display:none}}@media all and
(max-width:45em){.otherprojects{width:100%}.otherprojects-item{width:33.33%}}@media
all and (max-width:30em){.otherprojects-item{width:50%}}@media all and
(max-width:20em){.otherprojects-item{width:100%}}
</style>
@@ -75,9 +77,9 @@
<!-- #7. zh.wikipedia.org - 512,065 views/hr -->
<div class="central-featured-lang lang7" lang="zh">
-<a class="link-box" id="zh_top10" href="//zh.wikipedia.org/" title="Zhōngwén —
Wikipedia — 自由的百科全書" data-convertTitle-Hans="Zhōngwén — Wikipedia —
自由的百科全书"><strong>中文</strong><br>
-<em id="zh_tag" class="emNonItalicLang"
data-convert-Hans="自由的百科全书">自由的百科全書</em><br>
-<small>845 000+ <span id="zh_art" data-convert-Hans="条目">條目</span></small></a>
+<a class="link-box" id="zh_top10" href="//zh.wikipedia.org/" title="Zhōngwén —
Wikipedia — 自由的百科全書" data-converttitle-hans="Zhōngwén — Wikipedia —
自由的百科全书"><strong>中文</strong><br>
+<em id="zh_tag" class="emNonItalicLang"
data-convert-hans="自由的百科全书">自由的百科全書</em><br>
+<small>845 000+ <span id="zh_art" data-convert-hans="条目">條目</span></small></a>
</div>
<!-- #8. it.wikipedia.org - 396,653 views/hr -->
@@ -346,7 +348,7 @@
<a href="//wa.wikipedia.org/" lang="wa">Walon</a> •
<a href="//yi.wikipedia.org/" lang="yi" title="Yidiš"><bdi
dir="rtl">ייִדיש</bdi></a> •
<a href="//yo.wikipedia.org/" lang="yo">Yorùbá</a> •
-<a id="zh-yue_wiki" href="//zh-yue.wikipedia.org/" lang="yue" title="Yuht Yúh
/ Jyut6 jyu5" data-convert-Hans="粤语">粵語</a> •
+<a id="zh-yue_wiki" href="//zh-yue.wikipedia.org/" lang="yue" title="Yuht Yúh
/ Jyut6 jyu5" data-convert-hans="粤语">粵語</a> •
<a href="//bat-smg.wikipedia.org/" lang="sgs">Žemaitėška</a>
</div></div>
@@ -386,8 +388,8 @@
<a href="//gv.wikipedia.org/" lang="gv">Gaelg</a> •
<a href="//gag.wikipedia.org/" lang="gag">Gagauz</a> •
<a href="//glk.wikipedia.org/" lang="glk" title="Giləki"><bdi
dir="rtl">گیلکی</bdi></a> •
-<a id="gan_wiki" href="//gan.wikipedia.org/" lang="gan" title="Gon ua"
data-convert-Hans="赣语">贛語</a> •
-<a href="//hak.wikipedia.org/" lang="hak"><span
lang="hak-Latn">Hak-kâ-fa</span> / <span id="hak_wiki" lang="hak-Hani"
data-convert-Hans="客家话">客家話</span></a> •
+<a id="gan_wiki" href="//gan.wikipedia.org/" lang="gan" title="Gon ua"
data-convert-hans="赣语">贛語</a> •
+<a href="//hak.wikipedia.org/" lang="hak"><span
lang="hak-Latn">Hak-kâ-fa</span> / <span id="hak_wiki" lang="hak-Hani"
data-convert-hans="客家话">客家話</span></a> •
<a href="//xal.wikipedia.org/" lang="xal" title="Halʹmg">Хальмг</a> •
<a href="//ha.wikipedia.org/" lang="ha"><span lang="ha-Latn">Hausa</span> /
<bdi lang="ha-Arab" dir="rtl">هَوُسَا</bdi></a> •
<a href="//haw.wikipedia.org/" lang="haw">ʻŌlelo Hawaiʻi</a> •
@@ -463,7 +465,7 @@
<a href="//vep.wikipedia.org/" lang="vep">Vepsän</a> •
<a href="//vls.wikipedia.org/" lang="vls">West-Vlams</a> •
<a href="//wo.wikipedia.org/" lang="wo">Wolof</a> •
-<a id="wuu_wiki" href="//wuu.wikipedia.org/" lang="wuu" title="Wú Yǔ"
data-convert-Hans="吴语">吳語</a> •
+<a id="wuu_wiki" href="//wuu.wikipedia.org/" lang="wuu" title="Wú Yǔ"
data-convert-hans="吴语">吳語</a> •
<a href="//diq.wikipedia.org/" lang="diq">Zazaki</a> •
<a href="//zea.wikipedia.org/" lang="zea">Zeêuws</a>
</div>
@@ -526,7 +528,7 @@
<a href="//pl.wikipedia.org/wiki/Wikipedia:Lista_wersji_j%C4%99zykowych"
lang="pl">Kompletna lista języków</a> •
<a
href="//ja.wikipedia.org/wiki/Wikipedia:%E5%A4%9A%E8%A8%80%E8%AA%9E%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E3%81%A8%E3%81%97%E3%81%A6%E3%81%AE%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2"
lang="ja">他の言語</a> •
<a href="//meta.wikimedia.org/wiki/Lista_de_Wikipedias" lang="es">Otros
idiomas</a> •
-<a
href="//zh.wikipedia.org/wiki/Wikipedia:%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%E8%AF%AD%E8%A8%80%E5%88%97%E8%A1%A8"
lang="zh" id="zh_others" data-convert-Hans="其他语言">其他語言</a> •
+<a
href="//zh.wikipedia.org/wiki/Wikipedia:%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91%E8%AF%AD%E8%A8%80%E5%88%97%E8%A1%A8"
lang="zh" id="zh_others" data-convert-hans="其他语言">其他語言</a> •
<a
href="//ru.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%8F:%D0%A1%D0%92"
lang="ru">Другие языки</a> •
<a href="//eo.wikipedia.org/wiki/Vikipedio:Internacia_Vikipedio"
lang="eo">Aliaj lingvoj</a> •
<a
href="//meta.wikimedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC%EC%9D%98_%EB%AA%A9%EB%A1%9D"
lang="ko">다른 언어</a> •
@@ -596,6 +598,8 @@
<div style="text-align:center"><span id="discovery-feedback-survey"
style="display:none"><a
href="//wikimedia.qualtrics.com/jfe/form/SV_3rZFiKhpb2JzWbb">Give Us
Feedback</a> | </span><a
href="//wikimediafoundation.org/wiki/Terms_of_Use">Terms of Use</a> | <a
href="//wikimediafoundation.org/wiki/Privacy_policy">Privacy Policy</a></div>
<script>if (Math.floor( Math.random() * 5 ) === 0) { document.getElementById(
"discovery-feedback-survey" ).style.display="inline"; }</script>
-<script
src="//meta.wikimedia.org/w/load.php?debug=false&lang=en&modules=ext.gadget.wm-portal&only=scripts&skin=vector&*"></script>
+<script>
+!function(){"use strict";function e(e){return
document.getElementById(e)}function
t(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&(m.push([e,t,n]),e.attachEvent("on"+t,n)))}function
n(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n))}function
a(e){var
a=function(){n(document,"DOMContentLoaded",a),n(window,"load",a),e()};"complete"===document.readyState?e():(t(document,"DOMContentLoaded",a),t(window,"load",a))}function
i(e){var
t,n;document.querySelector&&"www-wiktionary-org"===document.body.id&&(t=document.querySelector("option[lang|='"+e+"']"),n=t&&t.getAttribute("data-logo"),n&&document.body.setAttribute("data-logo",n))}function
o(){var
e=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage||"";return
e.toLowerCase().split("-")[0]}function r(){var
e=document.cookie.match(/(?:^|\W)searchLang=([^;]+)/);return(e?e[1]:o()).toLowerCase()}function
c(t){var
n,a,i="data-convert-Hans",o="data-convertTitle-Hans";if(-1!=="zh-hans,zh-cn,zh-sg,zh-my,".indexOf(t+",")){var
r=["zh_art","zh_others","zh_search","zh_tag","zh_top10","zh-yue_wiki","gan_wiki","hak_wiki","wuu_wiki"];for(n=0;n<r.length;n+=1)(a=e(r[n]))&&(a.hasAttribute(i)&&(a.innerHTML=a.getAttribute(i)),a.hasAttribute(o)&&(a.title=a.getAttribute(o)))}}function
s(t){var
n;0===t.indexOf("zh")&&(n=t.substring(3),"mo"===n?n="hk":"my"===n&&(n="sg"),n&&"cn,tw,hk,sg,".indexOf(n+",")>=0&&(e("zh_wiki").href+="zh-"+n+"/",e("zh_others").href=e("zh_others").href.replace("wiki/","zh-"+n+"/")),c(t))}function
u(){if(void 0!==window.HTMLDataListElement){var
n=document.createElement("datalist"),a=e("searchInput");n.id="suggestions",document.body.appendChild(n),a.autocomplete="off",a.setAttribute("list","suggestions"),t(a,"input",function(){var
t=document.getElementsByTagName("head")[0],n=window.location.hostname.replace("www.",e("searchLanguage").value+"."),i=e("api_opensearch");i&&t.removeChild(i),i=document.createElement("script"),i.id="api_opensearch",i.src="//"+n+"/w/api.php?action=opensearch&limit=10&format=json&callback=portalOpensearchCallback&search="+a.value,t.appendChild(i)})}}function
d(e){if(e){var t=o(),n=t.match(/^\w+/),a=new
Date;i(e),n&&n[0]===e?a.setTime(a.getTime()-1):a.setFullYear(a.getFullYear()+1),document.cookie="searchLang="+e+";expires="+a.toUTCString()+";domain="+location.host+";"}}function
h(){return void 0!==window.devicePixelRatio?window.devicePixelRatio:void
0!==window.msMatchMedia?window.msMatchMedia("(min-resolution:
192dpi)").matches?2:window.msMatchMedia("(min-resolution:
144dpi)").matches?1.5:1:1}function l(e,t){var
n,a,i,o,r={ratio:1};for(n=t.split(/ *,
*/),i=0;i<n.length;i++)a=n[i].match(/\s*(\S+)(?:\s*([\d.]+)w)?(?:\s*([\d.]+)h)?(?:\s*([\d.]+)x)?\s*/),o=a[4]&&parseFloat(a[4]),e>=o&&o>r.ratio&&(r.ratio=o,r.src=a[1],r.width=a[2]&&parseFloat(a[2]),r.height=a[3]&&parseFloat(a[3]));return
r}function g(){var e,t,n=h(),a=new Image;if(n>1&&void
0===a.srcset)for(e=document.getElementsByTagName("img"),t=0;t<e.length;t++){var
i,o=e[t],r=o.getAttribute("srcset");"string"==typeof r&&""!==r&&(i=l(n,r),void
0!==i.src&&(o.setAttribute("src",i.src),void
0!==i.width&&o.setAttribute("width",i.width),void
0!==i.height&&o.setAttribute("height",i.height)))}}var
m=[];window.onunload=function(){var
e,t;for(e=0;e<m.length;e++)t=m[e],t[0]&&t[0].detachEvent("on"+t[1],t[2]);m=[]},a(function(){var
t,n,a,o,c,u,d,h,l=r();if(l&&(s(l),t=l.match(/^\w+/),t&&(t="nb"===t[0]?"no":t[0],n=e("searchLanguage")))){for(a=n.getElementsByTagName("option"),o=0,c=a.length;!u&&c>o;o+=1)a[o].value===t&&(u=t);!u&&document.querySelector&&(d=document.querySelector(".langlist
a[lang|='"+t+"']"),d&&(u=t,h=document.createElement("option"),h.setAttribute("lang",t),h.setAttribute("value",t),h.innerHTML=d.textContent||d.innerText||t,n.appendChild(h))),u&&(n.value=u,i(u))}}),window.portalOpensearchCallback=function(t){var
n,a=e("suggestions"),i=a.children;for(n=0;n<t[1].length;n+=1){var
o=i[n]||document.createElement("option");o.value=t[1][n],i[n]||a.appendChild(o)}for(n=a.children.length-1;n>=t[1].length;n-=1)a.removeChild(a.children[n])},a(function(){var
n,a,i,o=e("searchInput"),r=e("searchLanguage");if(o)for(o.setAttribute("results","10"),u(),void
0===o.autofocus?o.focus():window.scroll(0,0),n=location.search&&location.search.substr(1).split("&"),a=0;a<n.length;a+=1)if(i=n[a].split("="),"search"===i[0]&&i[1])return
void(o.value=decodeURIComponent(i[1].replace(/\+/g,"
")));t(r,"change",function(){d(r.value)})}),a(function(){var
e=document.searchwiki&&document.searchwiki.elements.uselang;e&&(e.value=o())}),a(g)}(),window.mw||(window.mw=window.mediaWiki={loader:{state:function(){}}});
+</script>
</body>
</html>
--
To view, visit https://gerrit.wikimedia.org/r/248563
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: If8a6a93ff6b761cf64902d696cc5c934042aec60
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/portals
Gerrit-Branch: master
Gerrit-Owner: Jdrewniak <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits