Thanks TheHelpfulOne!
Another tip: Adding the class nomobile to elements will remove those from the mobile view. This might be useful for elements you don't want to show on the mobile view.
I'd also suggest making the width of "Welcome to Wikivoyage" 100% with on mobile by replacing the style with a class (mobile does not load MediaWiki:Common.css)
On Sun, Jan 13, 2013 at 5:28 PM, Thehelpfulone thehelpfulonewiki@gmail.com wrote:
Thanks Jon - I noticed that Kaldari's edit in early December seemed to be the culprit for the missing sections. I've restored those headers and tried out the mf-content and mf-content2 stuff as you suggested, it's looking better but not quite there yet. If anyone else wants to have a poke at it to see if they can fix it, please go ahead and do so.
On 14 January 2013 01:22, Jon Robson jrobson@wikimedia.org wrote:
Luckily this is nice and easy to fix. There is a long running bug - https://bugzilla.wikimedia.org/show_bug.cgi?id=30405 - which exists due to many mediawiki homepages making use of 2 column layouts which are not adaptable. As a result of this bug only html elements with and id prefixed with mp- will be shown.
Anything without this that node will be scrubbed. There seems to be a div wrapping the table containing Destination of the month and Off the beaten path this will need an id with prefix 'mf-'
Try renaming instances of mp-content with mf-content Also bear in mind an id should be unique and there are 2 mf-content elements - make the 2nd one mf-content2
FWIW I hate the Main Page special casing and want to kill it with fire. A great way to help with this is to remove dependencies on the style attribute in your wikitext markup and use classes defined in MediaWiki:Common.css
For instance instead of
<div id="mf-welcome" style="width:40%; text-align:center;">
Please use
<div id="mf-welcome" class="portal-column-left">
where
.portal-column-left { width: 40%; text-align:center; }
If you can remove all instances of style=".*" you will have a much friendly mobile site.
Grab me on irc.freenode.org #wikimediamobile Monday if you need any help and want to talk more about the Wikivoyage mobile experience in general ... I think there are some great opportunities to help drive the development of all mediawiki mobile sites and I'm very excited!
Jon
On Sun, Jan 13, 2013 at 4:57 PM, James Heilman jmh649@gmail.com wrote:
So what do we need to do about this? We need to have it working for the launch.
James
On Sat, Jan 12, 2013 at 12:24 PM, Powers LtPowers_Wiki@rochester.rr.com wrote:
Our mobile site was working fine a few weeks ago. I suspect one of the recent Main Page changes disrupted the display of the mobile site.
Powers &8^]
-----Original Message----- From: James Heilman [mailto:jmh649@gmail.com] Sent: Saturday 12 January 2013 15:05 To: Wikivoyage Mailing List Subject: Re: [Wikivoyage-l] Mobile site
The mobile site is here http://en.m.wikivoyage.org/wiki/Main_Page
Take a look at it
James
On Sat, Jan 12, 2013 at 11:27 AM, Peter Coombe thewub.wiki@googlemail.com wrote:
On 12 January 2013 17:58, carlb carlb613@hotmail.com wrote:
On 12/01/13 12:51, James Heilman wrote:
Hey All
Currently our mobile site show no content when we go to it. Who is leading the mobile effort?
I would propose that the mobile site should show the article at the persons IP address. Thoughts.
The mobile site should show the main page in a small-screen compatible format.
Trying to guess the user's location from an IP wouldn't be possible without installing additional executable code on the servers.
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l
The instructions for setting up a mobile main page are here:
https://meta.wikimedia.org/wiki/Mobile_Projects/Mobile_Gateway/Mobile_homepa...
On desktop Wikimedia sites, it is possible to determine the user's country - and to some extent city, latitude and longitude, but these are often inaccurate. They are stored in the javascript variables "Geo.country", "Geo.city", "Geo.lat" and "Geo.lon" respectively. Unfortunately this hasn't been implemented on the mobile sites yet (https://bugzilla.wikimedia.org/show_bug.cgi?id=19920)
Pete / the wub
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l
-- James Heilman MD, CCFP-EM, Wikipedian
The Wikipedia Open Textbook of Medicine
www.opentextbookofmedicine.com
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l
-- James Heilman MD, CCFP-EM, Wikipedian
The Wikipedia Open Textbook of Medicine www.opentextbookofmedicine.com
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l
-- Thehelpfulone http://meta.wikimedia.org/wiki/User:Thehelpfulone
Wikivoyage-l mailing list Wikivoyage-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikivoyage-l