Difference between revisions of "User talk:TheRogue995"
Wikisimpsons - The Simpsons Wiki
Line 23: | Line 23: | ||
You need to add the following code to your [[MediaWiki:Common.js]]: | You need to add the following code to your [[MediaWiki:Common.js]]: | ||
− | < | + | <pre> |
/** Username replace function ([[template:USERNAME]]) ******************************* | /** Username replace function ([[template:USERNAME]]) ******************************* | ||
* Inserts user name into <span class="insertusername"></span> | * Inserts user name into <span class="insertusername"></span> | ||
Line 38: | Line 38: | ||
} | } | ||
addOnloadHook( UserNameReplace ); | addOnloadHook( UserNameReplace ); | ||
− | </ | + | </pre> |
☆<span style="font-family:Algerian">[[User:Solar Dragon|<span style="color:green">The</span>]] [[User talk:Solar Dragon|<span style="color:red">Solar</span>]] [[Special:Contributions/Solar Dragon|<span style="color:blue">Dragon</span>]]</span>☆ 22:04, 30 November 2010 (UTC) | ☆<span style="font-family:Algerian">[[User:Solar Dragon|<span style="color:green">The</span>]] [[User talk:Solar Dragon|<span style="color:red">Solar</span>]] [[Special:Contributions/Solar Dragon|<span style="color:blue">Dragon</span>]]</span>☆ 22:04, 30 November 2010 (UTC) |
Revision as of 17:04, November 30, 2010
Welcome!
Hello, TheRogue995, and welcome to Wikisimpsons! Thank you for your edits to User:TheRogue995 and taking interest in our wiki. If you have any troubles, feel free to ask questions on my talk page or any other any experienced editors' talk page. Also, you could look at a help page. Here are a few pages to help out new editors such as yourself:
Please sign your name on talk pages by using four tildes (~~~~). This will automatically produce your name and the date. Signing your comments is important, as it lets other editors know who has posted which comments. Again, welcome! |
Username template
You need to add the following code to your MediaWiki:Common.js:
/** Username replace function ([[template:USERNAME]]) ******************************* * Inserts user name into <span class="insertusername"></span> */ function UserNameReplace() { if( typeof( disableUsernameReplace ) != 'undefined' && disableUsernameReplace || wgUserName == null ) { return; } var spans = getElementsByClass( 'insertusername', null, 'span' ); for( var i = 0; i < spans.length; i++ ) { spans[i].innerHTML = wgUserName; } } addOnloadHook( UserNameReplace );