Skip to content

NeayiAbandoned/mw-Question2Answer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mw-question2answer

A mediawiki extension that brings question2answer in wiki pages

Installation

  • Download and copy the folder in your mediawiki extensions, so that it reads : extensions/Question2Answer (remove the mv- at the front)
  • Add the following to your LocalSettings.php (using the URL of your question2answer instance):
wfLoadExtension( 'Question2Answer' );
$wgQuestion2AnswerURL = 'https://questions.tripleperformance.fr/';    

Usage

Add the questions in your page by adding the following code:

{{#question2answer:keyword1|keyword2}}

keyword1 and keyword2 are two search terms that are passed to the question2answer instance in order to return results. You can have as many keywords as you want, separated by pipes. The search will return results with either keywords (OR).

Customization

The css lies in Question2Answer/modules/ext.Question2Answer.css and is generated from the mediawiki_questions.less in the less folder. You can edit and compile the css with the following command:

lessc --compress donut.less ..\modules\ext.Question2Answer.css

About

A mediawiki extension that brings question2answer in wiki pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors