Forum:The 'Below are some commonly used wiki markup codes' seems to be different on each wikia, how do we add to ours?.

It would be useful to add certain templates to it (i.e. or  ), is there a way to alter ours?

-- Semaj draehs - Talk page 17:31, 31 July 2008 (UTC)
 * if your referring to the edit tips widget on the side. you cant yet. --Uberfuzzy 17:33, 31 July 2008 (UTC)

No, if you press edit page,under where it says save page (right at the bttom of the page) is a box of edit things like,  or , some wiki's seem to have altered this to include special templates aswell.

-- Semaj draehs - Talk page 17:54, 31 July 2008 (UTC)
 * Special Pages > System Messages > "edittools" --I Lion Heart I 18:01, 31 July 2008 (UTC)

Is there a more direct link?
because my computer freezes at system messages...

-- Semaj draehs - Talk page 18:21, 31 July 2008 (UTC)
 * sure,just go to the page  on your wiki Uberfuzzy 19:14, 31 July 2008 (UTC)

Kind of related thing
Some wiki's i.e the metroid wiki, have a little section above the edit box, with little buttons that set out the page in a certain way, how do we edit our wiki to do that?

-- Semaj draehs - Talk page 20:02, 31 July 2008 (UTC)


 * Are you talking about this : Custom Button ? — TulipVorlax 20:18, 31 July 2008 (UTC)

No, i'll come back with an example in a minute

-- Semaj draehs - Talk page 20:26, 31 July 2008 (UTC)

Sorry it only applies to new pages (forgot to mention), http://metroid.wikia.com/index.php?title=Bluegrey&action=edit see where it says beam, boss, e.t.c  how do you get those buttons to appear on your wiki?

-- Semaj draehs - Talk page 20:30, 31 July 2008 (UTC)


 * The problem in seen what you were talking was simply that thoses only appear in Firefox. Still, i don't know how they do it; it's not a Mediawiki page if it's what you're asking. Or, it's some js code they added in their Common.js so you should ask them not us. — TulipVorlax 02:12, 1 August 2008 (UTC)
 * For something like this, you could always try the new createpage extension, which does something very similar to what you want (from Special:Createpage). An example can be seen here. Hope that helped!  Hamako  02:56, 1 August 2008 (UTC)


 * Or just use a simple template like i've just done after a moment of thinking about it.
 * The template i've created is there and is called at bottom of Mediawiki:Newarticletext.
 * Oh, by the way, a big thank to Semajdraehs for the idea and no, i really dont like the create page extension because it force us to use the new editbox. — TulipVorlax 04:09, 1 August 2008 (UTC)
 * Oh and i forgot to tell that my thing dont use any JS and is working perfectly in both Firefox and IE. — TulipVorlax 04:44, 1 August 2008 (UTC)

Thanks for your help on all this mediawiki stuff (have another related question)
Some wiki's have a little menu by the above the summary box, where you can choose a pre-set summary from, where do you edit to include this?

-- Semaj draehs - Talk page 14:05, 1 August 2008 (UTC)


 * This need JS :

function ContentLoader {   this.cache = true; }

ContentLoader.prototype.enableCache = function(caching) {   this.cache = (caching == null) ? true : this.cache; }

ContentLoader.prototype.createRequest = function {	if(typeof(XMLHttpRequest) != 'undefined') {		return new XMLHttpRequest; }	else if(typeof(ActiveXObject) != 'undefined') {		return new ActiveXObject("Msxml2.XMLHTTP"); }	return null; }

ContentLoader.prototype.send = function(url, postdata, contentType) {	var method = (postdata == null) ? 'GET' : 'POST'; this.request = this.createRequest; this.request.open(method, url);

if(!this.cache) this.request.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );

var request = this.request; var loader = this; if(postdata == null) {	   if(contentType == null) contentType = 'application/x-www-form-urlencoded'; request.setRequestHeader('Content-type', contentType); }	var f = function {   	if(request.readyState == 4) {   		loader.text = request.responseText; loader.document = request.responseXML; request = null; loader.request = null; loader.callback; }   }	this.request.onreadystatechange = f;	this.request.send(postdata); } /*	end ContentLoader

function fillEditSummaries {   var label = document.getElementById("wpSummaryLabel");

if(label == null) return;

var comboString = "Résumés prédéfinis : "; comboString += " "; label.innerHTML = comboString + label.innerHTML;

requestComboFill('stdSummaries', 'Modèle:Résumés prédéfinis'); }

function onStdSummaryChange {   var combo = document.getElementById("stdSummaries"); var value = combo.options[combo.selectedIndex].value;

if(value != "") document.getElementById("wpSummary").value = value; }

function requestComboFill(id, page) {   var loader = new ContentLoader; loader.comboID = id; loader.callback = onComboDataArrival; loader.send('/index.php?title=' + page + '&action=raw&ctype=text/plain'); } function onComboDataArrival {   fillCombo(this.text, this.comboID); }

function fillCombo(text, comboid) {   var combo = document.getElementById(comboid); var lines = text.split("\n");

for(var i = 0; i < lines.length; i++) {       var value = lines[i].indexOf("-- ") == 0 ? lines[i].substring(3) : ""; var option = document.createElement('option'); option.setAttribute('value', value); option.appendChild(document.createTextNode(lines[i])); combo.appendChild(option); } } /*   end combo fill code

addOnloadHook(fillEditSummaries);
 * Put it in Mediawiki:Common.js.
 * Change "Modèle:Résumés prédéfinis" to something in your language. The template must contain something like this.
 * I hope someone will be able to give you more adequate help here. — TulipVorlax 15:04, 1 August 2008 (UTC)

well i've tried to do that, but it doesn't seem to be working is there any chance someone can check it for me, i've got http://advancewars.wikia.com/wiki/MediaWiki:Common.js and instead of the other one i have http://advancewars.wikia.com/wiki/Template:Edit_summaries

but it doesn't seem to be working, did i miss anything?

-- Semaj draehs - Talk page 15:53, 1 August 2008 (UTC)


 * One thing that was annoying while working on this was that it wasn't updating easily when editing the template.
 * The first thing we need to do is CTRL+F5. But still, it wasn't updating for me until some time has passed. Don't understand why. — TulipVorlax 21:09, 1 August 2008 (UTC)