Template talk:Bureaucrat candidate

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Edit request on 12 February 2012[edit]

Replace:

Extended content

<noinclude> {{Pp-template}} </noinclude> <includeonly>|{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}|{{{candidate}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Support|{{{support}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Oppose|{{{oppose}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Neutral|{{{neutral}}}]] |align="right" bgcolor="{{Template:Bureaucrat candidate/expr{{#if:{{{crat|}}}|2}}|{{#ifeq:{{{support|}}}{{{oppose|}}}|0||{{#if:{{{support|}}}{{{oppose|}}}|{{#expr: ({{{support}}} / ({{{support}}} + {{{oppose}}}) ) * 100 round 0 }}}}}}}}" |{{#ifeq:{{{support|}}}{{{oppose|}}}|0||{{#if:{{{support|}}}{{{oppose|}}}|{{#expr: ({{{support}}} / ({{{support}}} + {{{oppose}}}) ) * 100 round 0 }}}}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|{{{end date}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|{{{time left}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|<center>{{{dups}}}</center> |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[http://toolserver.org/~soxred93/rfa/?p=Wikipedia:Requests_for_{{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{urlencode:{{{candidate}}}}} report]</includeonly><noinclude> {{transclusionless}} <!-- ADD INTERWIKIS AND CATEGORIES TO THE DOCUMENTATION, NOT HERE THANKS --> {{documentation}} </noinclude>

with

<noinclude> {{Pp-template}} </noinclude> <includeonly>|{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}|{{{candidate}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Support|{{{support}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Oppose|{{{oppose}}}]] |align="right" {{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[[Wikipedia:Requests for {{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{{candidate}}}{{#if:{{{run|}}}|_{{{run}}}}}#Neutral|{{{neutral}}}]] |align="right" bgcolor="{{Template:Bureaucrat candidate/expr{{#if:{{{crat|}}}|2}}|{{#ifeq:{{{support|}}}{{{oppose|}}}|0||{{#if:{{{support|}}}{{{oppose|}}}|{{#expr: ({{{support}}} / ({{{support}}} + {{{oppose}}}) ) * 100 round 0 }}}}}}}}" |{{#ifeq:{{{support|}}}{{{oppose|}}}|0||{{#if:{{{support|}}}{{{oppose|}}}|{{#expr: ({{{support}}} / ({{{support}}} + {{{oppose}}}) ) * 100 round 0 }}}}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|{{{end date}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|{{{time left}}} |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|<center>{{{dups}}}</center> |{{#ifeq:{{{expired}}}|yes|style="background:#F8CDC6"}}|[http://toolserver.org/~tparis/rfa/?p=Wikipedia:Requests_for_{{#ifeq:{{{rfa}}}|yes|adminship|bureaucratship}}/{{urlencode:{{{candidate}}}}} report]</includeonly><noinclude> {{transclusionless}} <!-- ADD INTERWIKIS AND CATEGORIES TO THE DOCUMENTATION, NOT HERE THANKS --> {{documentation}} </noinclude>

Don't worry it's only a minor fix but the last edit request created confusion so I just decided to write out the entire source to replace the existing one. The fix is that soxred93's toolserver account expired and that the tools have been transferred to tparis. cyberpower (Talk to Me)(Contributions) 20:25, 12 February 2012 (UTC)[reply]

Done. Amalthea 22:59, 12 February 2012 (UTC)[reply]
Thanks.cyberpower (Talk to Me)(Contributions) 23:03, 12 February 2012 (UTC)[reply]

Make easier for humans?[edit]

Now that Cyberpower seems to have taken over the job of update the Rfx report, I was wondering if it would be possible to use a parser function to take the date the rfa ends and use that to determine the time left for the rfa. Best, --Kangaroopowah 03:26, 13 February 2012 (UTC)[reply]

It's only a temporary take over until my bot to replace SoxBot is ready to be launched. You would need to have a function that reads substrings so it can read into the time it ends. I don't the Wikiparsers can do that.cyberpower (Talk to Me)(Contributions) 11:00, 13 February 2012 (UTC)[reply]

edit request[edit]

{{edit protected}}

The rounding appears to be off, shouldn't it round up or down based on mathematical convention? As it is, every number is truncated past the 3rd decimal, as opposed to being rounded up or down. James (TC) • 10:22am 23:22, 28 January 2013 (UTC)[reply]

Question: On which page do you see an error? What is the candidate's name? --Redrose64 (talk) 00:14, 29 January 2013 (UTC)[reply]
Can you also provide an actual code change to the template before you request an edit be made? Please re-enable the template when you have something. --Closedmouth (talk) 01:37, 1 February 2013 (UTC)[reply]
During the Jason Quinn 2 RfA, when the percentage was at 72.8 - the decimal was truncated as opposed to being rounded up. As I said, I'm not good with wiki-syntax so I can't offer a better solution . What I do know is that it is currently truncating the everything past the third decimal as opposed to rounding up or down in accordance with mathematical convention. James (TC) • 6:20pm 07:20, 6 February 2013 (UTC)[reply]
The summary table at the time of your original post was like this. Going back several revisions I find a consistent 73% until I get to 21:45, 28 January 2013. These figures go through the expression parser as {{#expr: (78 / (78 + 30) ) * 100 round 0 }} which evaluates to 72, or 72.222222222222 without rounding. Going forward again, the very next summary was created at 22:01, 28 January 2013‎ with figures of {{#expr: (80 / (80 + 30) ) * 100 round 0 }} which evaluates to 73, or 72.727272727273 without rounding. I don't see evidence of truncation. --Redrose64 (talk) 14:58, 6 February 2013 (UTC)[reply]

Edit request on 3 May 2013: Protcol relative urls[edit]

Please modify the toolserver url prefix to make it a protocol relative url. This can be done by changing http://toolserver.org to //toolserver.org

Legoktm (talk) 04:51, 3 May 2013 (UTC)[reply]

Done In a few days time, you'll be able to do this yourself. Yay! --Redrose64 (talk) 06:46, 3 May 2013 (UTC)[reply]

Edit request on 10 September 2013[edit]

Please update the live template to match the Template:Bureaucrat candidate/sandbox so that User:Cyberpower678/RfX Report/sandbox can start producing more customizable reports as displayed on User:Cyberpower678/RfX Report/testcases. I have discussed this change with Cyberpower678 on IRC and he said that he would update the bot's output to include the new parameters once this template is updated. Thank you. Technical 13 (talk) 19:51, 10 September 2013 (UTC)[reply]

Question: Are you sure that you want the documentation removing? Is the removal of <includeonly>...</includeonly> also intentional? --Redrose64 (talk) 22:08, 10 September 2013 (UTC)[reply]
That should stay. Just the template itself is being updated. Thanks for asking. :) Technical 13 (talk) 23:03, 10 September 2013 (UTC)[reply]
Just being curious, but if you didn't want the documentation removing, why did you remove it from the sandbox? — Mr. Stradivarius ♪ talk ♪ 07:48, 11 September 2013 (UTC)[reply]
It just didn't get copied in. I often copy templates I work on to my local machine in NotePad++ (because it has bracket matching) and I often remove from that copy anything outside the outermost bracket pair. I'll add it to the sandbox. Technical 13 (talk) 11:41, 11 September 2013 (UTC)[reply]
It has now been included in the sandbox. — Preceding unsigned comment added by Technical 13 (talkcontribs) 12:01, 11 September 2013‎
I created some testcases. Is that what's supposed to happen? --Redrose64 (talk) 12:28, 11 September 2013 (UTC)[reply]
Redrose64 there were already some User:Cyberpower678/RfX Report/testcases based on a change to the bot that will happen once this template is updated.
Unprotected Sorry, should have spotted this sooner. The template only has 755 transclusions, so I've reduced it to semi-protection. — Mr. Stradivarius ♪ talk ♪ 10:45, 13 September 2013 (UTC)[reply]