On 22/05/13 04:34, Dmitrii Kouznetsov wrote: >> It looks as if you're using negative absolute positionning (e.g. "left: >> -38px;") on the menu ... > Yes, namely -38px. How do you count these pixels?
using Firebug extension of Firefox > I change it to -28px; now, looking with Safari, I see few millimeters unused > at left. > Could you visit http://mizugadro.mydns.jp/t again, does it look better? It looks alright now in firefox, but in chrome it is overflowing on the main text area. You shouldn't rely on absolute negative positioning for this. I would suggest to use margins/padding instead and maybe (as little as possible) browser-specific tweakings. >> As for ShortURL, it seems to be working more or less on your test wiki .. > ?? > If I try to open > http://mizugadro.mydns.jp/q/Main_Page or > http://mizugadro.mydns.jp/k/Main_Page > i.e., without to mention "index.php/", the answer is "Not Found" > So, I would say, the ShortURL does not work at all. Oh ... you're making a confusion between the *extension* "Short URL" ( https://www.mediawiki.org/wiki/Extension:ShortUrl ) which does *not* do that and the *URL rewriting* scheme for short URLs as explained in https://www.mediawiki.org/wiki/Manual:Short_URL Granted, the naming are very confusing if you don't already have some knowledge about URL rewriting and URL shorteners. what the extension does is making available URLs like http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/1 that points to a specific page more exactly http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/$1 with '$1' being a code in base-36 (so made of sequence of characters in the ranges [0-9] and [a-z]) That way, you have a so-called "Short URL" to pages with long title. So http://mizugadro.mydns.jp/q/index.php/My_extremely_very_uber_long_title_for_a_page_so_long_that_you_cannot_even_think_about_tweeting_it is replaced by 'http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/1fg5z, for instance. It's an URL shortener service like https://goo.gl/ . See https://en.wikipedia.org/wiki/URL_shortening for more information on this. but if what you want is to remove the index.php so that http://mizugadro.mydns.jp/q/index.php/My_Page_Title becomes http://mizugadro.mydns.jp/q/My_Page_Title, then you need to follow the instructions at https://www.mediawiki.org/wiki/Manual:Short_URL which, in summary, is an apache rewriting rule of the URL that says "http://mizugadro.mydns.jp/q/My_Page_Title" redirects to "http://mizugadro.mydns.jp/q/index.php/My_Page_Title". Hope it helps. Alexis > The problem is that I do not understand explanations at > http://www.mediawiki.org/wiki/Extension:ShortUrl > >> but you seem to have something wrong in the template $wgShortUrlTemplate. > > At the end of LocalSettings.php I have line > $wgShortUrlTemplate = "http://mizugadro.mydns.jp/k"; > I expected this to enable the short URL http://mizugadro.mydns.jp/k/Main_Page > but this does not happen. > What shoudd I type there instead of $wgShortUrlTemplate = > "http://mizugadro.mydns.jp/k"; > ? > >> For instance: >> http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/2 >> is a ShortURL that redirects correctly to >> http://mizugadro.mydns.jp/q/index.php/Test > Well, how to make it to work, if I skip index.php/ in the URL? > >> Likewise http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/1 redirects >> to the Mediawiki:Sidebar > it seems, and http://mizugadro.mydns.jp/q/index.php/Special:ShortUrl/3 to > http://mizugadro.mydns.jp/q/index.php/Test1 >> >> on each of these pages there is a link "Short URL" in the toolbox. That link >> is messed up though. > How to access the toolbox to add the ShortUrl there? > >> .. something might have to be fixed in $wgShortUrlTemplate. >> The Main page does not seem to have that Short URL link, > but I don't know if it's a bug or a feature of this extension (Main Page has > its own very short url as > http://mizugadro.mydns.jp/q/index.php ) > >> Maybe re-run populateShortUrlTable.php ? > I found ... q/extensions/ShortUrl > and I type from the command line: > php populateShortUrlTable.php > > It answers: > 4 titles done > Done > > But this does not affect anything, again I see message "Not Found". > May be, one day someone rewrites the instruction at > http://www.mediawiki.org/wiki/Extension:ShortUrl > indicating, how to say to the software, that I want > http:/mizugadro.mydns.jp/k/Test1 > mean > http://mizugadro.mydns.jp/q/index.php/Test1 > and similar for other pages.. > > _______________________________________________ > MediaWiki-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
