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
preliminary syntax
 
updating to reflect what I seem to be actually implementing
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Displaying Lists==
Currently, all in-page functionality is implemented via the {{xmltag|igov}} tag, which has the following options:
* '''answers''': <nowiki>{{#ask: [[Response to::</nowiki><u>name of question</u><nowiki>]] [[Category:Igov/answer]]}}</nowiki>
==Voting==
''This is still in development''


&lt;igov type=<u>type</u> /&gt;
* '''show''': displays various information
* '''type''':
** '''show=answers''': list answers for a set of criteria
** '''answers''': list summaries for all answers to this page's question
*** '''q='''(question ID)
* '''vote''':
*** '''u='''(user ID or name)
** show vote status for this item, and accept votes from qualified users
*** '''name='''(name of output array for each row)
** parameters:
*** '''vpage='''[name of var in which to store each page name]
*** '''text''' or tag contents: text describing what attribute is being voted on (quality of writing, quality of argument, agree with conclusion, belongs in category, importance, etc.)
** '''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.

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 = 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.