You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Template:Archive: Difference between revisions
Jump to navigation
Jump to search
imported>Quiddity m (header) |
imported>Urbanecm |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Warn | {{Warn | ||
|content='''This page contains historical information'''. {{{reason|It is probably no longer true.}}}{{#if:{{{note|}}}|<hr>{{{note}}}}}{{#if:{{{year|{{{date|}}}}}} | |content='''This page contains historical information'''. {{{reason|It is probably no longer true.}}}{{#if:{{{note|}}}|<hr>{{{note}}}}}{{#if:{{{year|{{{date|}}}}}} | ||
|<i style="display: inline-block; vertical-align: middle; padding: | |<i style="display: inline-block; vertical-align: middle; padding: 0; font-size: 2em;"> </i><span style="display: inline-block; float: right; margin: /*negate mbox-text padding */-0.125em 0; padding: .5em 2em; font-weight: bold; font-size: 2em; text-align: center; line-height: 1; letter-spacing: -1px; background-color: #111; background-image: linear-gradient(to right, /*rainbow*/ rgba(255, 0, 0, 0.3), rgba(255, 255, 0, 0.3), rgba(0, 255, 0, 0.3), rgba(0, 255, 255, 0.3), rgba(0, 0, 255, 0.3), rgba(255, 0, 255, 0.3), rgba(255, 0, 0, 0.3)); color: #fff; text-shadow: 0 0 20px deepskyblue, 0 0 20px deepskyblue, 0 0 20px deepskyblue, 0 0 30px deepskyblue, 0 0 45px deepskyblue, 0 0 50px deepskyblue, 0 0 55px deepskyblue, 0 0 60px deepskyblue, 0 0 70px deepskyblue;" title="This page was last updated around {{{year|{{{date|}}}}}}. {{#invoke:Archive-timeline|get_line|{{{year|{{{date|}}}}}}}}">{{{year|{{{date|}}}}}}</span> | ||
}} | }} | ||
|image=Vista-file-manager.png | |image=Vista-file-manager.png | ||
Line 9: | Line 9: | ||
{{tcall}} | {{tcall}} | ||
== Example == | == Example == | ||
{{#tag:pre| | |||
<nowiki>{{</nowiki>Archive{{!}}year={{#time:Y|now - 2 years}}<nowiki>}}</nowiki> | |||
}} | |||
{{Archive|year={{#time:Y|now - 2 years}}|nocat=yes}} | |||
{{#tag:pre| | |||
<nowiki>{{</nowiki>Archive{{!}}year={{#time:Y|now - 3 years}}<nowiki>}}</nowiki> | |||
}} | |||
{{Archive|year={{#time:Y|now - 3 years}}|nocat=yes}} | |||
<pre>{{Archive|year=2015}}</pre> | |||
{{Archive|year=2015|nocat=yes}} | |||
<pre>{{Archive|year=1950}}</pre> | <pre>{{Archive|year=1950}}</pre> | ||
{{Archive|year=1950|nocat=yes}} | {{Archive|year=1950|nocat=yes}} | ||
<pre>{{Archive|reason=Foo}}</pre> | |||
{{Archive|reason=Foo|nocat=yes}} | |||
<pre>{{Archive|note=Foo}}</pre> | |||
{{Archive|note=Foo|nocat=yes}} | |||
== Parameters == | == Parameters == | ||
<templatedata> | <templatedata> | ||
Line 47: | Line 68: | ||
* {{tl|Old-doc}} | * {{tl|Old-doc}} | ||
* {{tl|Outdated-inline}} | * {{tl|Outdated-inline}} | ||
* [[Module:Archive-timeline]] | |||
Latest revision as of 10:20, 17 May 2023
![]() | This page contains historical information. It is probably no longer true. |
Usage
- This template categorizes the host page in Category:Archive.
{{Archive}}
Example
{{Archive|year=2021}}
![]() | This page contains historical information. It is probably no longer true. 2021 |
{{Archive|year=2020}}
![]() | This page contains historical information. It is probably no longer true. 2020 |
{{Archive|year=2015}}
![]() | This page contains historical information. It is probably no longer true. 2015 |
{{Archive|year=1950}}
![]() | This page contains historical information. It is probably no longer true. 1950 |
{{Archive|reason=Foo}}
![]() | This page contains historical information. Foo |
{{Archive|note=Foo}}
![]() | This page contains historical information. It is probably no longer true. Foo |
Parameters
<templatedata> { "params": { "reason": { "label": "Reason", "description": "Optional reason why it is archived (default: Historical)", "type": "string" }, "note": { "label": "Note", "description": "Extra content to display on the second line", "type": "content" }, "year": { "aliases": [ "date" ], "label": "Year", "description": "Optional estimated year for the reader's context. (e.g. 2012, 2010, 1980, etc.)", "type": "string" } }, "paramOrder": [ "reason", "note", "year" ], "format": "inline" } </templatedata>