Project:Support desk

Jump to: navigation, search

About this board

Edit description

In god we trust prabhu bharat pita pan prakritik bharat mata romantic kanun hindi education economy resta dharam bhai bahan secular sita ka swayamber bedhan secular pm sashak bharat economy prabhu jay shri man narayan in the world economy system bharat regs.rtiswamiji

By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL

How to make an image simply size to the users screen?

RedKnight7 (talkcontribs)

Hi everyone,

I am familiar with using the thumb option on pictures, to make them a particular size. I have a rather large picture (more than a 4K screen can show) which I would like to appear at a size that is scaled to the user's screen. I don't know any way to have it scale to their screen... if I simply say [[File:Whatever.JPG]], it is HUGE (they only see a tiny portion). The only other option seems to be a thumb, which makes it be some arbitrarily fixed size I have to specify.

How can I let an image fit the user's screen width? Surely there must be a way.

Thanks if you can help!

AhmadF.Cheema (talkcontribs)

There should be a few ways to achieve responsive images.

/* Images should be responsive */
res-img {
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 1.5dppx), (min-resolution: 144dpi) {
    #mp-topbanner-inner {
        background-image: url(//
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi) {
    #mp-topbanner-inner {
        background-image: url(//

If the extension doesn't work the CSS should be the best option.

RedKnight7 (talkcontribs)

Thanks greatly for the reply Ahmad,

The CSS page didn't seem to have any effect? The description above is vague, "images should be responsive". Am I missing some further setting in the my call for the graphics file? Should I be saying a thumb of some percent, or something?

Otherwise, I don't want your third (webkit) solution solution because it uses fixed sizes. That's my question - isn't there anything that's NOT a fixed size? That's automatically the user's screen width?

I guess the AdaptiveThumb is a fallback option, but it would be nice to get the CSS to work, if I can. So,

Am I doing something wrong or leave something out? A straight, enormous image ([[File:Whatever.JPG]]) is still much larger than screen width. If the CSS code affects thumbnails somehow, I don't how to turn it on. If I state a thumb that's much larger the screen width (like 10000px), the CSS did not resize it to 100% of my screen width.

Is there a way to specify thumb nails as a PERCENT of user's screen size, instead of fixed pixels?

Thanks so much if you can help! Can't MediaWiki tell a user's screen size??

Fokebox (talkcontribs)

You can simply use this extension: MultimediaViewer

RedKnight7 (talkcontribs)

Fokebox, the description for MultimediaViewer says it "Provides a better experience to users when they click on thumbnails in a page".

I don't want to make thumbnails better. I want to simply display a picture on the screen ([[File:Whatever.JPG]]) at full width.

This is what I'm saying... Right now, the only way I know to present it is either with a thumbnail (too small plus forces user to click through) OR the straight-up graphic ([[File:Whatever.JPG]]) is far too large.

I just want to show a pic at full size width, whatever is full width for the user, without me having to specify anything specific. (A percent width is okay, but not fixed pixels.)

Thanks if you can help.

Reply to "How to make an image simply size to the users screen?"

Hur skapar man rubriker/kategorier, såsom diskografi, på en sida?

In Deed the band (talkcontribs)


Jag har tre frågor inför att vi inom kort kommer uppdatera In Deed /musikgrupps) Wikipedia-sida, då vi (In Deed) snart ska släppa ett nytt album! Hoppas någon kan svara på detta:

1) Andra bandsidor, t ex Brainpool Musikgrupp, finns kategorierna Medlemmar och diskografi. Hur skapar man dessa rubriker/kategorier när man uppdaterar?

2) Vi kommer göra en sida på engelska också. Gör man en ny sida då som man kopplar ihop? Hur funkar det? 

3) Vi vill gärna lämna ett bidrag till Wikipedias verksamhet. Hur går vi till väga då?

Tacksam för svar! 

//In Deed the band

AhmadF.Cheema (talkcontribs)

This support desk is primarily for support regarding technical issues related to the MediaWiki software on which Wikipedia runs.

For questions regarding the content on the Swedish Wikipedia, maybe you should ask here:

Reply to "Hur skapar man rubriker/kategorier, såsom diskografi, på en sida?"

api call triggers wrong db commands

5 (talkcontribs)

I Have 2 Mediawiki 1.27, the server setup is cloned. but wiki A is an old wiki, updatet to 1.27 and wiki B is a fresh 1.27.

I have a script (to edit articles) that makes some API - calls, which works fine on Wiki B . in Wiki A it SEEM to work fine as well, except that none article is actually edited as it should. But no errors anywhere!? So we began to the jurney through all the possible log files till we saw the difference in the sql-Logs. So both server have same set-up and both wikis run at v. 1.27 and with the same script, calling the same API-functions, we get different commands/logs.

