How to mass-upload categories to MediaWiki? - mediawiki

I've uploaded approx. 3000 text files and converted them into MediaWiki pages using the php script provided. These contain about 1000 new categories. I can't create these categories individually as it’s too tedious.
I attempted to use the Extension:Auto Create Category But this only creates categories when users manually save pages to MediaWiki.
Is there a way to upload a list of categories to be created automatically or an extension or php script to automatically create categories upon converting the text files to MediaWiki pages?

Related

How can Google index a website which its html is loaded from a database

I am designing a blog and I want others to be able to log in and create new blog posts.
The contents will be stored in a database and if a person visits the url, its content will be loaded from the database and presented in a template file.
Since the html is not stored in files but rather on a database, will Google be able to index it?
Clients on the web, be they browsers, search engines, or anything else have no way of knowing and no reason to care what a web server does (be it read a static file, generate HTML by combining data in a database with a template, generate random data with a Markov chain text generator or anything else) to determine what content to return when it is asked for the resource associated with a URL.

Can I provide a HTML form for users to upload directly to S3 and can I create new sub folders for users?

I need to be able to provide an HTML form that allows users to upload a file to a particular bucket. I also need to be be to create a sub folder within the Bucket which relates to the users email (passed from the form). If the sub folder exists then upload the file otherwise create a new folder etc.
You can use php to do that. I wrote a phone script sometimes ago that can upload any image, resize it and even move it from one folder to another, If I happen to come back online, I could upload the script but you might need a little php experience to use it. So I suggest you try to learn php, most importantly OOP

Organize uploads structure in Yii2 advanced template

I use Yii2 advanced template. I am curious to how to correctly set uploads structure on server.
What I need:
Users will upload files on server from frontend. I need to view this
images in backend.
At the same time, other users must have no access to uploads folder
(not able to see images of other users).
How better to store images in such case?

MediaWiki API: How to get a list of newly created pages?

I'm trying to get a list of newly created pages on the English Wikipedia from
here:
http://en.wikipedia.org/wiki/Special:NewPages
I tried querying the above title via MediaWiki API, but it doesn't support
querying the titles in the "Special:" namespace:
http://www.mediawiki.org/wiki/API:Query#Missing_and_invalid_titles
Is there any workaround I could employ to get the list of the newly created
wiki pages?
You should use the recentchanges API module with rctype=new.

Can i get link for widget?

my site is using box-api to show documents and folders. I created php script what generates new folders structure for projects. Now i want to generate link for every new project folder and embed it as widget to another page of the site. Is it possible?
Yes, you can generate the link for the embed widget. Follow the documentation here
Note that when you first generate one, you have to send in the right # of 0's into the URL. Then a random-number will be returned in that spot in the URL. It isn't generated programatically. It is a random number. It stores the param settings so the next time you load w/ that same random number, it doesn't need to pass all the params to maintain the same look and feel.