Template:Warning

From Gentoo Wiki
Jump to:navigation Jump to:search
Warning
{{{1}}}
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Displays additional warning information which may be useful as a note to the reader.

Template parameters

ParameterDescriptionTypeStatus
Warning content1

Add warning details to display as content.

Contentrequired
Format typetype

Set to a value of 'inline' or 'block'. Adjusts the content to be in an inline (useful for lists) or block (line breaking) level element.

Default
block
Stringoptional
Tip
Use {{=}} or {{!}} instead of the characters "=" or "|" for equal or pipe symbols, respectively.

Usage

See the template's testcases:

No parameter
Wiki code {{Warning}}

Main version
Warning
{{{1}}}
Sandbox version
Warning
{{{1}}}
Parameter: unnamed
Wiki code {{Warning|Some urgent information.}}

Main version
Warning
Some urgent information.
Sandbox version
Warning
Some urgent information.
Parameter: unnamed 1, unnamed 2
Wiki code {{Warning|Some urgent information in 1st parameter.|Some info in 2nd parameter}}

Main version
Warning
Some urgent information in 1st parameter.
Sandbox version
Warning
Some urgent information in 1st parameter.
Parameter: unnamed, type=block
Wiki code {{Warning|Some urgent information.|type=block}}

Main version
Warning
Some urgent information.
Sandbox version
Warning
Some urgent information.
Parameter: unnamed, type=inline
Wiki code {{Warning|Some urgent information.|type=inline}}

Main version Warning: Some urgent information.
Sandbox version Warning: Some urgent information.
Parameter: unnamed 1, unnamed 2, type=inline
Wiki code {{Warning|Some urgent information in 1st parameter.|Some info in 2nd parameter|type=inline}}

Main version Warning: Some urgent information in 1st parameter.
Sandbox version Warning: Some urgent information in 1st parameter.
Parameter: unnamed but very long, type=inline
Wiki code {{Warning|Some urgent information.|type=inline}}

Main version Warning: Some urgent information.
Sandbox version Warning: Some urgent information that is so long that it might wrap across a paragraph or even the page, lorem ipsum gentoo porcum latina larry congrego ebuilda dolor sit lorem ipsum gentoo porcum latina larry congrego ebuilda dolor sit.

See also

Note
The above documentation is transcluded from Template:Warning/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)