Apps-android-commons: [Discussion] Announce the app on Wikimedia Commons Mobile

Created on 25 Feb 2018  路  11Comments  路  Source: commons-app/apps-android-commons

Wikimedia Commons Mobile (https://commons.m.wikimedia.org/wiki/Main_Page) is the mobile site for the webbrowsers, but it is imho alpha. it does not support gadgets, the improved upload form is not supported, no real mobile upload client, etc. etc.

I am inclined to announce the app somewhere there.

Maybe on the (Mobile) Main Page?
Or we could add it somewhere to he interface (for example to the navbar or footer) using https://commons.wikimedia.org/wiki/MediaWiki:Mobile.js

publicity

All 11 comments

I think that would really be cool. Who should be involved in such decision?

I think that would really be cool. Who should be involved in such decision?

As far i know, there is nobody maintaining the commons mobile site (expect the usual cross wiki fixes). So, maybe the app people (here?) should discuss it.

I thought something like this:

bildschirmfoto vom 2018-02-25 um 12 53 14

// Quick test
mw.loader.using( 'mediawiki.user', function () {
 var isAndroid = /(android)/i.test(navigator.userAgent);
 // is logged in and using android
 if ( !mw.user.isAnon() && isAndroid ) {
  ComApp = document.getElementById("mw-mf-page-left");
  ComAppC = document.createElement("div");
  ComAppC.innerHTML = '<p><a href="https://play.google.com/store/apps/details?id=fr.free.nrw.commons" rel="nofollow"><img alt="Android.png" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Android.png/90px-Android.png" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Android.png/135px-Android.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Android.png/180px-Android.png 2x" data-file-width="300" data-file-height="100" width="90" height="30"></a> <a href="https://f-droid.org/repository/browse/?fdid=fr.free.nrw.commons" rel="nofollow"><img alt="Get it on F-Droid.svg" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Get_it_on_F-Droid.svg/90px-Get_it_on_F-Droid.svg.png" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Get_it_on_F-Droid.svg/135px-Get_it_on_F-Droid.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Get_it_on_F-Droid.svg/180px-Get_it_on_F-Droid.svg.png 2x" data-file-width="512" data-file-height="177" width="90" height="31"></a></p>';
  ComApp.insertBefore(ComAppC, ComApp.firstChild);
 }
});

Update:
unbenannt

Source:
https://commons.wikimedia.org/wiki/User:Steinsplitter/mobile.js

If there is no oppose/other suggestion i would go ahead with merging it to the MediaWiki:Mobile.js

It seems great. It will definitely improve the awareness of the app. @misaochan Is it OK for you?

That would be wonderful, thanks so much @Steinsplitter ! :)

Oh, one minor edit suggestion - F-Droid and Google Play are both app repositories for Android. I presume the first link will be to https://play.google.com/store/apps/details?id=fr.free.nrw.commons , in which case we would usually say "Download on Google Play" instead of "Download for Android" if there is simultaneously an F-Droid download present, along with the Google Play icon (example). But it's a minor issue, I'm fine either way.

@misaochan Okay, i changed the icon. The change is live now :)

@Steinsplitter Thanks! I could not see the buttons until I logged in, though - was that intended?

was that intended?

Yes.

Looks good to me in that case. :) Shall we close this issue?

@Steinsplitter could you please look at #1213 ? I think you might be an admin of the relevant page :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

psh picture psh  路  3Comments

nicolas-raoul picture nicolas-raoul  路  3Comments

neslihanturan picture neslihanturan  路  3Comments

nicolas-raoul picture nicolas-raoul  路  4Comments

madhurgupta10 picture madhurgupta10  路  4Comments