Difference between revisions of "Extensions:Bootstrap Tables"
Tag: 2017 source edit |
m (Added updating to v2 link) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title= | + | Converts a number of the tables on the site into bootstrap-style div "tables." There are still a number of tables that haven't been converted yet - some of which I'm leaving until I have a better handle on making sure they still function well. I am always open to PRs for making them look better, etc! |
+ | |||
+ | '''Branch has been deleted due to being included in Lorekeeper v.2.0.0''' | ||
+ | |||
+ | {{Extensioninfobox|title=Bootstrap Tables|desc=Convert tables into bootstrap divs|auth=Preimpression|status=stable|github={{Github|user=preimpression|branch=bootstrapTables}}|migration=no|package=no|modified-main=yes}} | ||
+ | |||
<!-- Put a short summary of your extension here! --> | <!-- Put a short summary of your extension here! --> | ||
− | == Installation == | + | ==Installation== |
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. --> | <!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. --> | ||
+ | Pull the branch to your repo and merge it in. Make sure to check for code conflicts, especially if you have other extensions or have edited anything. | ||
− | + | ==Configuration== | |
+ | <!-- Is any configuration necessary? Describe it here! --> | ||
+ | There is no special configuration beyond installation. | ||
− | + | ==Usage== | |
− | |||
− | == Usage == | ||
<!-- Is there anything users should know about using your extension? --> | <!-- Is there anything users should know about using your extension? --> | ||
− | == Troubleshooting == | + | Most locations on LK that are tables (such as the user list) etc are now bootstrap. Customize as you will - add "d-none d-md-block" to the class of particular divs if you would prefer they not show on mobile or small screens. |
+ | |||
+ | Bootstrap Tables also has my little "pretty_date" helper bundled in. This changes the format_date() method of displaying dates into a more easily readable human view. Note that it does round in a weird way, due to the way Carbon handles diffForHumans(). I'm still looking into figuring out how to have it say, for example, "1 week and 3 days" instead of just "1 week". | ||
+ | |||
+ | ==Troubleshooting== | ||
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? --> | <!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? --> | ||
− | == See Also == | + | If anything goes wrong, let me know on Discord in the LK server! I'm Uri there. |
+ | |||
+ | ==See Also== | ||
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. --> | <!-- Any relevant other pages. You may consider linking to related extensions, for instance. --> | ||
+ | * [[Updating:_to_2.0.0]] | ||
+ | |||
+ | ====Extensions that use Bootstrap Tables==== | ||
+ | * [[Extensions:Is_Online]] | ||
+ | * [[Extensions:Character_Items]] | ||
+ | * [[Extensions:Scavenger_Hunts]] |
Latest revision as of 09:09, 25 March 2024
Converts a number of the tables on the site into bootstrap-style div "tables." There are still a number of tables that haven't been converted yet - some of which I'm leaving until I have a better handle on making sure they still function well. I am always open to PRs for making them look better, etc!
Branch has been deleted due to being included in Lorekeeper v.2.0.0
Description | Convert tables into bootstrap divs |
---|---|
Author(s) | Preimpression |
Status | stable |
Github | bootstrapTables |
LK Version | Unspecified |
Is part of LK v2 (modified-main) | |
Contents
Installation
Pull the branch to your repo and merge it in. Make sure to check for code conflicts, especially if you have other extensions or have edited anything.
Configuration
There is no special configuration beyond installation.
Usage
Most locations on LK that are tables (such as the user list) etc are now bootstrap. Customize as you will - add "d-none d-md-block" to the class of particular divs if you would prefer they not show on mobile or small screens.
Bootstrap Tables also has my little "pretty_date" helper bundled in. This changes the format_date() method of displaying dates into a more easily readable human view. Note that it does round in a weird way, due to the way Carbon handles diffForHumans(). I'm still looking into figuring out how to have it say, for example, "1 week and 3 days" instead of just "1 week".
Troubleshooting
If anything goes wrong, let me know on Discord in the LK server! I'm Uri there.