Template:Admonition
From ThresholdRPG Wiki
Usage
This template creates admonition boxes (highlighted message boxes) with different styles based on type.
Syntax
{{Admonition|type=TYPE|text}}
or
{{Admonition|type=TYPE|title=CUSTOM TITLE|text}}
Available Types
- note (default) - For general information
- warning - For warning messages
- tip - For helpful tips
- important - For crucial information
- info - For additional information
- question - For questions or FAQs
- caution - For careful consideration
Examples
{{Admonition|This is a default note.}} {{Admonition|type=warning|This is a warning message.}} {{Admonition|type=tip|title=Pro Tip!|This is a custom-titled tip.}} {{Admonition|type=important|This is important information.}} {{Admonition|type=info|This is additional information.}} {{Admonition|type=question|Have you considered this?}} {{Admonition|type=caution|Proceed with caution.}}
Live Examples
{{#vardefine: icon|📝}}{{#vardefine: color|#448aff}}{{#vardefine: title|Note}}
{{#var: icon}} {{#var: title}} |
---|
This is a default note. |
{{#vardefine: icon|⚠️}}{{#vardefine: color|#ff9100}}{{#vardefine: title|Warning}}
{{#var: icon}} {{#var: title}} |
---|
This is a warning message. |
{{#vardefine: icon|💡}}{{#vardefine: color|#00bfa5}}{{#vardefine: title|Tip}}
{{#var: icon}} Pro Tip! |
---|
This is a custom-titled tip. |