Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
#content a[href$=".xls"].external, 
#content a[href*=".xls?"].external, 
#content a[href*=".xls#"].external,
#content a[href$=".XLS"].external, 
#content a[href*=".XLS?"].external, 
#content a[href*=".XLS#"].external,
#mw_content  a[href$=".xls"].external, 
#mw_content  a[href*=".xls?"].external, 
#mw_content  a[href*=".xls#"].external,
#mw_content  a[href$=".XLS"].external, 
#mw_content  a[href*=".XLS?"].external, 
#mw_content  a[href*=".XLS#"].external {
    background: url("http://upload.wikimedia.org/wikipedia/commons/b/ba/Page_white_excel.png") center right no-repeat;
    padding-right: 16px;
}

#content a[href$=".doc"].external, 
#content a[href*=".doc?"].external, 
#content a[href*=".doc#"].external,
#content a[href$=".DOC"].external, 
#content a[href*=".DOC?"].external, 
#content a[href*=".DOC#"].external,
#mw_content  a[href$=".doc"].external, 
#mw_content  a[href*=".doc?"].external, 
#mw_content  a[href*=".doc#"].external,
#mw_content  a[href$=".DOC"].external, 
#mw_content  a[href*=".DOC?"].external, 
#mw_content  a[href*=".DOC#"].external {
    background: url("http://upload.wikimedia.org/wikipedia/commons/a/a1/Page_white_word.png") center right no-repeat;
    padding-right: 16px;
}