Difference between revisions of "Template:Afc comment/sandbox"
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
Comment: Error: There was no comment detected! Please follow the instructions at Template:Afc comment.
| This is the template sandbox page for Template:Afc comment (diff). See also the companion subpage for test cases. |
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
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
Note: This is a note
and
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
- {{AFC notification}}, which is left by the helper script when placing one of these
| The above documentation is transcluded from Template:Afc comment/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |