Difference between revisions of "Extensions:Character Status Badges"

From Lorekeeper Wiki
Jump to navigation Jump to search
(create page)
Tag: 2017 source edit
 
(Added updating to v2 link)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Extensioninfobox|title=the extension's name|desc=A short description|auth=Author(s)|status=status (such as WIP, testing, stable)|github={{Github|user=username|branch=branch}}|migration=yes/no|package=yes/no}}
+
{{Extensioninfobox|title=Character Status Badges|desc=Changes the display of the badges on a character's page|auth=Junijwi|status=stable|github={{Github|user=junijwi|branch=character-status-badges}}|migration=no|package=no|modified-main=yes}}
<!-- Put a short summary of your extension here! -->
+
This extension displays badges on a character's main page and profile page which show their trade and gift art status more clearly. These badges should appear above the '''BOOKMARK''' button.
 +
 
 +
IMAGE: [https://i.gyazo.com/3bbbc98b9898657e9374b0d454963d0e.gif the badge style]
 +
 
 +
The badge uses fontawesome icons and is based off of the FTO badge html for displaying FTO status on a user's profile page.
 
== Installation ==
 
== Installation ==
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
+
NOTE: use {{Github|user=junijwi|branch=character-status-badges}}. if you're using BASE lorekeeper.
 +
Install {{Github|user=junijwi|branch=character-status-badges-merc}}. if you've installed merc's main lorekeeper updates as it includes a change to 'giftart' status to allow for 'ask'.
 +
 
 +
Pull the branch and push!
 +
This extension puts the badges ONLY on the character page and profile page (not in images, bank, etc). You can copy paste it into any character page you want.
 +
 
 +
Alternately, you can move the contents into the _header.blade.php file if you want it on every single page, but header is shared between both masterlist and MYO entries.
 +
 
 +
As a note, this extension seperates notifs at the top of the page (new news and messages) from the content of the page itself into TWO divs. The news div is on top, and the new div for content is given the '''relative''' position. This is to account for the badge's position with and without news.
 +
 
 
== Configuration ==
 
== Configuration ==
<!-- Is any configuration necessary? Describe it here! -->
+
Fontawesome.com is used for the icons, feel free to look for new icons custom to your site.
 +
 
 +
You can change the badge colors using the classes from bootstrap; replace "badge-success" and "badge-danger" with the bootstrap colors you want (primary, secondary, success, warning, danger, light, dark, etc).
 +
 
 +
You can also change the warning by changing the title=""; text in the style.
 
== Usage ==
 
== Usage ==
 
<!-- Is there anything users should know about using your extension? -->
 
<!-- Is there anything users should know about using your extension? -->
 
== Troubleshooting ==
 
== Troubleshooting ==
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
+
Feel free to @ me in the discord (Juni#0448) for any issues.
 
== See Also ==
 
== See Also ==
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
+
Thank you to Merc for cleaning up the extension code!
 
+
* [[Updating:_to_2.0.0]]

Latest revision as of 10:09, 25 March 2024

Character Status Badges
Description Changes the display of the badges on a character's page
Author(s) Junijwi
Status stable
Github character-status-badges
LK Version Unspecified
Is part of LK v2 (modified-main)






This extension displays badges on a character's main page and profile page which show their trade and gift art status more clearly. These badges should appear above the BOOKMARK button.

IMAGE: the badge style

The badge uses fontawesome icons and is based off of the FTO badge html for displaying FTO status on a user's profile page.

Installation

NOTE: use character-status-badges . if you're using BASE lorekeeper. Install character-status-badges-merc . if you've installed merc's main lorekeeper updates as it includes a change to 'giftart' status to allow for 'ask'.

Pull the branch and push! This extension puts the badges ONLY on the character page and profile page (not in images, bank, etc). You can copy paste it into any character page you want.

Alternately, you can move the contents into the _header.blade.php file if you want it on every single page, but header is shared between both masterlist and MYO entries.

As a note, this extension seperates notifs at the top of the page (new news and messages) from the content of the page itself into TWO divs. The news div is on top, and the new div for content is given the relative position. This is to account for the badge's position with and without news.

Configuration

Fontawesome.com is used for the icons, feel free to look for new icons custom to your site.

You can change the badge colors using the classes from bootstrap; replace "badge-success" and "badge-danger" with the bootstrap colors you want (primary, secondary, success, warning, danger, light, dark, etc).

You can also change the warning by changing the title=""; text in the style.

Usage

Troubleshooting

Feel free to @ me in the discord (Juni#0448) for any issues.

See Also

Thank you to Merc for cleaning up the extension code!