Difference between revisions of "Template:Message"
Another OWL (talk | contribs) m (minor template update, now avatars also link to the user’s page) |
Another OWL (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | |||
{{todo|Animated avatar. {{note|It's not hard to do.}}}} | {{todo|Animated avatar. {{note|It's not hard to do.}}}} | ||
{{Doc}}<includeonly><onlyinclude>{{#if:{{{reply|}}} | {{Doc}}<includeonly><onlyinclude>{{#if:{{{reply|}}} |
Latest revision as of 21:39, 12 January 2024
Todo: Animated avatar.
Note:It's not hard to do.
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
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.
The above documentation is transcluded from Template:Message/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.