Template:Info

From PINE64
Revision as of 09:34, 12 April 2022 by Fxc (talk | contribs) (Test)
Jump to navigation Jump to search
This page is a template. Check out all pages using this template.
For more information, read Template:Template.

A general, non-obtrusive information box.

Usage

{{Info|information content}}

Example

{{Info|This is an information.}}
Note: This is an information.

Technical notes

The boxes use display: table to support both adaptive width and floating siblings, all other alternatives can't archive them as perfect as this solution within just one HTML element. However, it has its own flaw, if you put it into another table, its padding will gone. Avoid putting hints, notes and warnings into any tables until solution was found, or we give up and use two elements for just one box.

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