Font Awesome & RPG Awesome
#1
Hello there! I will share with you 4 similar codes I made for FontAwesome and RPGAwesome. I will be simple.

First of all if you want RPGAwesome you have to download it and upload it to your server.

In your headerinclude:

<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="https://domaine.tld/path/to/RPG-Awesome/css/rpg-awesome.min.css" />

MyCode:

Regex:

\[fa ([a-z\-]+)\]
\[fa ([a-z0-9\-]+) ([a-z0-9\-]+)\]
\[ra ([a-z\-]+)\]
\[ra ([a-z0-9\-]+) ([a-z0-9\-]+)\]
(Icons with dash separated words like 'player-teleport' are supported aswell.)

Replace (respectively):

<i class="fa fa-$1"></i>
<i class="fa fa-$1 fa-$2"></i>
<i class="ra ra-$1"></i>
<i class="ra ra-$1 ra-$2"></i>

These codes, and similars, work:

[fa music]
[fa music lg]
[fa 2x music]
[ra pill]
[ra pill 3x]
[ra 4x pill]
Reply
#2
^ looks like it can be useful for some users Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)