Pergunta

Where can I put custom input form code in media wiki homepage?

This is so I can modify it into fewer steps for a user to create a new page. The input form will be for entering the title of the new page.

Currently, when adding a page, the user has to search for a page, and if it doesn't exist, it redirects to another page with a link to add the new page. After that it will load the built-in Wiki editor(will also modify this to default to the Visual Editor extension I integrated instead of Wiki editor).

Any input would be greatly appreciated.

Foi útil?

Solução 2

The file in which i can add/modify a custom input form in the media wiki homepage would be the /rootWikiDir/skins/Vector.php

Outras dicas

There are a number of extensions that can do what you want:

  • InputBox, is bundled with recent versions of MediaWiki. It is used with Wikimedia wikis, and thus probably very stable.
  • CreateBox, specifically for letting users create pages
  • Create Page, more general aproach
  • Semantic Forms The most fulfledged, but also the most complex, and requires the Semantic MediaWiki extension

You might also want to combine this with some biolerplate extension, e.g. Preloader

As you are posting on SO, I assume that developing your own extension would also be an option. In that case, have a look at the parser functions manual: https://www.mediawiki.org/wiki/Manual:Parser_functions

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top