Board Thread:Support Requests - Getting Technical/@comment-45606548-20200825193352/@comment-45606548-20200826161417

Tupka217 wrote: So your pagenames are "Dragon:Blades", "Dragon:Raging Fire" and "Dragon:Trixie"? and you want them to automatically display as just "Blades", "Raging Fire" and "Trixie"? #Titleparts and #Replace work on that, or even just the BASEPAGENAME magic word.

That wouldn't be a problem. I'd be running this on pure page names without the namespace, because images named the same as dragons will be involved in the template as well. Adding a Dragon:(calculated page name) link wouldn't be hard. Thanks for mentioning those parsers, I'll look into them to know more in the future ^^

HumansCanWinElves wrote:

HumansCanWinElves wrote: Maybe you don't need a number if you cut off the relevant substring using #sub and #pos. I'm sorry that I can't type a full code right now. This code seems to work for a page in the middle of the list. You have a little problem with the first and last pages in the list - what should appear in the position of "next" on the last page?

(Also I added a self-demonstration but it'll work only as long as I'm not editing my sandbox)

Thank you, that's exactly what I was looking for! ^^

In case of the last/first page, #explode should return an empty string, so I can use an #if to set this part of template to empty in that case.

Will try that out, thanks! c: