Afrikaans | العربية | অসমীয়া | asturianu | azərbaycanca | Boarisch | беларуская | беларуская (тарашкевіца)‎ | български | বাংলা | བོད་ཡིག | bosanski | català | کوردی | corsu | čeština | Cymraeg | dansk | Deutsch | Deutsch (Sie-Form)‎ | Zazaki | ދިވެހިބަސް | Ελληνικά | emiliàn e rumagnòl | English | Esperanto | español | eesti | euskara | فارسی | suomi | français | Nordfriisk | Frysk | galego | Alemannisch | ગુજરાતી | עברית | हिन्दी | Fiji Hindi | hrvatski | magyar | հայերեն | interlingua | Bahasa Indonesia | Ido | íslenska | italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | kar | kurdî | Limburgs | lietuvių | Minangkabau | македонски | മലയാളം | молдовеняскэ | Bahasa Melayu | မြန်မာဘာသာ | مازِرونی | Napulitano | नेपाली | Nederlands | norsk nynorsk | norsk | occitan | Kapampangan | polski | português | português do Brasil | پښتو | Runa Simi | română | русский | संस्कृतम् | sicilianu | سنڌي | සිංහල | slovenčina | slovenščina | Soomaaliga | shqip | српски / srpski | svenska | ślůnski | தமிழ் | тоҷикӣ | ไทย | Türkmençe | Tagalog | Türkçe | татарча/tatarça | ⵜⴰⵎⴰⵣⵉⵖⵜ  | українська | اردو | oʻzbekcha/ўзбекча | Tiếng Việt | 吴语 | 粵語 | 中文(简体)‎ | 中文(繁體)‎ | +/-

Welcome to Meta!Edit

Hello, JDrewniak (WMF). Welcome to the Wikimedia Meta-Wiki! This website is for coordinating and discussing all Wikimedia projects. You may find it useful to read our policy page. If you are interested in doing translations, visit Meta:Babylon. You can also leave a note on Meta:Babel or Wikimedia Forum if you need help with something (please read the instructions at the top of the page before posting there). Happy editing!

-- Meta-Wiki Welcome (talk) 03:10, 8 October 2015 (UTC)

IRC cloakEdit

I am jan_drewniak on IRC. JDrewniak (WMF) (talk) 18:48, 21 October 2015 (UTC)

Module:Project portal/viewsEdit

Hi Jan. I wonder if you could help me with Module:Project_portal/views/doc. I've managed to run gulp update-stats and the output is written on site-stats.json; but when it comes to the third step I don't really know what to do or where to run that script to update the page. Do you have any idea? Thanks! —MarcoAurelio 19:05, 1 March 2017 (UTC)

Hi Marco . I've updated the page https://meta.wikimedia.org/wiki/Module:Project_portal/views . I'll describe the steps I took below:
1. I created a file at the root of the portal repo called convertStatsToLua.js
2. I pasted in a modified version of the function Mxn provided here https://meta.wikimedia.org/wiki/Module:Project_portal/views/doc into that file:
  var wikis = require('./data/site-stats.json');
  function transform(project /* wiki, wiktionary, wikibooks, etc. */) {
   let views = [];
   for (let code in wikis[project]) {
       let key = (code === "or" || code.indexOf("-") >= 0) ? ('["' + code + '"]') : code;
       views.push("\t\t" + key + " = " + wikis[project][code].views + ",");
   }
   console.log( views.join("\n") )
   return views.join("\n");
   }
   module.exports.transform = transform;
3. I opened a terminal window, went to the root of the portal repo, and ran a command like this
   node -e 'require("./convertStatsToLua.js").transform("wiktionary")' | pbcopy
(the part " | pbcopy" pipes the output of the command to my clipboad. It's optional and different for Linux/Windows).
4. I ran that command for each wiki and pasted the output into the corresponding section of the Module:Project_portal/views page.
5. I Updated the timestamp on that page & saved it.
I think it makes sense to turn this conversion process into a gulp task. Instead of creating a separate javascript file for this, I think running a task like `gulp convertStatsToLua` could provide the output needed for the Module:Project_portal/views page. I'll see what I can do about that... —The preceding unsigned comment was added by JDrewniak (WMF) (talk) 20:35, 1 March 2017 (UTC)
Hi Jan. Thank you very much for your detailed reply and for the update of the views. With regards to the conversion script, it'd be indeed awesome to have it as a gulp task (if it could output a file that just needs copy-paste for all projects instead of having to go project by project it'd be good. If you think you can work on that that'd be really awesome. I am periodically updating the sister projects portals based on that Module data and some sort of automatization for this would be really good. Best regards, —MarcoAurelio 15:52, 2 March 2017 (UTC)

Module:Project portal/views update?Edit

Hi. Could you please update Module:Project portal/views with gulp? Best regards, —MarcoAurelio 18:10, 12 June 2017 (UTC)

Sorry for the delay, I've updated Module:Project portal/views. —Jan 13:27, 26 June 2017 (UTC)