Difference between revisions of "MediaWiki talk:Common.js"
Jump to navigation
Jump to search
Percephene (talk | contribs) (New page: {{RFC}} I would like to have the following code added please, I don't have access: function userNameReplace() { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameRepla...) |
|||
Line 14: | Line 14: | ||
It allows the [[:Template:Title]] to work which can then be used to change the title which displays on a page. {{User:Percephene/sig}} <span style="color:#FF3399"><small>02:02, 27 May 2008</small></span> | It allows the [[:Template:Title]] to work which can then be used to change the title which displays on a page. {{User:Percephene/sig}} <span style="color:#FF3399"><small>02:02, 27 May 2008</small></span> | ||
+ | |||
+ | : I'll trust you on this. Not that I know what need we'd have to replace a page's title, but... --[[User:Agent Lex|Lex]] <small>([[User talk:Agent Lex|talk]] - [[Special:Contributions/Agent Lex|contribs]])</small> 15:10, 27 May 2008 (EDT) |
Revision as of 15:10, 27 May 2008
A request for comment has been made for this page. Please add your thoughts!
I would like to have the following code added please, I don't have access:
function userNameReplace() { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; for(var i=0; userName = document.getElementsByTagName("span")[i]; i++) { if ((document.getElementById('pt-userpage'))&&(UserName.getAttribute('class') == "insertusername")) { userName.innerHTML = wgUserName; } } } addOnloadHook(userNameReplace);
It allows the Template:Title to work which can then be used to change the title which displays on a page. ~ Percephene ~ talk contribs 02:02, 27 May 2008