From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Translate this page; This page contains changes which are not marked for translation.

DebateTree is a MediaWiki implementation of the Debate algorithm. It computes the status (sustained or refuted) of any argument out of the structure (rather than the content) of its debate tree. DebateTree is currently enabled on the English and Spanish Wikiversity (see Wikiversity:Wikidebate) and can be easily installed on any wiki.


To install DebateTree on any wiki, first create a template called "Argument" (or whatever) with the following basic wikitext:

<span class="debatetree">'''Argument'''</span>

Then create a template called "Objection" (or whatever) with the following basic wikitext:

<span class="debatetree">'''Objection'''</span>

Finally, add the following code to the MediaWiki:Common.js of your wiki:

 * Initialization script for DebateTree
 * Documentation at

// Only load on debate pages
if ( $( '.debatetree' ).length ) {

	// Only load when viewing or previewing
	var action = mw.config.get( 'wgAction' );
	if ( action === 'view' || action === 'submit' ) {

		// Load the code directly from Commons
		mw.loader.load( '//' );
		mw.loader.load( '//', 'text/css' );

Then you can start building debate trees with the following wikitext pattern:

*{{Argument}} Argument about something.
**{{Objection}} Objection to the argument.
***{{Objection}} Objection to the objection.
**{{Objection}} Second objection to the argument.
*{{Argument}} Second argument.
**{{Objection}} Objection to the second argument.

The key element of the templates is the debatetree class, which tells the DebateTree script that the current list item is an argument or objection, as opposed to other list items that may be present in the page, such as lists of external links or bibliography.

See also[edit]