InstaGov/syntax

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< InstaGov
Revision as of 17:18, 30 December 2012 by Woozle (talk | contribs) (updating to reflect what I seem to be actually implementing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Currently, all in-page functionality is implemented via the <igov> tag, which has the following options:

  • show: displays various information
    • show=answers: list answers for a set of criteria
      • q=(question ID)
      • u=(user ID or name)
      • name=(name of output array for each row)
      • vpage=[name of var in which to store each page name]
    • show=question: show summary and status of a given question (vote totals and statistics), and link to Special page for voting on it
      • q=(question ID)

show = question

  • default display format should show:
    • your vote
    • sum of all votes (including yours)
      • later: weighted sum based on credibility ratings
      • later: how your proxies voted
      • later: list of individual votes
      • later: voting history for this item

Implement later

  • If the tag-pair has any contents, use that as a format for displaying the data; otherwise use a default format.