Difference between revisions of "Extensions:Character Prev and Next"

From Lorekeeper Wiki
Jump to navigation Jump to search
m (Fix github)
m (→‎Images: Minor text change)
Tag: 2017 source edit
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Extensioninfobox|title=Previous & Next buttons on Character pages|desc=A short description|auth=[[User:Speedy|Speedy]]|status=stable|github={{Github|user=Speedy}}|LKVer=3.0.0 dev|migration=no|package=no|dev300=yes}}
+
{{Extensioninfobox|title=Previous & Next buttons on Character pages|desc=Displays previous and next buttons on character pages.|auth=[[User:Speedy|Speedy]]|status=stable|github={{Github|user=SpeedyD}}|LKVer=3.0.0 dev|migration=no|package=no|dev300=yes}}
  
{| style="margin: 4px auto; width: 80%; border: 1px solid #dc3545; background: #f52237;"
+
{| style="margin: 4px auto; width: 80%; border: 1px solid #9ADC38; background: #A1F524;"
 
|-
 
|-
| '''<u>DO NOT USE IF YOU ARE ON VERSION v3.0.0 OR THE LATEST DEV BRANCH</u>'''
+
| '''<u>THIS EXTENSION IS PART OF v3.0.0</u>'''
 
|-
 
|-
| This extension has been merged into the develop branch (aka the future v3.0.0 branch) as [https://github.com/corowne/lorekeeper/commit/5e3b20c4372ca47a2b232ec86375c96781720628 Previous & Next buttons on Character pages].
+
| This extension has been merged into the v3.0.0 branch as [https://github.com/corowne/lorekeeper/commit/5e3b20c4372ca47a2b232ec86375c96781720628 Character Prev and Next].
 
|-
 
|-
| Do not download if you are already on the develop branch, or if you're reading this from the future where Lorekeeper is already on v3.0.0.
+
| You will not be able to download this. This wiki page is only for referencing purposes.
 
|}
 
|}
Page under construction, sorry!
+
This extension adds previous and next buttons on character pages. It will allow you to more quickly look through character pages in order.
<!-- Put a short summary of your extension here! -->
+
 
 +
Additional credits to [https://github.com/AW0005 Moif] for inspiration on fixing the gaps and as always, [[User:Mercury|Mercury]] for helping with code, cleaning up, advice, etc, etc, etc. :)
 +
 
 
== Installation ==
 
== Installation ==
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
+
As this extension is part of v3.0.0, you will want to perform any actions required to update properly. But there are no other installation steps otherwise.
 +
 
 
== Configuration ==
 
== Configuration ==
<!-- Is any configuration necessary? Describe it here! -->
+
In the <code>config/lorekeeper/extensions.php</code> file, find:
 +
<syntaxhighlight lang="html">// Previous & Next buttons on Character pages - Speedy</syntaxhighlight>
 +
Under <code>'previous_and_next_characters' =></code> you will find the following options:
 +
 
 +
<code>'display' => 0</code> If set to 1, it will display the buttons. By default, it is 0 to keep it turned off.
 +
 
 +
<code>'reverse' => 0</code> This reverses the previous and next buttons. By default, it is 0 to have the higher number as previous and the lower number as next, reflecting masterlist order. Set it to 1 to reverse that to have the higher number as next and the lower number as previous.
 +
 
 
== Usage ==
 
== Usage ==
<!-- Is there anything users should know about using your extension? -->
+
It is simply for ease of navigation characters without having to go back to the masterlist over and over.
 +
 
 
== Troubleshooting ==
 
== Troubleshooting ==
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
+
Create a new thread in the #general-help channel of the Discord!
 +
 
 +
You can always try tagging me (see my [[User:Speedy|user page]]), as I'm semi-active on the server, but a new thread is your best bet.
 +
 
 
== Images ==
 
== Images ==
<!-- Do you have any images to show what it looks like in action? -->
+
<gallery>
 +
File:Next and Prev buttons.png|Next and Previous buttons; character slugs are blurred for protection.
 +
</gallery>
 +
Image is sourced from [https://www.mhoats.com/ Realm of Mynros], where the extension is already running.
 +
 
 +
== Version History ==
 +
* '''*1:''' Initial creation.
 +
* '''*2:''' Swapped it to be in extension settings rather than site settings.
 +
* '''*3:''' Tidied up variables.
 +
* '''*4:''' Added extra check for safety.
 +
* '''*5:''' Ensured previous and next buttons work over gaps.
 +
* '''*6:''' Cleanup for consistency and reversal code.
 +
* '''*7:''' Removed test code.
 +
(This extension has never had a tracker update, and never will.)
 +
 
 
== See Also ==
 
== See Also ==
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
+
* [[Updating:_to_3.0.0]]

Latest revision as of 05:51, 2 May 2024

Previous & Next buttons on Character pages
Description Displays previous and next buttons on character pages.
Author(s) Speedy
Status stable
Github SpeedyD/lorekeeper
LK Version 3.0.0 dev
Is part of LK v3.0.0's release






THIS EXTENSION IS PART OF v3.0.0
This extension has been merged into the v3.0.0 branch as Character Prev and Next.
You will not be able to download this. This wiki page is only for referencing purposes.

This extension adds previous and next buttons on character pages. It will allow you to more quickly look through character pages in order.

Additional credits to Moif for inspiration on fixing the gaps and as always, Mercury for helping with code, cleaning up, advice, etc, etc, etc. :)

Installation

As this extension is part of v3.0.0, you will want to perform any actions required to update properly. But there are no other installation steps otherwise.

Configuration

In the config/lorekeeper/extensions.php file, find:

// Previous & Next buttons on Character pages - Speedy

Under 'previous_and_next_characters' => you will find the following options:

'display' => 0 If set to 1, it will display the buttons. By default, it is 0 to keep it turned off.

'reverse' => 0 This reverses the previous and next buttons. By default, it is 0 to have the higher number as previous and the lower number as next, reflecting masterlist order. Set it to 1 to reverse that to have the higher number as next and the lower number as previous.

Usage

It is simply for ease of navigation characters without having to go back to the masterlist over and over.

Troubleshooting

Create a new thread in the #general-help channel of the Discord!

You can always try tagging me (see my user page), as I'm semi-active on the server, but a new thread is your best bet.

Images

Image is sourced from Realm of Mynros, where the extension is already running.

Version History

  • *1: Initial creation.
  • *2: Swapped it to be in extension settings rather than site settings.
  • *3: Tidied up variables.
  • *4: Added extra check for safety.
  • *5: Ensured previous and next buttons work over gaps.
  • *6: Cleanup for consistency and reversal code.
  • *7: Removed test code.

(This extension has never had a tracker update, and never will.)

See Also