User:DavidHOzAu/votescript

;Votescript v1.0

Script for tabulating results of the approval voting process.

  • This script has a user interface where the title of the survey page can be entered.
  • After the survey page has been parsed, you will have to edit the headings scraped off the page to match the heading of the option people voted under.
  • The preview and wikitable code update automatically whenever the heading text area loses focus.

TODO

Any contributions to this script would be appreciated. Leave a note on my talk page if you have any ideas.

class="wikitable collapsible collapsed" width="100%"

! Closed bugs

Bug 0: Wikipedia integration doesn't seem to work

  • Faulty escaped code
  • FIXED

Bug 1: Need to modify code for each straw poll

  • Program can't be used by everyone because of this oversight.
  • Provide a page like Interiot's tool where a wikipedia page can be entered into a box.
  • FIXED

Bug 2: Doesn't understand polls that are not subtitled with <h3>

  • Possible duplicate of bug 1
  • Needs more program logic
  • FIXED, but may give weird results on buggy browsers (IE, etc.)

Bug 3: Thinks that From Wikipedia, the free encyclopedia is a vote heading when looking for level 3 headings

  • Caused by a h3 tag inside #bodyContent
  • Needs more program logic
  • FIXED

'''Bug 4: Thinks that two separate surveys on the same page are one and the same

  • The code cannot parse multiple surveys on the same page.
  • You're asking too much of the code; consider listing each survey on its own subpage and using template magic on the main survey page ala WP:PR.
  • WONTFIX

Bug 5: Ignores voter who doesn't wikilink to anything

  • The code searches for the first occurrence of title="User:__somename__", and determines the username from that.
  • This bug is caused by customized signatures that use external links to a userpage (the title attribute becomes a URL) or contain no links whatsoever.
  • CRITICALFIXED

Usage

Add the following to your user javascript:

//--------------------------------------------------------------

document.write('');

//--------------------------------------------------------------

{{/code.js}}

votescript