Template:Topic: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Further improvements to queries)
(Slight improvement)
Line 14: Line 14:
Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[Has theme::x]]}}.
Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[Has theme::x]]}}.


{{#ask:[[Addresses topic::{{PAGENAME}}]][[Category:Positions]]|format=topiclayout}}
{{#ask:[[Category:Positions]][[Addresses topic::{{PAGENAME}}]]|format=topiclayout}}


<font size="+1">All items that address this topic ([[Has number of opinion items::{{#ask:[[Addresses topic::{{PAGENAME}}]][[Category:Items]]|format=count}}]] total)</font>
<font size="+1">All items that address this topic ([[Has number of opinion items::{{#ask:[[Addresses topic::{{PAGENAME}}]][[Category:Items]]|format=count}}]] total)</font>

Revision as of 16:10, January 2, 2009

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

{{Topic
|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.