FANDOM


//
/*
 * This is the code of Ben 2.0, the wiki help program.
 * It was coded by Rocketslime_1_1.
 * If you make a modified version of it please give
   credit to him for creating the original version. 
 */
 
$(function () {
    function run() {
        alert("Hello, I am Ben 2.0.\nThe wiki help program.");
        var command = 0;
        var script = function() {
            command = prompt("Please enter your command.");
 
            /* List of Commands */
 
            // A.1 - Basic Game Infobox "Infobox CVG"
            // A.2 - Pokemon special e "e"
            // A.3 - Head Template "head"
            // A.4 - Credit System "credits"
            // A.5 - Basic Character Infobox "char"
 
            /* End of list */
 
            /* A.1 - Basic Game Infobox "Infobox CVG" */
            if (command === "Infobox CVG") {
                alert("Template:Infobox CVG\n");
            }
 
            /* A.2 - Pokemon special e "e" */
            else if (command === "e") {
                alert("é");
            }
 
            /* A.3 - Head Template "head" */
            else if (command === "head") {
                alert("Template:Head\n");
            }
 
            /* A.4 - Credit System "credits" */
            else if (command === "credits") {
                alert("Template:CreditB\nTemplate:Credit\nTemplate:Credit\nTemplate:Credit\nTemplate:CreditE");
            }
 
            /* A.5 - Basic Character Infobox "char" */
            else if (command === "char") {
                alert("Template:VG Character\n");
            }
 
            /* If input doesn't match a command */
            else {
                alert("Invalid command.\n\nInputed Command:\n" + command);
            }
 
            /* Check if user wants to input again */
            var cont = "no";
            cont = prompt("Would you like to input another command? (Y/N)");
 
            if (cont === "Yes" || cont === "yes" || cont === "y" || cont === "Y") {
                script();
            }
        };
    script();
    }
$("#WikiaSearch").after("<section class='module ben' style='text-align:center'><button>Activate Ben 2.0</button></section>");
$(".ben button").on("click", run);
});
//

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.