模板:ReviewsComments

来自百问网嵌入式Linux wiki

Usage

The ReviewsComments template is used to store, in a page, a comment about the content (mainly, but not only, within the scope of the review process): question, disagreement, request for improvement etc. It should be added just before the line that is the object of the comment.

It puts a message box with a "pink notepad" icon in the page.

Only logged-in users who have writing permissions, can see this box. However, do not put any confidential information in the parameters of this template.

Usage:  {{ReviewsComments | <comment>}}

Where <comment> is the mandatory comment message. It is recommended that reviewers sign their comment

  • either with their MediaWiki signature plus timestamp thanks to the ~~~~ markup (replaced when saving),
  • or with their name's trigram and the week number (e.g. JCT w920 -) in the comment message.

A custom button in the Wikitext editor toolbar allows to insert a review comment (with the MediaWiki signature):

Basic examples

You type You get
Comment and MediaWiki signature supplied
{{ReviewsComments | ~~~~ - The proposed command doesn't work: please propose another version}}

<securetransclude src="ProtectedTemplate:ReviewsComments" params="Jean Christophe Trotin (talk) 09:56, 13 January 2020 (CET) - The proposed command doesn't work: please propose another version"></securetransclude>{{#set:Has reviews comments=true}}

Comment and trigram supplied
{{ReviewsComments | JCT w920 - The proposed command doesn't work: please propose another version}}

<securetransclude src="ProtectedTemplate:ReviewsComments" params="JCT w920 - The proposed command doesn't work: please propose another version"></securetransclude>{{#set:Has reviews comments=true}}

More examples

You type You get
No comment supplied, no signature supplied
{{ReviewsComments}}

<securetransclude src="ProtectedTemplate:ReviewsComments" params=""></securetransclude>{{#set:Has reviews comments=true}}

No comment supplied, signature supplied
{{ReviewsComments | JCT w920 -}}

<securetransclude src="ProtectedTemplate:ReviewsComments" params="JCT w920 -"></securetransclude>{{#set:Has reviews comments=true}}

Comment supplied with a long sentence, signature supplied
{{ReviewsComments | JCT w920 - The comment is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}

<securetransclude src="ProtectedTemplate:ReviewsComments" params="JCT w920 - The comment is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli."></securetransclude>{{#set:Has reviews comments=true}}

Check that the spaces before and after the message
BEFORE{{ReviewsComments | Check spaces}}AFTER<br>
BEFORE
{{ReviewsComments | Check spaces}}
AFTER

BEFORE<securetransclude src="ProtectedTemplate:ReviewsComments" params="Check spaces"></securetransclude>{{#set:Has reviews comments=true}}AFTER
BEFORE <securetransclude src="ProtectedTemplate:ReviewsComments" params="Check spaces"></securetransclude>{{#set:Has reviews comments=true}} AFTER

Code

<securetransclude src="ProtectedTemplate:ReviewsComments" params=""></securetransclude>{{#set:Has reviews comments=true}}