Template:Topic: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Removed SMW property settings)
(Text => String)
Line 10: Line 10:


The order of the fields is not relevant.
The order of the fields is not relevant.
{{#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 String (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 {{{start date}}}]]|unknown start date}} and {{#if:{{{end date|}}}|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}}.

Revision as of 20:42, November 10, 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.