Template:Topic: Difference between revisions

From Discourse DB
Jump to navigation Jump to search
(Updated)
(Improved display of dates)
Line 1: Line 1:
<noinclude>This template holds information on a political topic; it should be called in the following format:
<noinclude>This template holds information on a political topic. It should be called in the following format:
<pre>{{Topic
<pre>{{Topic
|Start date=The date at which the topic started, if there was one
|Start date=The date at which the topic started, if there was one
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 {{#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}}.


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

Revision as of 21:26, April 27, 2010

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.