Template:Greener2

From Ballotpedia
Jump to: navigation, search

{{Greener2 | start=Monday, February 28, 2014 7pm CST | end=Monday, February 28, 2014 9pm CST <!-- not required --> | before=This event will happen | during=This event is currently happening <!-- not required if end not specified --> | after=This event happened }}

{{{after}}}
[edit] Template-info.png Template documentation

NOTE: Please use Template:Greener for tensing. This is a legacy version of the template.
Greener2 is no longer being added to pages as of August 27, 2014.

This is a usage page for the {{Greener2}}.

The Greener template is used to create sections of text that will change after a certain date. The code is similar to the election clock template.

It's important to specify the start/end times in a format MediaWiki will be able to interpret. month/day/year hour:minute am/pm timezone works well. Acceptable examples:

  • Monday, February 28, 2014 7pm CST
  • 11/4/2014 7:00pm CST

The timezone is important because the calculations are done based on the server timezone, which is UTC

Usage

Here is the code to copy and fill in:

{{Greener2
| start=
| end= <!-- not required -->
| before=
| during= <!-- not required -->
| after=
}}
{{Greener2
| start=Monday, February 28, 2014 7pm CST
| end=Monday, February 28, 2014 9pm CST       <!-- not required -->
| before=Text to display before the start time
| during=Text to display between the start and end times         <!-- not required if end not specified -->
| after=Text to display after the end date (or start date if end date not specified)
}}

Example

Future Date

{{Greener2
| start=11/4/2014 7:00pm CST
| before= Her term will expire in 2014. 
| after= Her term expired in 2014.
}}

Which will produce:

Her term expired in 2014.

Past Date

{{Greener2
| start=11/4/2013 7:00pm CST
| before= Her term will expire in 2013. 
| after= Her term expired in 2013.
}}

Which will produce:

Her term expired in 2013.