Difference between revisions of "Template:Topic"

From Discourse DB
Jump to navigation Jump to search
(Updated second query)
(Updated)
Line 10: Line 10:
 
The order of the fields is not relevant.
 
The order of the fields is not relevant.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
This is a [[:Category:Topics|topic]], with start date [[Has start date:={{#if:{{{start date| }}}|{{{start date}}}|unknown}}]] and end date [[Has end date:={{#if:{{{end date| }}}|{{{end date}}}|unknown}}]].
+
This is a [[:Category:Topics|topic]], with start date [[Has start date::{{#if:{{{start date| }}}|{{{start date}}}|unknown}}]] and end date [[Has end date::{{#if:{{{end date| }}}|{{{end date}}}|unknown}}]].
  
Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[Has theme:=x| ]] [[x]]}}.
+
Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[Has theme::x]]}}.
 
 
<ask query="TopicSummary"> [[Addresses topic::{{PAGENAME}}]][[Category:Positions]] </ask>
 
  
 +
{{#ask:[[Addresses topic::{{PAGENAME}}]][[Category:Positions]]|query=TopicSummary}}
  
 
<font size="+1">All items that address this topic (<ask format="count"> [[Addresses topic::{{PAGENAME}}]][[Category:Items]] </ask> total)</font>
 
<font size="+1">All items that address this topic (<ask format="count"> [[Addresses topic::{{PAGENAME}}]][[Category:Items]] </ask> total)</font>

Revision as of 02:46, October 22, 2008

This template holds information on a political topic; it should be called with the following structure:

{{source
|start date=The date at which the topic started, if there was one
|end date=The date at which the topic ended, if there was one
|themes=The theme(s) of this topic, separated by commas if there's more than one
}}

An example of start and end date would be, if the topic is a bill, the date the bill was introduced in Congress, and the date it was signed into law, respectively.

The order of the fields is not relevant.