Topic on Extension talk:Scribunto

ACastro24 (talkcontribs)

Hei everyone,

I want to create in bulk a number of new pages and append content to them, without having the user have to click readlinks.

I have been looking around, however I have not found a method for doing it.

If you could advise me on one, ideaily within a Scribunto module, it would be great.

Thank you

Mr. Stradivarius (talkcontribs)

The usual way of doing this kind of thing is through the API. However, Scribunto, by design, does not have access to the API, so you can't use it for things like bulk writing of pages. To make editing using the API easier, there are various tools for writing bots which you can look into, the most popular of which is probably Pywikibot.

ACastro24 (talkcontribs)

@Mr. Stradivarius Thank you. I am familiar with these operations via the API, but I want to avoid doing and keep all the operations within the wiki. It would be incredibly useful for Scribunto to have a method for creating pages and adding content to pages.

Mr. Stradivarius (talkcontribs)

The designers of Scribunto decided to not allow Scribunto scripts to make API calls, as this would create network traffic during the page save process, which has the potential to considerably increase the time taken to save a page. Scribunto was originally conceived as a way to make the page save process quicker, so I doubt that the devs would be open to adding API support.

If you want to use the API from within the wiki, how about adding a JavaScript gadget? This allows users to access the API from inside the browser. You can also make the gadget load by default, so your users won't have to activate it in their settings. There are already scripts that do mass page editing, such as JavaScript Wiki Browser. (In fact, you might just be able to use that script as it is, without installing it as a gadget.)

Mr. Stradivarius (talkcontribs)

The other option would be to install or create a MediaWiki extension. There might already be mass-page-creation extensions available, although I haven't checked.

ACastro24 (talkcontribs)

Thank you @Mr. Stradivarius. I understand the reasoning. But it is a frustrating not have a MW resouce, within the wiki, to create and add content to pages.

Your suggest of a JS gadget might be the best approach.

I n the meanwhile I found the Extension:Create Page, it is in Beta, but I will give a shot.

Thanks!

ACastro24 (talkcontribs)
Reply to "create pages"