Difference between revisions of "Template:Warning"

From PINE64
Jump to navigation Jump to search
(use display: table to work with float: right)
(Enhance Example)
Line 1: Line 1:
<noinclude>
<noinclude>
<!--    -->
{{Template}}
{{Template}}
A waring box for highlighting dangerous actions and security warnings. It starts with "'''Warning:'''" by default.


== Usage ==
== Usage ==


<pre><nowiki>{{Warning|This is a warning.}}</nowiki></pre>
<nowiki>{{Warning|warning content}}</nowiki>


== Example ==
== Example ==


<nowiki>{{Warning|This is a warning.}}</nowiki>
<!--      -->
{{Warning|This is a warning.}}
{{Warning|This is a warning.}}
</noinclude><includeonly><div style="display: table; min-width: 16em; min-height: 1.6em; margin: .5em 0; padding: .5em 1em; border: 1px solid #d33; color: black; background-color: #fee7e6;">'''Warning:''' {{{1|}}}</div></includeonly>
<!--      -->
== Technical notes ==
 
This template uses class <code>.template-box</code> and <code>.template-warning</code>.
In the future, if the [https://www.mediawiki.org/wiki/Extension:TemplateStyles TemplateStyles Extension] is installed on this MediaWiki instance,
one may move the embedded inline styles to Template Style files.
 
== See also ==
 
* [https://wiki.archlinux.org/title/Template:Warning ArchWiki: Template:Warning]: the template on which this one is based on
* [[Template:Hint]]
* [[Template:Note]]
<!--                  -->
</noinclude><includeonly>
<!--                  -->
<div role="note" class="template-box template-warning" style="
display: table;
min-width: 16em;
min-height: 1.6em;
margin: .5em 0 1em;
padding: .5em 1em;
border: 1px solid #d33;
color: black;
background-color: #fee7e6;
">{{{1|}}}</div>
<!--      -->
</includeonly>

Revision as of 09:05, 22 September 2021

This page is a template. Check out all pages using this template.
For more information, read Template:Template.

A waring box for highlighting dangerous actions and security warnings. It starts with "Warning:" by default.

Usage

{{Warning|warning content}}

Example

{{Warning|This is a warning.}}
This is a warning.

Technical notes

This template uses class .template-box and .template-warning. In the future, if the TemplateStyles Extension is installed on this MediaWiki instance, one may move the embedded inline styles to Template Style files.

See also