Skip to content
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

Convert templates to “compound” tags #522

Closed
thiccaxe opened this issue Oct 23, 2021 · 1 comment · Fixed by #672
Closed

Convert templates to “compound” tags #522

thiccaxe opened this issue Oct 23, 2021 · 1 comment · Fixed by #672
Assignees
Milestone

Comments

@thiccaxe
Copy link

Building on the ideas of KyoriPowered/adventure-text-minimessage#178 & KyoriPowered/adventure-text-minimessage#179 , this will greatly enhance the flexibility of templates.

new syntax for templates:
<template>text with "bleeded" styles of template</template>regular text

In essence, a template is no longer a string that is replaced, but a full tag.
Unlike a simple <red>, however, a template can contain its own styles, text, click events, translations, or even templates inside it.

i.e.: if <template> was defined as <red><bold>Prefix</bold>,
The first example would be equivalent to writing out:

<red><bold>Prefix</bold>text with "bleeded" styles of template</red> regular text

As previously stated, this greatly expands the flexibility of templates and improves minimesaage overall

@kashike kashike transferred this issue from KyoriPowered/adventure-text-minimessage Nov 28, 2021
@zml2008
Copy link
Member

zml2008 commented Feb 7, 2022

This should be fixed by #672

@zml2008 zml2008 added this to the 4.10.0 milestone Feb 7, 2022
@zml2008 zml2008 linked a pull request Feb 7, 2022 that will close this issue
5 tasks
@zml2008 zml2008 self-assigned this Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants