Template:Topic: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Changed query)
(Removed SMW property settings)
Line 12: Line 12:
{{#cargo_declare:_table=Topics|Start_date=Date|End_date=Date|Themes=List (,) of Text (allowed values=Africa, Asia, International relations, Middle East, Terrorism, United Kingdom domestic politics, United States domestic politics, War)}}
{{#cargo_declare:_table=Topics|Start_date=Date|End_date=Date|Themes=List (,) of Text (allowed values=Africa, Asia, International relations, Middle East, Terrorism, United Kingdom domestic politics, United States domestic politics, War)}}
</noinclude><includeonly>{{#cargo_store:_table=Topics|Start_date={{{start date|}}}|End_date={{{end date|}}}|Themes={{{Themes|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=Topics|Start_date={{{start date|}}}|End_date={{{end date|}}}|Themes={{{Themes|}}} }}
This is a [[:Category:Topics|topic]], with {{#if:{{{start date|}}}|start date [[Has start date::{{{start date}}}]]|unknown start date}} and {{#if:{{{end date|}}}|end date [[Has end date::{{{end date}}}]]|unknown end date}}.
This is a [[:Category:Topics|topic]], with {{#if:{{{start date|}}}|start date {{{start date}}}]]|unknown start date}} and {{#if:{{{end date|}}}|end date {{{end date}}}|unknown end date}}.


Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[Has theme::x]]}}.
Its theme(s) are {{#arraymap:{{{Themes|}}}|,|x|[[x]]}}.


==Summary of positions for this topic==
==Summary of positions for this topic==

Revision as of 17:49, August 7, 2015

This template holds information on a political topic. It should be called in the following format:

{{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. This template defines the table "Topics". View table.