Template:Admonition

From ThresholdRPG Wiki
Revision as of 19:24, 6 February 2025 by Gesslar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Usage

Create admonition boxes with different styles.

Basic Usage

{{Admonition|Your message here}}

With Type

{{Admonition|type=warning|Your warning message}}

With Custom Title

{{Admonition|type=tip|title=Pro Tip!|Your tip message}}

With Custom Width

{{Admonition|width=50%|Your message here}} {{Admonition|type=warning|width=75%|Your warning message}}

Types Available

  • note (default) - For general information
  • warning - For cautionary notes
  • tip - For helpful tips
  • important - For crucial information
  • stop - For breaking changes or critical warnings

Parameters

  • type - The type of admonition (optional, defaults to "note")
  • title - Custom title (optional, defaults based on type)
  • width - Custom width (optional, defaults to "100%")
  • message - The main content (required)

Live Examples

📝 Note
This is a default note at full width.



📝 Note
This is a note at 50% width.



⚠️ Warning
This is a warning message at 75% width.



💡 Pro Tip!
This is a custom-titled tip.



🛑 STOP
This feature is being removed in the next version. Do not use it for new development.