Just gotta follow how wikipedia does it :
have to set a few background
css styles to a certain class
HTML
<a class="external" href="someLink">External Link</a>
CSS
.external {
background-position: center right;
background-repeat: no-repeat;
background-image: linear-gradient(transparent, transparent), url(image URL);
padding-right: 13px;
}