Difference between revisions of "Template:Moratorium"

m (Fixing it up)
m (Fixing it up)
Line 1: Line 1:
 
{{#iferror: {{#time: U|{{{1}}}}}
 
{{#iferror: {{#time: U|{{{1}}}}}
| {{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|heading=Moratorium|image=Clock icon red.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />Please do not use information from this source until two months after its publication.}}
+
| {{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|image_size=upright=0.2|heading=Moratorium|image=Clock icon red.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />Please do not use information from this source until two months after its publication.}}
 
| {{#ifexpr: {{#time: U|{{{1}}}}} > {{#time: U|now}}
 
| {{#ifexpr: {{#time: U|{{{1}}}}} > {{#time: U|now}}
  
|{{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|heading=Moratorium|image=Clock icon red.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />Please do not use information from this source until {{#time: j F Y|{{{1}}}}}.}}
+
|{{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|image_size=upright=0.2|heading=Moratorium|image=Clock icon red.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />Please do not use information from this source until {{#time: j F Y|{{{1}}}}}.}}
  
|{{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|heading=Moratorium|image=Clock icon red.svg|message=This article's subject matter previously fell under BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />The moratorium '''expired''' on {{#time: j F Y|{{{1}}}}}. Information from this source may now be used in articles on BattleTechWiki.}}
+
|{{Message_box|id=moratorium_box|backgroundcolor=#E6E6E6|bordercolor=#c0c0c0|image_size=upright=0.2|heading=Moratorium|image=Clock icon red.svg|message=This article's subject matter previously fell under BattleTechWiki's [[Policy:Moratorium|Moratorium policy]] on newly-published materials.<br />The moratorium '''expired''' on {{#time: j F Y|{{{1}}}}}. Information from this source may now be used in articles on BattleTechWiki.}}
  
 
}}
 
}}

Revision as of 01:40, 7 March 2022

Purpose

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

{{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

Moratorium date has not yet arrived

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

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

{{moratorium|2009|07|02}}

Will display: