This page is protected against editing.

Template:Warning

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Warning {{{1}}}
Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Documentationview · edit · history · purge ]
This documentation is transcluded from Template:Warning/doc.

This template should be used for important warnings about an article or a user that cannot be shown using a more specific template. Please use it when something is seriously wrong and other people might not otherwise know about it.

Usage

{{Warning |1= |title= }}

Template parameters

ParameterDescriptionDefaultStatus
1
2
messageBody of the warning messageemptyrequired
titletitleOptional title for the message, shown as third-level headingemptyoptional
langlanguageLanguage code of the message box content, used for displaying text in the direction of the language (e.g. right-to-left for Arabic)enoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1 or useTemplateData=only on the /doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

This template should be used for important warnings about an article or a user that cannot be shown using a more specific template. Please use it when something is seriously wrong and other people might not otherwise know about it.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
message1 2

Body of the warning message

Contentrequired
languagelang

Language code of the message box content, used for displaying text in the direction of the language (e.g. right-to-left for Arabic)

Default
en
Lineoptional
titletitle

Optional title for the message, shown as third-level heading

Contentoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: all users

See also

Exclamation encircled.svg
Disputed / inaccurate:
Disputed / something missing:
  • {{Clarify}} – an in-line template
  • {{Lacking insignia source}}insignia
  • {{References missing}}generally for files where the description or depiction needs references
  • {{Datasource missing}}for own diagrams and maps visualizing data that needs references
  • {{No source since}}deletion warning for missing essential source information
  • {{Sourcefield}} - produces a warning that a file appears to have an invalid entry in its "Source" parameter; for use on user talk pages, not file pages; less serious than the {{No source since}} warning; does not threaten deletion
Fictional (consciously):
Generally:

Localization

This template is not intended to be localized.