Difference between revisions of "Template:Moratorium"

m (color change)
m (Fixing it up)
Line 1: Line 1:
 
{{#iferror: {{#time: U|{{{1}}}}}
 
{{#iferror: {{#time: U|{{{1}}}}}
| {{Message_box|id=Usrcvtext|backgroundcolor=#EFEFFF|heading=Moratorium|image=Crystal Clear app clock.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium]] 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|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]] 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=Usrcvtext|backgroundcolor=#EFEFFF|heading=Moratorium|image=Crystal Clear app clock.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium]] 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=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium]] on newly-published materials.<br />Please do not use information from this source until {{#time: j F Y|{{{1}}}}}.}}
  
|{{Message_box|id=Usrcvtext|backgroundcolor=#EFEFFF|heading=Moratorium|image=Crystal Clear app clock.svg|message=This article's subject matter previously fell under BattleTechWiki's [[Policy:Moratorium]] 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|heading=Moratorium|image=Clock icon red.svg|message=This article's subject matter previously fell under BattleTechWiki's [[Policy:Moratorium]] 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.}}
  
 
}}
 
}}
 
}}
 
}}
 +
 +
 
<includeonly>
 
<includeonly>
 
{{CatMainOther |[[Category:Sources under Moratorium]]}}
 
{{CatMainOther |[[Category:Sources under Moratorium]]}}
Line 14: Line 16:
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
+
{{/doc}}
----
+
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
 
==Purpose==
 
The '''moratorium''' template should be used when an article falls under BattleTechWiki's [[Policy:Moratorium|moratorium policy]] guidelines. In general, this is for a new product that has just been released and lasts for two months after release.
 
 
 
==Usage==
 
Cut and paste '''<nowiki>{{moratorium|the ending date of the moratorium}}</nowiki>''' into the top of the article. For example:
 
<pre>
 
{{moratorium|July 2, 2037}}
 
</pre>
 
 
 
Will display:
 
{{Message_box|id=Usrcvtext|backgroundcolor=#EFEFFF|heading=Moratorium|image=Crystal Clear app clock.svg|message=As a newly-published commercial product or download, this article's subject matter falls under the purview of BattleTechWiki's [[Policy:Moratorium]] on newly-published materials.<br />Please do not use information from this source until {{#time: j F Y|July 2, 2037}}.}}
 
 
 
 
 
 
 
When the moratorium date has arrived, the template displays a different message. For example:
 
<pre>
 
{{moratorium|July 2, 2009}}
 
</pre>
 
 
 
Will display:
 
{{Message_box|id=Usrcvtext|backgroundcolor=#EFEFFF|heading=Moratorium|image=Crystal Clear app clock.svg|message=This article's subject matter previously fell under BattleTechWiki's [[Policy:Moratorium]] on newly-published materials.<br />The moratorium expired on {{#time: j F Y|July 2, 2009}}. Information from this source may now be used in articles on BattleTechWiki.}}
 
 
 
[[Category:Templates|Moratorium]]
 
 
</noinclude>
 
</noinclude>

Revision as of 13:50, 23 June 2021



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:





Tracking categories

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

Semantic properties

This template sets the Semantic property of Property:Moratorium Date