This page is protected against editing.

Template:Re

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

re

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Re/doc.

Usage

With no parameters ({{re}}), generates "re" in superscript, useful in French-language text.

With unnumbered parameters ({{re|Username}}), acts as an alias for Template:Reply to.

Single recipient

To use it, just add something like the following to an existing discussion:

{{re|User1}} Message text. ~~~~

For example, ":{{re|Jimbo Wales}} Message text." displays as:

@Jimbo Wales: Message text.

Per mw:Extension:Echo#Usage, you must link to another user's page and sign in the same edit in order to effectively mention, notify, or ping them, and even then only if they have "Notify me when someone links to my user page" set (which is the default here).

Multiple recipients

You can re up to 50 people at once:

{{re|User1|UserII|UserC}} Message text. ~~~~
@Example, Jimbo Wales, and Foo: Message text.

Specify a prefix

To change the "@" prefix, use |prefix=custom prefix. For example:

"{{re|Example|prefix=Hello }}" produces "Hello Example: "

Or you can remove the prefix entirely by using |prefix=. For example:

"{{re|Example|prefix=}}" produces "Example: "

Customise punctuation

By default, the template will insert a colon after the final name. To change this, specify the required character using the |p= parameter. For example:

  • {{re|Example|p=---}} produces @Example---
  • {{re|Example|p=}} produces @Example

TemplateData

<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

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
User 11

First user

Usersuggested
User 22

Second user

Useroptional
User 33

Third user

Useroptional
User 44

Fourth user

Useroptional
User 55

Fifth user

Useroptional
User 66

Sixth user

Useroptional
User 77

Seventh user

Useroptional
User 88

Eighth user

Useroptional
User 99

Ninth user

Useroptional
User 1010

Tenth user

Useroptional
Prefixprefix

Prefix symbol

Default
@
Lineoptional
Suffixp

Suffix symbol

Default
:
Lineoptional