Template:Team:Groningen/Header/AncestorLinks.js
From 2009.igem.org
(Difference between revisions)
Revision as of 14:04, 18 May 2009
var pnc = wgPageName.split('/'); var tc = wgTitle.split('/'); for(var i=0; i<pnc.length; i++) {
var c = tc[i]; var p = pnc.slice(0,i+1).join('/'); if (i>0) document.write(' > '); if (i+1<pnc.length && true) { document.write(c.link(wgArticlePath.replace('$1',p))); } else { document.write(c); }
}