Open main menu

Changes

MediaWiki:Common.js

1,525 bytes removed, 17:20, 2 May 2010
no edit summary
/*
Replaces {{USERNAME}} with the name of the user browsing the page.
Requires copying Template:USERNAME.
*/
function substUsername()
{
var spans = getElementsByClass('insertusername', null, 'span');
/**************************************************************************************//*******************Darth Stabro Scripts***********************************************//**************************************************************************************/  /** Username replace function for([[template:USERNAME]]) ******************************* * Inserts user name into <span class="insertusername"></span> / */ function UserNameReplace() { var disableUsernameReplace i = 0; if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) returni < spans.length; var n = YAHOO.util.Dom.getElementsByClassName('insertusername', 'span', document.getElementById('bodyContent')i++); for ( var x in n ) { n spans[xi].innerHTML = wgUserName;
}
}
addOnloadHook(UserNameReplace);
 
 
 
/* CURVED ETC */
 
.rounded_corners, #wikia_page, #search_box, #link_box, #navigation_widget, #sidebar_1 dl, .community_details, #page_bar, .wk_blogs_title {
-moz-border-radius-topright: 0.8em;
-moz-border-radius-bottomright: 0.8em;
-moz-border-radius-topleft: 0.8em;
-moz-border-radius-bottomleft: 0.8em;
}
 
 
 
.rounded_corners, #wikia_page, #catlinks, #search_field, #search_box, #link_box, #navigation_widget, #sidebar_1 dl, .community_details, #page_bar, .wk_blogs_title {
-moz-border-radius-topright: 0.4em;
-moz-border-radius-bottomright: 0.4em;
-moz-border-radius-topleft: 0.4em;
-moz-border-radius-bottomleft: 0.4em;
}
 
 
 
#page_tabs li
{
-moz-border-radius-topleft: 8px;
-moz-border-radius-topright: 8px;
height: 26px;
line-height: 25px;
margin-top: 4px;
background: #ffffff;
border:1px solid #ffffff;
border-bottom: none;
position:relative;
top:1px;
}
 
 
 
/* END CURVED */