ProfessionalWiki / FontAwesome

Allows to insert Font Awesome Free icons in page
https://www.mediawiki.org/wiki/Extension:FontAwesome
GNU General Public License v3.0
4 stars 2 forks source link

Possible to config used icons for smaller import? #2

Open RheingoldRiver opened 4 years ago

RheingoldRiver commented 4 years ago

I'm not sure the scope of this request so feel free to ignore if it's too much work - I use a lot of FontAwesome on my wiki but only a couple total icons. If possible I'd prefer to only make users load the icons I actually use. When searching for ways to do this I found this repo - https://github.com/johnsmclay/icnfnt. Currently I'm not using this extension and instead I just add icons via ::before and ::after pseudoelements but if I could import fewer total glyphs I'd definitely switch all my usage to this extension.

I'd ideally prefer to specify imported glyphs via a mediawiki-namespace or have the extension track usage from the parser function in an internal table, but doing it via a localsetting would also work fine (in my particular use case on Gamepedia I need someone with higher privileges to update localsettings changes, and it would be nice to not require this for any wikis with admins without backend access in general, but it's probably significantly easier to do via a localsetting and that tradeoff is probably worth it).

Also if you know of a non-extension way to achieve this with just css let me know!

s7eph4n commented 4 years ago

It's planned. But it will take time.

RheingoldRiver commented 4 years ago

Ok that's awesome! (haha) thanks!