i have uploaded an example extract from the logs: (weTrransfer) - true.txt & false.txt

true.txt is form the server where everything works fine. false.txt is from the other server

One thin i recognized beneath many missing lines is that the lines 20,21 of false.txt are called in the true.txt at lines 11,12.

So please can you give me an idea about what is going on here?

Ciencia Al Poder (talkcontribs)

what's the output of the api call? Maybe the api rejects the edit because it matches a spam filter, the page is protected and the user doesn't have the required permissions... (talkcontribs)

Well, good hint.. the API returns "error: permission denied". So where can i manage the permission and Which permission is it?

This comment was hidden by (history) (talkcontribs)

Ok, i manged to succeed, thx for your help

approval revision on custom namespace pages

YogendraAAES (talkcontribs)


I have downloaded free version of mediawiki 1.28.2 and done with all configuration setting during installation. I am trying to provide approval revision extension for custom namespace.

Can you guide me approval revision on pages which is created under custom namespace ?

Thanks & Regards,

Yogendra Trivedi

AhmadF.Cheema (talkcontribs)

For this, you will have to use Extension:FlaggedRevs. For custom namespaces you will have to further set the setting: $wgFlaggedRevsNamespaces.

For example, in your LocalSettings.php:

// Enable the extension
// Set FlaggedRevs for Project namespace
$wgFlaggedRevsNamespaces = array ( 4 );

Use Manual:Namespace#Built-in namespaces for namespace numbers.

Although in T30662 and T970 (Miraheze) for $wgFlaggedRevsNamespaces namespace names are being used instead of their numbers, but the documentation only mentions namespace numbers. It probably should work using either method.

Reply to "approval revision on custom namespace pages"

how can we bulk upload in mediawiki and can show all uploads as wiki page

Barsaiyan (talkcontribs)


Can you please suggest how can we upload our files in mediawiki in bulk and can show all uploads as wiki page in mediawiki?

Now what we are doing we manually doing copy and pasting content in wiki page and it automatically generating markup.

But we have 2000 documents and is there any automated way for creating wiki pages in bulk on fly.

AhmadF.Cheema (talkcontribs)

Maybe these can help:

Reply to "how can we bulk upload in mediawiki and can show all uploads as wiki page"

When editing, asking to type two words in a box that does not exist

Summary by AhmadF.Cheema

General info + issue with Captcha on third-party Wiki setup

Dr Reeves (talkcontribs)

I am a novice editor and have made written changes to a page without difficulty. However, I am not able to save changes involving references despite having done so successful with this software elsewhere.

For example, I attempted to insert, using the biomedical citation maker, a reference. A number was assigned, just as it was here when I pasted it in.[1]  However, when I selected save, I got a message saying

"Your edit includes new external links. To protect the wiki against automated spam, we kindly ask you to type the two words you see in the box below"

However the box below is the editing box and I see no two words or where to type them in.


  1. Ebell MH, Siwek J, Weiss BD, Woolf SH, Susman J, Ewigman B et al. (2004). "Strength of recommendation taxonomy (SORT): a patient-centered approach to grading evidence in the medical literature.". J Am Board Fam Pract 17 (1): 59-67. PMID 15014055. 
AhmadF.Cheema (talkcontribs)

On which page exactly are you trying to make this edit? Can you provide a link?

Dr Reeves (talkcontribs) is the page link. Thanks for your help.

AhmadF.Cheema (talkcontribs)

It is possible some extension in your browser is inadvertently blocking the box from showing up, maybe try making the edit in another browser?

You probably won't have to go through this issue repeatedly, as once you have made enough edits on Wikipedia, this spam check will automatically get disabled for you.

Dr Reeves (talkcontribs)

I think I may be confused. I did ok on Wikipedia. I am having difficulty with Wikidoc editing.

The page is

The spam check is on Wikidocs, not Wikipedia and it happens in both explorer and chrome.

Still should go away with time? Perhaps I can put the references in written until the spam checker gets turned off.

AhmadF.Cheema (talkcontribs)

As Wikidocs is unrelated to the Wikimedia Foundation, so your Wikipedia profile/edits are completely separate from Wikidocs edits.

Regarding Wikidocs, they are using Extension:ConfirmEdit, which forces "new" users to solve a Captcha before allowing them to post external links. Probably because of some configuration mistake on the part of the Wiki admins that captcha is not getting displayed.

A user is no longer considered "new" after he/she performs a particular number of edits and a particular number of days have passed since the account was created. Only admins would know what these particular numbers are. They are usually 5-15 edits and 2-3 days.

One solution is to make the admins aware of teh Captcha not getting shown issue, the second solution is to make some simple edits to increase your edit count and wait a few more days. The Captcha request should automatically get disabled for you.

