The warning directive is provided by the admonition plugin.

The following markup:

[[!warning  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit."]]

Will show:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

It generates the following HTML, which is the equivalent:

<div class="warning">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</div>

Other admonitions are available, see admonition for more and rationale.