Topic on Project:Support desk

How do I modify/change the tutorial section on UploadWizard?

11
Guillaume Taillefer (talkcontribs)

How would I be able to modify the tutorial image that is displayed at the beginning of the upload process? I want to display other instructions/tutorial on Uploading files to my wiki, and plus it says "What can I upload to Wikimedia Commons", which my site is of course not wikimedia commons. Which file and variable(s) do I have to modify that gives the content of the tutorial section (in this case it being the tutorial image)? Thanks

Bawolff (talkcontribs)
Guillaume Taillefer (talkcontribs)

How would I go about replacing "Licensing_tutorial_$1.svg" in the template option to the contents of a page on my wiki?

Guillaume Taillefer (talkcontribs)

I tried the following:

$wgUploadWizardConfig = ['tutorial' => ['template' => file_get_contents('http://wwii-archives.org/index.php/Main_Page')]];

(as a test its not going to be the Main Page but I will create the page for the tutorial) and when I went to upload wizard's tutorial section, it gave me this error:

Sorry, we could not find any files for the tutorial that is supposed to go here. Please contact the system administrators.

Bawolff (talkcontribs)

Template is the name of a file.

So

$wgUploadWizardConfig = ['tutorial' => ['template' => "fileNameHere.svg" ]];


Assuming you have a file on your wiki named fileNameHere.svg.


(I dont really know if you can specify just template or need the other keys of tutorial as well)

Guillaume Taillefer (talkcontribs)

Is there any way that I could get around the fact that I have to use Licensing_tutorial_$1.svg for template?

Bawolff (talkcontribs)

You do not have to use that as the template. You can use any filename you want.

Guillaume Taillefer (talkcontribs)

Then how do I display the content of a page on my wiki through the wgUploadWizardConfig = ['tutorial' => ['template' => "wikipage"]];? I tried putting the names of one of my files (File:2ndhhhhhhhhhh.pdf) into the "wikipage" value, and it came up with the image of the file. However when I try to do the same for a normal page with content, such as Main Page, it doesnt work. I tried all of these with another page than Main page, but I tried "Main Page", "Main_Page", "Page:Main_Page" and "Page:Main Page", but they don't work in showing the content of the page

Bawolff (talkcontribs)

You cannot show a page, you have to use an image.

Guillaume Taillefer (talkcontribs)

Is it possible to make an image a clickable link which will bring them to the page I wanted to show in question? I see that you are able to do it through wikicode, but I don't know if you can do it in normal php

Guillaume Taillefer (talkcontribs)

I've tried through html way of doing it (img tag enclosed in a tags), but it seems that UploadWizard doesn't recognize it, and gives the same error when using it. If there is a way to do it other than the html and wikicode methods, I wouldn't know of it. Otherwise, is there a way for me to instead try to modify one of the other files to make it display a link, and maybe either have an image displaying a screen capture of the page or an image with a message saying to click the link? Thanks

Reply to "How do I modify/change the tutorial section on UploadWizard?"