FANDOM


Experimental!

A BBCode parser for MediaWiki written in JavaScript.

Replaces:

[b]Hello, World![/b]

With:

<span style="font-weight: bold;">Hello, World!</span>

Code Edit

/**
  * BBCode.js - A MediaWiki BBCode parser written in JavaScript.
  *
  * Written by Benjamin Williams <Prince(ss) Platinum>
  *
  * This work is licensed under the GNU General Public License v2.
  * Please keep the terms and conditions of the license in mind 
  * before remixing, altering, incorporating, or redistributing
  * this work.
  *
  * Status: Incomplete.
  */
 
//Initialize dev object if not already present
this.dev = this.dev || {};
 
dev = {
 
    //Add BBCode parser to the dev namespace
    bbcode: function() {
 
        //Grab page content for processing
        var content = document.getElementById("WikiaPage").innerHTML;
 
    }
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.