Difference between revisions of "Template:Archive"

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
imported>Quiddity
m (header)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Warn
{{Warn
|content='''This page contains historical information'''. It is probably no longer true.{{#if:{{{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: .5em 0; font-size: 2em;">&nbsp;</i><span style="display: inline-block; float: right; margin: /*negate mbox-text padding */-0.125em -0.45em; padding: .5em 2em; font-weight: bold; font-size: 2em; text-align: center; line-height: 2; 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;">{{{date}}}</span>
|<i style="display: inline-block; vertical-align: middle; padding: .5em 0; font-size: 2em;">&nbsp;</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: 2; 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
}}<includeonly>[[Category:Archive]]</includeonly><noinclude>
}}<includeonly>{{#if: {{{nocat|}}}||[[Category:Archive]]}}</includeonly><noinclude>
== Usage ==
== Usage ==
{{Categorizes-in|Archive}}
{{Categorizes-in|Archive}}


{{tcall}}
{{tcall}}
 
== Example ==
<pre>{{Archive|date=1950s}}</pre>
<pre>{{Archive|year=1950}}</pre>
{{Archive|date=1950s}}
{{Archive|year=1950|nocat=yes}}
== Parameters ==
== Parameters ==
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"date": {
"reason": {
"label": "Date",
"label": "Reason",
"type": "string",
"description": "Optional reason why it is archived (default: Historical)",
"description": "Optional parameter with a rough date indication for the reader's context (e.g. July 2012, 2010, 1980s, etc.)"
"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>
</templatedata>
Line 27: Line 46:
== See also ==
== See also ==
* {{tl|Old-doc}}
* {{tl|Old-doc}}
* {{tl|Outdated-inline}}


[[Category:Templates]]
[[Category:Templates]]
[[Category:Article message boxes]]
[[Category:Article message boxes]]
</noinclude>
</noinclude>

Latest revision as of 06:37, 12 September 2021

Usage

This template categorizes the host page in Category:Archive.
{{Archive}}

Example

{{Archive|year=1950}}

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>

See also