Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:Moratorium/doc"

m
m
 
Line 27: Line 27:
 
Will display:
 
Will display:
 
{{moratorium|2009|07|02}}
 
{{moratorium|2009|07|02}}
 +
 +
== Tracking categories ==
 +
This template gives the page it's on {{clc|Sources under Moratorium}}
 +
 +
== Semantic properties ==
 +
This template sets the Semantic property of [[Property:Moratorium Date]]
  
 
<includeonly>
 
<includeonly>

Latest revision as of 15:03, 6 May 2024

Purpose[edit]

This template will automatically display one of two moratorium statements based on whether a particular date has been reached or not. It should be used when an article falls under BattleTechWiki's moratorium policy guidelines. In general, this is for a new product that has just been released and lasts for two months after release.

Usage[edit]

{{Moratorium|year|month|day}}

  • Parameters 1, 2, and 3 are the Year, Month, and Day that the Moratorium expires (normally 2 months from the date of release).
    • If the day is omitted, the template will activate on the first day of the specified month.
    • If the month is also omitted, the template will activate on 1 January of the specified year.
    • If the year is also omitted, the template will activate immediately.

Examples[edit]

Moratorium date has not yet arrived[edit]

When the moratorium date has not yet arrived, the template displays the following message and adds the page to the Category:Sources under Moratorium:

{{moratorium|2037|07|02}}

Will display:

Moratorium date has arrived[edit]

When the moratorium date has arrived, the template displays a different message.

{{moratorium|2009|07|02}}

Will display:

Tracking categories[edit]

This template gives the page it's on Category:Sources under Moratorium (2)

Semantic properties[edit]

This template sets the Semantic property of Property:Moratorium Date