显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 <!DOCTYPE markdown> # Wiki Alerts and Callouts ## Alerts Alerts can be added as following. {% raw %} ``` {% include note.html content="Add content between quotes" %} {% include tip.html content="Add content between quotes" %} {% include important.html content="Add content between quotes" %} {% include warning.html content="Add content between quotes" %} ``` {% endraw %} {% include note.html content="Add content between quotes" %} {% include tip.html content="Add content between quotes" %} {% include important.html content="Add content between quotes" %} {% include warning.html content="Add content between quotes" %} If you need multiple paragraphs, enter `<br/>`. The include uses `markdown="span"` as an attribute, which means GFM will process the entire content as a span. You can’t use block elements such as `p` or `div` or `pre`. If you need these elements, you can either manually surround the content with the HTML from the include, or you can use these tags: {% raw %} ``` {{site.data.alerts.note}} <p>Content</p> <a href="http://azerothcore.org">Webpage</a> {{site.data.alerts.end}} ``` {% endraw %} {{site.data.alerts.note}} <p>Content</p> <a href="http://azerothcore.org">Webpage</a> {{site.data.alerts.end}} ## Callouts {% raw %} ``` {% include callout.html content="Add content between quotes" type="primary" %} ``` {% endraw %} {% include callout.html content="Add content between quotes" type="primary" %} The type can be one of the following | Type | | ------- | | danger | | default | | primary | | success | | info | | warning | {% include callout.html content="This is a <b>danger</b> callout." type="danger" %} {% include callout.html content="This is a <b>default</b> callout." type="default" %} {% include callout.html content="This is a <b>primary</b> callout." type="primary" %} {% include callout.html content="This is a <b>success</b> callout." type="success" %} {% include callout.html content="This is a <b>info</b> callout." type="info" %} {% include callout.html content="This is a <b>warning</b> callout." type="warning" %} docs-en/wiki-alerts-and-callouts.md.txt 最后更改: 2024/03/15 19:08由 127.0.0.1