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 13:59, 12 May 2011 by Woozle (talk | contribs) (actual code for listing answers)
Jump to navigation Jump to search

Displaying Lists

  • answers:
    • SMW: {{#ask: [[Response to::name of question]] [[Category:Igov/answer]]}}
      • this is only somewhat useful, as there is no way of formatting the results based on w3tpl content
    • <igov list=answers name=igov target="name of question" vpage=output var name >w3tpl code to display each result</igov>

Voting

This is still in development

<igov type=type />

  • type:
    • answers: list summaries for all answers to this page's question
  • vote:
    • show vote status for this item, and accept votes from qualified users
    • parameters:
      • 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.)