Difference between revisions of "Template:Afc comment/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>Paine Ellsworth
(sync)
blackwiki>LittlePuppers
(Directly invoke string to use regex)
Line 1: Line 1:
*[[File:Symbol opinion vote.svg|20px|link=]] <span style=font-weight:bold>{{{2|Comment}}}:</span> {{replace|{{{1|{{red|Error: There was no comment detected! Please follow the instructions at [[Template:Afc comment]].}}}}}|
+
*[[File:Symbol opinion vote.svg|20px|link=]] <span style=font-weight:bold>{{{2|Comment}}}:</span> {{#invoke:String|replace|{{{1|{{red|Error: There was no comment detected! Please follow the instructions at [[Template:Afc comment]].}}}}}|
 
+
+|{{pb}}||false}}<noinclude>
|{{pb}}}}<noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:17, 12 August 2020

  • Symbol opinion vote.svg Comment: Error: There was no comment detected! Please follow the instructions at Template:Afc comment.
Template documentation[view] [edit] [history] [purge]

Usage

This template is used for articles submitted through the Wikipedia:Articles for creation process, when you have a comment for the submitter.

{{afc comment|1=your comment here}}

which displays your comment. For example,

{{afc comment|1=It's an excellent article, but it needs some more references.}}

would display

  • Symbol opinion vote.svg Comment: It's an excellent article, but it needs some more references.

There is a second, optional, parameter to replace "Comment:" with custom text. For example,

{{afc comment|This is a note|Note}}

or

{{afc comment|2=Question|1=Why?}}

displays

  • Symbol opinion vote.svg Note: This is a note

and

  • Symbol opinion vote.svg Question: Why?

respectively.


In the most common situations, you can alternatively use this slightly simpler form:

{{afc comment|your comment here}}

Note lack of "1=" in this simpler use of template-syntax. However, this simplified syntax does not work when your comment contains an equals sign (including the equals signs in URLs such as https://en.wikipedia.org/w/index.php?title=Template:Afc_comment). In case of difficulty (e.g. an error message saying "no comment detected"), please use the {{afc comment|1=your comment here}} syntax.

See also