Template:Infobox place/years active
This is a helper template for Template:Infobox place, it takes a start year, end year, and status to generate one row in the infobox about the "years active."
Behavior
The examples below are embedded in empty infoboxes for accurate table row display.
Only if one or both of the years are provided does this template display anything.
If the first year is not provided "????" displays instead (the assumption being that if years active is being displayed there is at very least a start point, even if it is not known).
{{Infobox place/years active||2021|Active}}
Years active | ????–present |
---|---|
If the second year is not provided the status is checked—a place with an "Active" status displays "present"—any other status displays the provided end year or "????" if none was provided.
{{Infobox place/years active|1995||Active}}
Years active | 1995–present |
---|---|
{{Infobox place/years active|2004|2018|Closed}}
Years active | 2004–2018 |
---|---|
{{Infobox place/years active|1999||Closed}}
Years active | 1999–???? |
---|---|
{{Infobox place/years active|2015||Unknown}}
Years active | 2015–???? |
---|---|