InstaGov/syntax: Difference between revisions
from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< InstaGov
extracted SMW syntax to SMW page |
updating to reflect what I seem to be actually implementing |
||
| Line 1: | Line 1: | ||
Currently, all in-page functionality is implemented via the {{xmltag|igov}} tag, which has the following options: | |||
== | * '''show''': displays various information | ||
** '''show=answers''': list answers for a set of criteria | |||
* show vote | *** '''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: | * default display format should show: | ||
** your vote | ** your vote | ||
| Line 16: | Line 17: | ||
*** later: list of individual votes | *** later: list of individual votes | ||
*** later: voting history for this item | *** 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. | |||
Latest revision as of 17:18, 30 December 2012
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=answers: list answers for a set of criteria
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.
