Wikipedia:Wikipedia Signpost/2017-02-27/Technology report

{{Wikipedia:Wikipedia Signpost/Templates/RSS description|1=Responsive content on desktop; Offline content in Android app: CREDIT showcase (Community, Reading, Editing, Discovery, Infrastructure and Technology) is a monthly live-streamed meeting that demonstrations developers' recent work, such as new gadgets, experiments and independent projects. It is hosted by the Wikimedia Foundation, with presentations from Wikimedia Engineering teams or individuals. The following highlights have been taken from the February's CREDIT showcase, which is available in full on Commons and on YouTube.}}{{Wikipedia:Signpost/Template:Signpost-header|||}}

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-article-header-v2|{{{1|Responsive content on desktop; Offline content in Android app}}}|By Evad37| 16 February 2017}}

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2}}

{{Signpost inline image|image=File:CREDIT clip - responsive content.ogg|caption=Responsive content for a narrow screen... "isn't that beautiful?"}}

CREDIT showcase (Community, Reading, Editing, Discovery, Infrastructure and Technology) is a monthly live-streamed meeting that demonstrations developers' recent work, such as new gadgets, experiments and independent projects. It is hosted by the Wikimedia Foundation, with presentations from Wikimedia Engineering teams or individuals. The following highlights have been taken from the February's CREDIT showcase, which is available in full on Commons (WebM video) or [https://www.youtube.com/watch?v=JxjSQ0TGXsw on YouTube].

=Responsive content for narrow and wide-screen displays=

Derk-Jan Hartman (User:TheDJ) has written some CSS styling rules that makes Vector, the default desktop skin, adapt the display of content for both narrow and wide displays. These changes include limiting the width of content, adjusting the font size, and for wide screens, moving images and infoboxes into sidebars. The responsive content CSS is available on-wiki for users to install and test.{{#tag:ref|Copy the following code, [//en.wikipedia.org/w/index.php?title=Special:MyPage/common.js&action=edit click here], then paste:
mw.loader.load( '/w/index.php?title=User:TheDJ/responsiveContent.css&action=raw&ctype=text/css', 'text/css' ); // Backlink: User:TheDJ/responsiveContent.css}}

=On-wiki translatable training modules=

{{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2|image=File:CREDIT clip - onwiki training modules.ogg|caption=A training module that takes it content from wiki pages}}

Sage Ross has developed a framework for presenting community built training modules. The modules are designed to present "bite-sized" bits of information in a way that is easy to learn - a slideshow to navigate through, without lots of distracting links that on-wiki content usually has. The slide contents are pulled from wiki pages, which makes them editable and translatable.

=Offline content in the Android app=

{{Wikipedia:Wikipedia Signpost/Templates/Filler image-v2|image=File:CREDIT clip - offline content.ogv|caption=The Wikipedia Android app detects that the device is offline, and seamlessly switches to an already-download collection of articles}}Kiwix is an app that allows offline browsing of Wikipedia, after downloading a collection of articles. Dmitry Brant has worked on seamlessly integrating this functionality into the Wikipedia Android app. When it detects that the device is offline, the app automatically switches to the offline collection as the content source (and warns the user that articles might not be up to date). Mobile app features, such as collapsing infoboxes and searching within the page, still work. Users can also continue reading articles they had been reading online, and navigate through links, with the pages being fetched from the offline collection. The user experience of downloading the offline collection still needs to be worked on.

=Random locale for Android app developers=

Stephen Niedzielski demonstrated a small change in the developmental version of the Wikipedia Android app – a randomised locale is chosen when the first time the app launched after installation. This ensures single-lingual or even bilingual developers experience "a little bit of what the rest of the world sees" in one of the almost 300 languages other than English (or their preferred language). This makes developers less likely to be completely unaware of issues in other locales.

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2}}

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-start-v2|1=fullwidth}}

{{Signpost inline image|image=File:CREDIT clip - random locale.ogg|caption=After installing this developmental version of the Android app, the locale is randomly set to "MN" (Mongolian)}}

=In brief=

Newly approved bot tasks