Display of indentation (:) on talk pages

Summary by AhmadF.Cheema

.CSS rules for indentation are available at French Wikipedia's Vector.css page.

Rdarovare (talkcontribs)

In the talk pages of our (local) instance, indentation does not display the background colors ; alternation of blue and white frames. I searched on cascading style sheets, and many ressources on the web, but I didn't found anything about it. May you explain how to define this rendering, please ? I hope to do this request on the good place. Apologize if doesn't it. Thanks in advance.

2003:72:6D1E:C000:6C6E:A0EA:9390:36A8 (talkcontribs)

Hi there!

Alternating background colors are not part of one of the default skins. To help you we need to know, how these colors are implemented. Do you have a URL of the wiki so that one of us can have a look?

Rdarovare (talkcontribs)

Thank you for your quick answer. In fact, MediaWiki is deployed on the private network of my company. Consequently, you can't access it. About my subjet, there is no background, quite simply. When we use « : » to do a response, we just have the indentation ; before the text, as expected. Of the blow, how could we define or specify the rendering ; including background-color and border-color ? Regards.

AhmadF.Cheema (talkcontribs)

For creating CSS rules, you can use select element feature of browser development tools. For Chrome browser, press (Ctrl + Shift + C), this will allow you to select any element on a web page and see its id, class names etc. and the CSS rules associated with those elements.

From what I can see, the blank indentation before the text starts has class dl and for the text, the class is named dd. Adding some rules such as background-color: crimson; for these classes directly in the developer tools will allow you to see the changes happening live.

Rdarovare (talkcontribs)

Thanks. Yes : I saw that. I used the browser developpment tools to have a feel of the desired rendreing. However, I don't know to alternate two colors ; like in this page. In more, where insert this change ? In which file ? Those elements are not defined on the MediaWiki:Common.css. Certainly on the server, accessible via a technical console... ? ^o)

AhmadF.Cheema (talkcontribs)

They have been defined exclusively for the Vector skin through

The first section titled /* PAGES DE DISCUSSION : COLORATION INDENTÉE */ deals with the relevant indentation related .CSS.

It would've been easier if you could have provided the link from the beginning.

Rdarovare (talkcontribs)

Sorry. My Mistake. Thank you so much for all your time, and your answers.

"Download as PDF" not showing in leftpanel

YogendraAAES (talkcontribs)


We have downloaded free version of mediawiki 1.28.2 . We are done with all configuration setting during installation. I am not seeing option "Download as PDF" in local site as it is showing in main site of media wiki. i have enabled PDF extension but it is not supporting .

Please help us in resolving this issue.

Thanks and Regards.

Yogendra Trivedi

AhmadF.Cheema (talkcontribs)

Which "PDF extension" are you talking about? Is it Extension:PdfHandler?

I think the "Download as PDF" link in the sidebar is due to Extension:ElectronPdfService.

Reply to ""Download as PDF" not showing in leftpanel" (talkcontribs)

Has anyone gotten the extension Sternograph ( to work with recent versions of MediaWiki? It seems to be outdated as far as I can tell.

2003:72:6D5E:1B00:122:9ADF:F46F:B9FC (talkcontribs)

I have not used the extension, but having a look at its code, it is not really big or complex.

The extension has not yet been converted to use an extension.json file (which can easily be done using the convertExtensionToRegistration.php maintenace script. And it is still using the old l18n format. This also can be changed rather easily using the generateJsonI18n.php maintenace script. But both, also if not fixed, should not cause errors (at least not up to MediaWiki 1.29).

Have you tried using the extension and did you get an error message?

C46a29c803 (talkcontribs)

I tried using it without running any conversions, which gives the error

[a6942289832b9d747070c930] 2017-07-23 21:07:02: Fatal exception of type "Error"

I haven't used those scripts before, so I want to be sure I'm doing this correctly, I run

php .. \convertExtensionToRegistration.php ...\extensions\Sternograph\Sternograph.php

php .. \generateJsonI18n.php ...\extensions\Sternograph\Sternograph.i18n.php

The first one yields an error, should it be run on Sternograph.body.php instead? Then, I add

$wgMessagesDirs['Sternograph'] = '/extensions/Sternograph/i18n';

Does this all seem right? Apologies, I'm new to this.

Reply to "Sternograph Extension"

How I can add a new title in the left column (under Main page)?

3 (talkcontribs)

How I can add a new title in the left column (under Main page) in my Wiki? For example '''Community portal''' or '''User help'''. Thanks for answers. Regards Klaus

Wargo (talkcontribs)

See Manual:Sidebar (talkcontribs)

I thank you very much for help. Regards Klaus