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
 
actual code for listing answers
Line 1: Line 1:
==Displaying Lists==
==Displaying Lists==
* '''answers''': <nowiki>{{#ask: [[Response to::</nowiki><u>name of question</u><nowiki>]] [[Category:Igov/answer]]}}</nowiki>
* '''answers''':
** [[Semantic MediaWiki|SMW]]: <nowiki>{{#ask: [[Response to::</nowiki><u>name of question</u><nowiki>]] [[Category:Igov/answer]]}}</nowiki>
*** this is only somewhat useful, as there is no way of formatting the results based on w3tpl content
** &lt;igov list=answers name=igov target="<u>name of question</u>" vpage=<u>output var name</u> &gt;''w3tpl code to display each result''&lt;/igov&gt;
==Voting==
==Voting==
''This is still in development''
''This is still in development''

Revision as of 13:59, 12 May 2011

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