Jump to content

Template:Note/doc

From DynamicPageList4 Manual
Documentation subpage
View this documentation's related template:
Template:Note (edit).
(create).

Creates a variety of notes or notices depending on parameters set.

{{note}} Some stuff
{{note|Some info}}
{{note|A reminder|reminder}}
{{note|Warn me|warn|inline=any value}}
{{note|This causes an error|error}}

Note: Some stuff

Some info
A reminder
Warn me
This causes an error

Preformatted examples

[edit source]
  • {{note|namespace|warn}} gives:
In versions before 4.0.0, namespaces with spaces in their name (such as "Help talk") requires replacing the space with an underscore — e.g. "Help_talk". If you use a space instead, inclusions and exclusions won't work as expected, and pages like Help talk:Three are not included/excluded. This is due to MediaWiki namespaces internally using underscores.

This is not an issue in version 4.0.0 and later, where spaces in namespace names are handled correctly.

  • {{note|main|warn}} gives:
In versions before 4.0.0, a blank namespace was the only way to indicate the main namespace. In later versions, the value of "namespace = main" is supported (unless there is an actual separate namespace using that name), and any namespace ID may be used as well.

See Also

[edit source]

Creates a pre-formatted notebox (using built-in MediaWiki note styles) whose content {1} is entered or set, and appearance styled {2} based on given parmeter values.

Template parameters

ParameterDescriptionTypeStatus
11 text

Enter text to display, or a suggested value from the list for predefined message text.

Suggested values
main namespace
Stringrequired
22 type

Enter a suggested value to override appearance type.

Suggested values
info reminder warn error
Default
info
Stringoptional
inlineinline

Overrides "display:block; width:auto;" if any value is set, and thus displays the results inline.

Booleanoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.