Template:Reply to/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(steal some sections from w:en:Template:Reply_to/doc) |
||
Line 20: | Line 20: | ||
<nowiki>{{reply to|Username1|Username2}} Message text. ~~~~</nowiki> |
<nowiki>{{reply to|Username1|Username2}} Message text. ~~~~</nowiki> |
||
=== Specify a nickname === |
|||
You can display any text in place of a username by using {{para|labelX}}, where X is the index of a positional parameter, counting from 1. For example: |
|||
:"<code><nowiki>{{reply to|2=Example|3=label1=Exemplar|4=Example2|5=label2=John}}</nowiki></code>" produces "{{reply to|Example|label1=Exemplar|Example2|label2=John}}" |
|||
You can also use {{para|label}} in place of {{para|label1}}. For example: |
|||
:"<code><nowiki>{{reply to|2=Example|3=label=John}}</nowiki></code>" produces "{{reply to|Example|label=John}}" |
|||
=== Specify a prefix === |
|||
To change the prefix, use {{para|prefix|''custom prefix''}}. For example: |
|||
:"<code><nowiki>{{reply to|Example|3=prefix=Hello&nbsp; }}</nowiki></code>" produces "{{reply to|Example|prefix=Hello }}" |
|||
Or you can remove the prefix entirely by using {{para|prefix}}. For example: |
|||
:"<code><nowiki>{{tlf|reply to|Example|3=prefix=}}</nowiki></code>" produces "{{reply to|Example|prefix=}}" |
|||
=== Customise punctuation === |
|||
By default, the template will insert a colon after the final name. To change this, specify the required character using the {{para|p}} parameter. For example: |
|||
:"<code><nowiki>{{reply to|Example|3=p=—}}</nowiki></code>" produces "{{reply to|Example|p=—}}" |
|||
The parameter omits leading or trailing spaces. Use <code>&nbsp;</code> instead. For example: |
|||
:"<code><nowiki>{{reply to|Example|3=p=&nbsp;–}} Text message</nowiki></code>" produces "{{reply to|Example|p= –}} Text message" |
|||
To simply remove the colon, use the parameter with an empty value: |
|||
:"<code><nowiki>{{reply to|Example|3=p=}}</nowiki></code>" produces "{{reply to|Example|p=}}" |
|||
=== Customise conjunction === |
|||
By default, the template will use the word "and" between multiple names. To change this, specify the required conjunction using the {{para|c}} parameter. For example: |
|||
:"<code><nowiki>{{reply to|Example|Example2|4=c=or}}</nowiki></code>" produces "{{reply to|Example|Example2|c=or}}" |
|||
:"<code><nowiki>Neither {{reply to|Example|Example2|Example3|5=c=nor}}</nowiki></code>" produces "Neither {{reply to|Example|Example2|Example3|c=nor}}" |
|||
To simply remove the conjunction, use the parameter with an empty value: |
|||
:"<code><nowiki>{{reply to|Example|Example2|4=c=}}</nowiki></code>" produces "{{reply to|Example|Example2|c=}}" |
|||
=== Or don't use! === |
|||
If you are using the {{para|prefix}} and {{para|p}} together to just display one user name, then there is no need to use this template. Simply code <code>[[User:''username''|]]</code> or {{tlx|u|''username''}}. This will generate the same notifications as are generated by the template. |
|||
== Error messages == |
== Error messages == |