Difference between revisions of "Extensions:Alternate Character View"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Created page with "{{subst:Extension Page}}")
Tag: 2017 source edit
 
m
Tag: 2017 source edit
 
(3 intermediate revisions by the same user 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}}|LKVer=What Lorekeeper version the ext is built on|migration=yes/no|package=yes/no}}
+
{{Extensioninfobox|title=Alternate Character View|desc=Adds the ability to adjust the character view depending on if an image has a larger height or width|auth=moif|status=stable|github={{Github|repo=lorekeeper-extensions|user=AW0005|branch=extension/alt-character-view}}|LKVer=2.1.3|migration=yes|package=no}}
<!-- Put a short summary of your extension here! -->
+
 
 +
Adds an attribute on character images that will measure for the longest side of a character image (and store it for efficiency) to allow for alternate displays on the character image pages.
 +
 
 
== Installation ==
 
== Installation ==
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
+
* php artisan migrate
 +
* php artisan add-site-settings
 
== Configuration ==
 
== Configuration ==
<!-- Is any configuration necessary? Describe it here! -->
+
'''longest side default'''
== Usage ==
+
There's a new site setting called "default_side" that lets you pick what the extension defaults to when it comes across an image that is square. It can default to "square" or "width" or "height" as specified on the site settings description.
<!-- Is there anything users should know about using your extension? -->
+
 
 +
'''Using the attribute'''
 +
By default this extension only uses the measurement in "resources/views/character/character.blade.php" to adjust the classname for the column width the image takes up so that wide images take up the whole width, and long images take up the same as default lorekeeper. If you want more complex adjusted views, you'll have to do that yourself.
 +
 
 
== Troubleshooting ==
 
== Troubleshooting ==
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
+
I'm (moif) pretty much chronically in the LK server so I'll see any questions there!
== Images ==
 
<!-- Do you have any images to show what it looks like in action? -->
 
== See Also ==
 
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
 
 
 

Latest revision as of 08:57, 20 November 2023

Alternate Character View
Description Adds the ability to adjust the character view depending on if an image has a larger height or width
Author(s) moif
Status stable
Github AW0005/lorekeeper-extensions/extension/alt-character-view
LK Version 2.1.3
Contains a Migration






Adds an attribute on character images that will measure for the longest side of a character image (and store it for efficiency) to allow for alternate displays on the character image pages.

Installation

  • php artisan migrate
  • php artisan add-site-settings

Configuration

longest side default There's a new site setting called "default_side" that lets you pick what the extension defaults to when it comes across an image that is square. It can default to "square" or "width" or "height" as specified on the site settings description.

Using the attribute By default this extension only uses the measurement in "resources/views/character/character.blade.php" to adjust the classname for the column width the image takes up so that wide images take up the whole width, and long images take up the same as default lorekeeper. If you want more complex adjusted views, you'll have to do that yourself.

Troubleshooting

I'm (moif) pretty much chronically in the LK server so I'll see any questions there!