Latest tech news from the Wikimedia technical community: 2017 #6, #7, & #8. Please tell other users about these changes. Not all changes will affect you. Translations are available on Meta.

  • Problems
  • The block log sometimes showed blocks as being much longer than they were. This has now been fixed. (Phabricator task T156453)
  • The Firefox add-on [https://firefogg.org/ Firefogg] can cause problems with the Upload Wizard. This will not be fixed, because Firefox will not support Firefogg in the future. The Upload Wizard will no longer work with Firefogg. (Phabricator task T157201)
  • Tool Labs and Wikimedia Labs databases will be under maintenance on 15 February. This will start at [http://www.timeanddate.com/worldclock/fixedtime.html?hour=17&min=00&sec=0&day=15&month=02&year=2017 17:00 (UTC)] and last for about six hours. Some tools could have problems during or after this. (Phabricator task T157358)
  • Recent changes
  • Wikimedia pages will now be better at showing pictures when you share them on social media. The descriptions will be different too. You can see an example of before and after. (Phabricator task T157055)
  • The TwoColConflict extension is a new way to solve edit conflicts. It makes it easier to copy and paste the relevant text to the text field. It came to Meta and German Wikipedia recently (week of 13 February). It is also available on MediaWiki.org. It will come to more wikis later. ([https://meta.wikimedia.org/wiki/WMDE_Technical_Wishes/Edit_Conflicts Meta page])
  • The edit summary box is now a little bit bigger. This is to make it follow the Wikimedia design guide. (Phabricator task T152025) You can make your edit summary box smaller again by adding code like #wpSummary { padding: 0.2em !important; } to {{yourcss}} (the number can be adjusted until it looks right for you).
  • File:Octicons-tools.svg There are some changes to the OOjs UI. Some old functions will not work anymore or not work as they used to. This could be a breaking change. ([https://lists.wikimedia.org/pipermail/wikitech-l/2017-February/087547.html Wikitech mailing list])
  • File:Octicons-tools.svg EventStreams is a new way to show activity on Wikimedia wikis. For now it works with the recent changes feed. It will do more things later. It will replace RCStream. Tools that use RCStream should move to EventStreams before 7 July. ([https://lists.wikimedia.org/pipermail/analytics/2017-February/005711.html Analytics mailing list])
  • File:Octicons-tools.svg The Developer Wishlist is a list where developers prioritize tools they need. The voting closed at 14 February 23:59 (UTC), and the results are available on MediaWiki.org. This process is only for developers.
  • Changes this week
  • File:Octicons-tools.svg There has been a problem where the CSS of gadgets has been loading twice. The Gadgets extension has two new options: type and peers. The type option solves this problem. You can use peers to create gadgets with more than one style module. Read more about type and peers. (Phabricator task T42284)
  • File:Octicons-tools.svg OAuth will handle blocked users in a more consistent way. (Phabricator task T156803)
  • Future changes
  • Page Previews (formerly called Hovercards) was turned on for logged-out users on the Catalan, Greek, Russian, and Italian Wikipedias in the middle of February. It will be updated on 23 February to fix many bugs, and it be deployed to more wikis in March and April. Page Previews shows readers a short part of a linked article when they rest their mouse pointer on the link. This is to help them understand what it is about without leaving the article they are reading. (Phabricator task T156290, rollout plan on MediaWiki.org)
  • File:Octicons-tools.svg Tidy will be replaced later this year (see previous Signpost coverage). Instead, the HTML 5 parsing algorithm will be used to clean up bad HTML in wikitext. This will cause problems on a number of wikis. They need to be fixed first. You can see if your wiki still has something to fix [https://tools.wmflabs.org/wikitext-deprecation/ here] for one of the HTML problems. This list does not cover all problems. You can read about more problems. (Phabricator tasks T89331 & T134423)
  • Review
  • You can read the 2016 product summary from the Wikimedia Foundation Product group to see what they did with things they said they would work on in the annual plan.

==Installation code==

{{further|Wikipedia:User scripts#How to install user scripts}}

{{reflist}}

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-block-end-v2}}

{{Wikipedia:Wikipedia Signpost/Templates/Signpost-article-end-v2}}

{{Wikipedia:Signpost/Template:Signpost-article-comments-end||2017-02-06|2017-06-09}}