Template:Topic: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
No edit summary
No edit summary
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 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 [[Has start date::{{{start date}}}]]|unknown start date}} and {{#if:{{{end date|}}}|end date [[Has end date::{{{end date}}}]]|unknown end date}}.

Revision as of 02:25, November 14, 2014

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.

Error: field name "Start date" contains whitespaces. Whitespaces of any kind are not allowed; consider using underscores ("_") instead.