Changes

Jump to navigation Jump to search
251 bytes added ,  10:53, 17 November 2016
no edit summary
So you want a rocket on your page to show how awesome your stuff is. Something like this: http://fontawesome.io/icon/rocket/
<nowiki><i class="fa fa-rocket pull-left fa-5x fa-6rocket" aria-hidden="true"></i></nowiki>
Is how to show a '''Font Awesome''' icon, pulled to the left, 5x bigger than normal, and explicitly telling screen readers to ignore the item as decorative. Which looks like this: <i class="fa fa-pull-left fa-5x fa-rocket" aria-hidden="true"></i>
=== Problems ===
But there is a dependency and some bugs that have to be tracked down with regard to using it on a wiki site.
# The problems seem to have disappeared with the main caveat being that the icon does not preview. It only shows up on 'Save'.# Font Awesome only seems to work if there is an actual image on the page. For example, this is an edit icon from a normal svg file. <nowiki>[[Image:Edit icon.svg|30px]]</nowiki>. Remove that and your Font Awesome icon will disappear. Note: the image file doesn't even have to exist, it's just that the image processing code is not called unless there is a <nowiki>[[File:]]</nowiki> tag in the wikitext.
# And FA doesn't work if I close the tag properly.
# The '''fa''' element is duplicated throughout the rest of the page since it wasn't closed.
 
=== Getting it ===
4,558

edits

Navigation menu