Template:Message/doc
This is a documentation subpage for Template:Message.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template allows you to post topic comments on discussion pages with a prettier design.
Copy and Paste
Parameters and Examples
Parameter (* Required) |
Description | Example | Preview |
---|---|---|---|
*{{{user}}}
|
Loads an avatar (UserAvatar-<user>.png ) and signs a comment (without a timestamp).
Note:The value must be exactly the same as the user’s name, including spaces and case sensitivity.
|
||
*{{{time}}}
|
Timestamp written after the nickname. The input value is a function that defines the time in UTC+0. After saving, the #time function will be converted to a regular date. Don’t change the #time function.
Note:Don’t use tildes, use only this:
{{SUBST:#time:G:i, j M Y|now}} |
Undefined user 16:00, 29 March 2021 (UTC)
Hello, World!
| |
{{{edited}}}
|
Date and time of editing. Note that changes in the code, such as correcting the parameter name, should not be taken into account when using {{{edited}}}. | Undefined user Timestamp not defined (edited)
Hello, World!
| |
* {{{1}}} or {{{text}}}
|
The text of your message.
The second option is needed in cases when the text is not displayed for various reasons (for example, when Tip:If you are posting an image, it's recommended that it shouldn't exceed 200px or more, to prevent making it look messy and slowing down internet connections for some users (unless they click/tap on it manually to view the image fully).
Note:This was also used in the examples above and below, but was not shown.
|
Undefined user Timestamp not defined
My sweet message!
| |
{{{reply}}}
|
The solution to your question. | Another person’s text is written here.
Undefined user Timestamp not defined
And this is your sweet message.
|
Included Subpages
Below are the subpages that are used by this template for better code readability or something else.
/strings
- Translatable strings.