Discussion:
[Wikisource-l] headers at the bottom in the mobile version too!
balaji
2017-12-20 19:18:04 UTC
Permalink
Hi all,
Most of the wikisource use the template header
<https://en.wikisource.org/wiki/Template:Header> . In the desktop view it
creates a header box with optional link to previous and next page. It
automatically creates another box at the bottom with similar option to
navigate to next or previous page or to the top.

But in the mobile view only the header box at the top is visible. The
header box at the bottom is not visible.

In Tamil wikisource more than 60% of the views is from mobile devices.
Hence it would be nice to know a way to show the header box at the bottom
too in mobile view.

Regards,
J. Balaji.
Zdzislaw
2017-12-20 19:41:45 UTC
Permalink
hello,

briefly - footer ("header box at the bottom) is created with the use
of js (for desktop view see:
https://en.wikisource.org/wiki/MediaWiki:DisplayFooter.js) loaded in
the MediaWiki:Common.js ->
mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');

in mobile view, only the scripts from the MediaWiki:Mobile.js file are loaded.
so, you have to load the DisplayFooter.js in Mobile.js also (and/or
adjust the DisplayFooter.js code for mobile view - it may be also
necessary to modify the css styles for the mobile view).


Z.
Post by balaji
Hi all,
Most of the wikisource use the template header . In the desktop
view it creates a header box with optional link to previous and next page.
It automatically creates another box at the bottom with similar option to
navigate to next or previous page or to the top.
But in the mobile view only the header box at the top is visible. The header
box at the bottom is not visible.
In Tamil wikisource more than 60% of the views is from mobile devices. Hence
it would be nice to know a way to show the header box at the bottom too in
mobile view.
Regards,
J. Balaji.
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
balaji
2017-12-20 20:00:48 UTC
Permalink
Hi Z,
Thanks for taking time to explain me about the issue.

I am not sure of how to add the codes in the mobile view in ta.ws . There
are many loops there and i am not comfortable with codes.

I request for help here. I have the admin rights. what code I have to
insert, in which page, which place.

I dont want to break the pages accidentally due to my wrong coding

Thanks,

J. Balaji
(User:Balajijagadesh)
Post by Zdzislaw
hello,
briefly - footer ("header box at the bottom) is created with the use
https://en.wikisource.org/wiki/MediaWiki:DisplayFooter.js) loaded in
the MediaWiki:Common.js ->
mw.loader.load('//en.wikisource.org/w/index.php?
title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');
in mobile view, only the scripts from the MediaWiki:Mobile.js file are loaded.
so, you have to load the DisplayFooter.js in Mobile.js also (and/or
adjust the DisplayFooter.js code for mobile view - it may be also
necessary to modify the css styles for the mobile view).
Z.
Post by balaji
Hi all,
Most of the wikisource use the template header . In the desktop
view it creates a header box with optional link to previous and next
page.
Post by balaji
It automatically creates another box at the bottom with similar option to
navigate to next or previous page or to the top.
But in the mobile view only the header box at the top is visible. The
header
Post by balaji
box at the bottom is not visible.
In Tamil wikisource more than 60% of the views is from mobile devices.
Hence
Post by balaji
it would be nice to know a way to show the header box at the bottom too
in
Post by balaji
mobile view.
Regards,
J. Balaji.
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
Zdzislaw
2017-12-20 20:13:21 UTC
Permalink
hello J. Balaji,

I'm on irc.freenode.net -> #wikisource (I'll try to help)

Z.
Post by balaji
Hi Z,
Thanks for taking time to explain me about the issue.
I am not sure of how to add the codes in the mobile view in ta.ws . There
are many loops there and i am not comfortable with codes.
I request for help here. I have the admin rights. what code I have to
insert, in which page, which place.
I dont want to break the pages accidentally due to my wrong coding
Thanks,
J. Balaji
(User:Balajijagadesh)
Post by Zdzislaw
hello,
briefly - footer ("header box at the bottom) is created with the use
https://en.wikisource.org/wiki/MediaWiki:DisplayFooter.js) loaded in
the MediaWiki:Common.js ->
mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');
in mobile view, only the scripts from the MediaWiki:Mobile.js file are loaded.
so, you have to load the DisplayFooter.js in Mobile.js also (and/or
adjust the DisplayFooter.js code for mobile view - it may be also
necessary to modify the css styles for the mobile view).
Z.
Post by balaji
Hi all,
Most of the wikisource use the template header . In the desktop
view it creates a header box with optional link to previous and next page.
It automatically creates another box at the bottom with similar option to
navigate to next or previous page or to the top.
But in the mobile view only the header box at the top is visible. The header
box at the bottom is not visible.
In Tamil wikisource more than 60% of the views is from mobile devices. Hence
it would be nice to know a way to show the header box at the bottom too in
mobile view.
Regards,
J. Balaji.
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
balaji
2017-12-20 21:52:21 UTC
Permalink
Hi Z,
Thanks for helping with the issue through irc.freenode.net

The issue is resolved now.

Thanks

J. Balaji
Post by Zdzislaw
hello J. Balaji,
I'm on irc.freenode.net -> #wikisource (I'll try to help)
Z.
Post by balaji
Hi Z,
Thanks for taking time to explain me about the issue.
I am not sure of how to add the codes in the mobile view in ta.ws .
There
Post by balaji
are many loops there and i am not comfortable with codes.
I request for help here. I have the admin rights. what code I have to
insert, in which page, which place.
I dont want to break the pages accidentally due to my wrong coding
Thanks,
J. Balaji
(User:Balajijagadesh)
Post by Zdzislaw
hello,
briefly - footer ("header box at the bottom) is created with the use
https://en.wikisource.org/wiki/MediaWiki:DisplayFooter.js) loaded in
the MediaWiki:Common.js ->
mw.loader.load('//en.wikisource.org/w/index.php?
title=MediaWiki:DisplayFooter.js&action=raw&ctype=text/javascript');
Post by balaji
Post by Zdzislaw
in mobile view, only the scripts from the MediaWiki:Mobile.js file are loaded.
so, you have to load the DisplayFooter.js in Mobile.js also (and/or
adjust the DisplayFooter.js code for mobile view - it may be also
necessary to modify the css styles for the mobile view).
Z.
Post by balaji
Hi all,
Most of the wikisource use the template header . In the desktop
view it creates a header box with optional link to previous and next page.
It automatically creates another box at the bottom with similar option to
navigate to next or previous page or to the top.
But in the mobile view only the header box at the top is visible. The header
box at the bottom is not visible.
In Tamil wikisource more than 60% of the views is from mobile devices. Hence
it would be nice to know a way to show the header box at the bottom
too
Post by balaji
Post by Zdzislaw
Post by balaji
in
mobile view.
Regards,
J. Balaji.
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
_______________________________________________
Wikisource-l mailing list
https://lists.wikimedia.org/mailman/listinfo/wikisource-l
Loading...