Wikipedia:Bots/Requests for approval/Revibot
- The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was Withdrawn by operator.
Operator: -revi (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 03:27, Saturday November 22, 2014 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Pywikibot
Source code available: https://github.com/revi/Revibot
Function overview: Update userspace counter
Links to relevant discussions (where appropriate):
Edit period(s): Daily
Estimated number of pages affected: 1
Exclusion compliant (Yes/No): No
Already has a bot flag (Yes/No):
Function details: This bot will edit User:Revi/counter (my doppleganger's subpage) page and put the value toward specific date for use on userbox. (think of D-Day counter)
Discussion
[edit]- You don't need a bot to update a countdown - you can do that with mw:ParserFunctions.
- For example:
{{#expr:({{#time: xNU|2015-11-12}} - {{#time: xNU}}) / 86400 round 0}}
will give you -3279
- You can fiddle with the
round
function's parameter if you want fractional parts of days, etc:
{{#expr:({{#time: xNU|2015-11-12}} - {{#time: xNU}}) / 86400 round 1}}
will give you -3279.1
Reticulated Spline (t • c) 14:15, 22 November 2014 (UTC)[reply]
- Thanks, then I withdraw this request. — Revi 14:30, 22 November 2014 (UTC)[reply]
- Withdrawn by operator. Uncontroversial non-BAG closure.
- @-revi: You're most welcome! Reticulated Spline (t • c) 15:03, 22 November 2014 (UTC)[reply]
- Thanks, then I withdraw this request. — Revi 14:30, 22 November 2014 (UTC)[reply]
- The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.