Template:Comment/doc: Difference between revisions
Jump to navigation
Jump to search
>Rusty.perrin (→Appearance in Visual Editor: Take out column width guides) |
>Tom.Reding m (→top: {{High-use}}) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | |||
{{High-use}} | |||
== | ==Usage== | ||
<syntaxhighlight lang="wikitext">{{Comment}} Your comment here.</syntaxhighlight> produces "{{Comment}} Your comment here." | |||
You can also use {{tlp|comment|optional word}} to put a word instead of "comment": <syntaxhighlight lang="wikitext">{{comment|Note}}</syntaxhighlight> produces {{comment|Note}}. | |||
== TemplateData == | |||
{{TemplateDataHeader}} | |||
<templatedata>{ | |||
"description": "Indicates the insertion of a comment in a discussion. Displays an icon and a text string; takes one optional parameter which defines the text string.", | |||
"params": { | |||
"1": { | |||
"label": "Display text", | |||
"description": "Text which will replace default text; e.g. Note.", | |||
"type": "string", | |||
"default": "Comment", | |||
"required": false | |||
} | |||
} | |||
}</templatedata> | |||
== | ==See also== | ||
* {{tl|A note}} | |||
* {{tl|Nacmt}} (Non-admin comment) | |||
* {{tl|HTML comment}} | |||
{{Done/See also}} | |||
{{ | |||
{{ | |||
<includeonly>{{Sandbox other|| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
[[Category:Image with comment templates]] | |||
< | }}</includeonly> | ||
{ | |||
} | |||
</ |
Revision as of 13:37, 26 December 2023
This is a documentation subpage for Template:Comment
(see that page for the template itself). It contains usage information, categories, and other content that is not part of the original template page. |
This template is used on approximately 5,800 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
{{Comment}} Your comment here.
produces " Your comment here." You can also use {{comment|optional word}} to put a word instead of "comment":
{{comment|Note}}
produces .
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Comment in articles based on its TemplateData.
TemplateData for Comment
Indicates the insertion of a comment in a discussion. Displays an icon and a text string; takes one optional parameter which defines the text string.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Display text | 1 | Text which will replace default text; e.g. Note.
| String | optional |
See also
- {{A note}}
- {{Nacmt}} (Non-admin comment)
- {{HTML comment}}