-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2523] Add reference enricher for conditions #2524
Conversation
08e3ea4
to
0c35482
Compare
A thought, with core "link-to-thing" syntax we have
|
Swapped the brackets and added support for custom labels like suggested. |
71c89a6
to
1b4bfde
Compare
We might need to do some reconciliation between this work and the work in #2475. In the latter, for example, we have translation strings for the condition tooltips because the Unifying them is not too difficult: If we want to use translation strings, we can have the enricher use them instead (we wouldn't use So I guess the question comes down to the merits of translation strings vs. compendium content. The former is inherently localisable, while the latter is not, and would require an additional module like Babele to be translated, but there might be other advantages and disadvantages that I have missed. |
Is the text from Zhell's PR only being used in the description of the created active effects? Or does core use the
For now this is just creating a link to the reference journal page, not pulling any text from the journal itself. The future version will display a tooltip of the journal page content, but at that point we'll need to decide just how much extended descriptions we want to stick into the translations, especially when this expands to things like skill or ability descriptions which are even longer. |
Core does not make any alternate use of |
It's just used for the description, but we probably want to use it for tooltips in the TokenHUD too. There are multiple ways we can pull the text from the journal page in any case, that's not really the issue.
I guess what I'm suggesting is that the tooltip seems like the most useful part of this to me, and that linking to the journal page itself is less useful (except as a way to pull the tooltip text). We probably still want a So if we only care about the tooltip, is a journal page the best place to get it, or should we use a translation string? Having had a bit more time to think about it, I think the main cons with the translation string comes from cases of nested conditions. The unconscious condition references the incapacitated condition, for example. If you've already clicked on the unconscious condition and brought up the journal page, you can then click the link to incapacitated in that journal page to jump straight to it. If we want to accomplish the same thing with a translation string, we might have to embed HTML in the translation string, which isn't great, or write some bespoke condition tooltip code, and the user will have to utilise the locked tooltip functionality in order to access the nested condition, which is not very discoverable currently. |
Introduces the
@Reference
enricher with support for conditions. Future reference types will come in subsequent PRs, but I've outlined them over on the issue #2523