Main Page tests

From MyGamingTalk
Jump to navigation Jump to search


Install Success

MediaWiki has been successfully installed.

Consult the User's Guide for information on using the wiki software.

Getting started


Geshi Test

global Map =
{
    rotor1toggle = true,

    rotor1stop = function( trigger )
    {
        Wp.SetWaypointFlag( "Name_of_waypoint", "closed", Map.rotor1toggle );
        Map.rotor1toggle = !Map.rotor1toggle;
    },
};

member ListTableMembers = function(tbl, sortBy)
{
	if ( IsTable(tbl) ) {
		noParam = !sortBy || sortBy=="null";
		if(noParam){ sortBy = "key"; }
		sortedTable = tableSort(tbl, sortBy);
		foreach(value in sortedTable) {
			if(noParam) {
				print("  " + value + "  " + ToString(tbl[value]));
			} else {
				print("     "+value);
			}
		}
	}
	else {
		print("Util.ListTableMembers: Expected table, got " + typeName(tbl));
	}
};

tbl1 = {};
tbl1[WEAPON.PANZERFAUST] = true; //RPG
tbl1[WEAPON.MOBILE_MG42] = true;
tbl1[WEAPON.FLAMETHROWER] = true;
tbl1[WEAPON.MORTAR] = true;
tbl2 = {};
tbl2[WEAPON.MOBILE_MG42] = true; //MOBILE_BROWNING
tbl2[WEAPON.FLAMETHROWER] = true;
tbl2[WEAPON.MORTAR] = true;

Collapsible Tests

The header remains visible
This content is hidden
at first load time

This text is collapsible.

Bootstrap Tests

# First Name Last Name Language
1 Some One English
2 Joe Sixpack English

<headertabs />