Difference between revisions of "Template:MarkAsResolved/doc"
m |
m (+.cn) (Tag: Automation tool) |
||
Line 1: | Line 1: | ||
− | {{FromOther|site=Chinese Moegirlpedia|copyright=cc|lsubtype=BY-NC-SA|lver=3.0|origin={{FULLPAGENAME}}|originURL=https://zh.moegirl.org/{{FULLPAGENAMEE}}|contribURL=https://zh.moegirl.org/index.php?title={{FULLPAGENAMEE}}&action=history}} | + | {{FromOther|site=Chinese Moegirlpedia|copyright=cc|lsubtype=BY-NC-SA|lver=3.0|origin={{FULLPAGENAME}}|originURL=https://zh.moegirl.org.cn/{{FULLPAGENAMEE}}|contribURL=https://zh.moegirl.org.cn/index.php?title={{FULLPAGENAMEE}}&action=history}} |
== Redirects == | == Redirects == |
Revision as of 14:20, 8 October 2020
Contents
Redirects
{{MAR}}
Substitution is also available to replace the original name of the template (including the /auto subpage, for example {{subst:MAR/auto}}
).
Usage
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=|comment=}}
- Standard syntax.
comment
[1] andstatus
[2]may be omitted but that is not recommended;sign
is required.time
is kept for future proofing.
status
Can be one of the following values:
Type | Possible Value | Suggested Usage |
---|---|---|
Request accepted | a , accepted |
For administrators. Use when accepting a request. |
Request suspended | s , suspended |
For administrators. Use when suspending a request. |
Request denied | d , denied |
For administrators. Use when denying a request. |
Request withdrawn | w , withdrawn |
Use when the original requester withdraws a request. |
No reply lol ROASTED | n , noreply |
Use to attract more replies, or when marking a discussion thread with no replies for easy archiving. |
Issue addressed | p , replied |
Use when administrators or experienced editors have replied to the issue, but cannot be counted as fully resolved (for example, problems caused by a force majeure). |
Issue resolved | r , resolved ;Any other input value, as this is the default value. |
Use when administrators or experienced editors have fully resolved the issue. |
Example
The following examples are based on the signature of User:公的驱逐舰 in early 2020.
Common Usage
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}}}
{{subst:MarkAsResolved/auto}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|comment=Some comments here.}}
{{subst:MarkAsResolved/auto|comment=Some comments here.}}
With status
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=a}}
{{subst:MarkAsResolved/auto|status=a}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=s|archive-offset=10}}
{{subst:MarkAsResolved/auto|status=s}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=n|archive-offset=10}}
{{subst:MarkAsResolved/auto|status=n}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=d}}
{{subst:MarkAsResolved/auto|status=d}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=w}}
{{subst:MarkAsResolved/auto|status=w}}
{{MarkAsResolved|sign=~~~~|time={{subst:#timel:Ymd}}|status=p}}
{{subst:MarkAsResolved/auto|status=p}}
Template Data
<templatedata> { "params": { "status": { "type": "string", "suggested": true, "description": "Status of the MAR template. Current possibilities (short hands) are listed in the example.", "example": "a, s, d, w, n, p, r", "default": "resolved", "autovalue": "resolved" }, "comment": { "description": "Any comment you wish to add.", "type": "string", "autovalue": "", "example": "The issue here is addressed and fixed by an admin." }, "sign": { "description": "Signature. Always use ~~~~.", "autovalue": "~~~~", "required": true }, "time": { "autovalue": "{{subst:#timel:Ymd}}", "description": "Date when the MAR template is transcluded. Always use {{subst:#timel:Ymd}}.", "type": "date", "suggested": true } }, "description": "Template used to mark a discussion thread as resolved.", "format": "inline", "paramOrder": [ "sign", "time", "status", "comment" ] } </templatedata>