Difference between revisions of "Template:Archived extension"

From RobotX
Jump to navigation Jump to search
Mediawiki>Shirayuki
m
 
m (Text replacement - "<tvar|1>" to "")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
<languages/>
+
 
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:
 
| =
 
| =
 
{{mbox
 
{{mbox
Line 7: Line 7:
 
| image      = [[File:Replacement filing cabinet.svg|50px|link=]]
 
| image      = [[File:Replacement filing cabinet.svg|50px|link=]]
 
| textstyle  =  
 
| textstyle  =  
| text      = <div style="font-size:16pt; color:#555; margin:10px; margin-{{dir|{{pagelang}}|right|left}}:0;">'''<translate><!--T:1--> This extension has been archived.</translate>'''</div>
+
| text      = <div style="font-size:16pt; color:#555; margin:10px; margin-{{dir|{{pagelang}}|right|left}}:0;">''' This extension has been archived.'''</div>
{{#if:{{{reason|}}}|{{{reason|}}}|<translate><!--T:2--> This extension has not been maintained for some time, and no longer supports recent releases of MediaWiki.</translate>}}
+
{{#if:{{{reason|}}}|{{{reason|}}}| This extension has not been maintained for some time, and no longer supports recent releases of MediaWiki.}}
 
{{#if:{{{2|}}}| <br />
 
{{#if:{{{2|}}}| <br />
<translate>
+
 
<!--T:3-->
+
 
 
The following other choices are available:
 
The following other choices are available:
</translate>
+
 
 
* {{ll|Extension:{{{2}}}|{{{2}}}}}{{#if:{{{3|}}}|
 
* {{ll|Extension:{{{2}}}|{{{2}}}}}{{#if:{{{3|}}}|
 
* {{ll|Extension:{{{3}}}|{{{3}}}}}
 
* {{ll|Extension:{{{3}}}|{{{3}}}}}
 
}} }}
 
}} }}
<small>[[Special:PermanentLink/{{{1}}}|<translate><!--T:4--> To see the page before archival, click here.</translate>]]</small>
+
<small>[[Special:PermanentLink/{{{1}}}| To see the page before archival, click here.]]</small>
}}<includeonly>{{#if:{{{nocat|}}}||[[Category:Archived extensions{{#translation:}}|{{PAGENAME}}]]{{#if:{{{1|}}}||[[Category:Archived extensions without an oldid]]}}}}</includeonly>
+
}}<includeonly>{{#if:{{{nocat|}}}||[[Category:Archived extensions|{{PAGENAME}}]]{{#if:{{{1|}}}||[[Category:Archived extensions without an oldid]]}}}}</includeonly>
 
| #default=
 
| #default=
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Archived extension|noshift=1}}
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Archived extension|noshift=1}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation|content=
 
{{Documentation|content=
<translate>
 
==Purpose== <!--T:5-->
 
  
<!--T:6-->
+
==Purpose==
For archiving extensions in a way that removes them from standard view, but is still accessible in revisions history.</translate>
+
 
<translate>
+
 
<!--T:13-->
+
For archiving extensions in a way that removes them from standard view, but is still accessible in revisions history.
This allows the wiki to both respect the original contributor by not completely removing their work, while reducing the amount of content that may inadvertently cause confusion or problems for sysadmins and developers.</translate>
+
 
<translate>
+
 
<!--T:14-->
+
This allows the wiki to both respect the original contributor by not completely removing their work, while reducing the amount of content that may inadvertently cause confusion or problems for sysadmins and developers.
Also add the page to <tvar|1>{{ll|Category:Archived extensions}}</>.
+
 
 +
 
 +
Also add the page to {{ll|Category:Archived extensions}}.
 +
 
 +
== Usage ==
  
== Usage == <!--T:7-->
+
{{tlx|Archived extension|oldID|reason= Depended on a service which no longer exists.}}
</translate>
+
{{Archived extension|oldID|reason= Depended on a service which no longer exists.|nocat=true}}
{{tlx|Archived extension|oldID|reason=<translate><!--T:8--> Depended on a service which no longer exists.</translate>}}
 
{{Archived extension|oldID|reason=<translate><!--T:9--> Depended on a service which no longer exists.</translate>|nocat=true}}
 
  
 
{{tlx|Archived extension|oldID|Alternative1|Alternative2|<nowiki>reason=Depended on a service which no longer exists.</nowiki>}}
 
{{tlx|Archived extension|oldID|Alternative1|Alternative2|<nowiki>reason=Depended on a service which no longer exists.</nowiki>}}
Line 44: Line 44:
  
 
;oldID
 
;oldID
:<translate><!--T:10--> Revision ID of the last revision which contained the extension's information</translate>
+
: Revision ID of the last revision which contained the extension's information
:<translate><!--T:15--> Can be found in the URL by visiting that revision from the page's history screen</translate>
+
: Can be found in the URL by visiting that revision from the page's history screen
:<translate><!--T:16--> If no oldid is provided, the page will automatically be placed in the category <tvar|1>{{ll|Category:Archived extensions without an oldid}}</>.</translate>
+
: If no oldid is provided, the page will automatically be placed in the category {{ll|Category:Archived extensions without an oldid}}.
  
 
;Alternative1, Alternative2
 
;Alternative1, Alternative2
:<translate><!--T:11--> Alternative extensions that perform similar functions</translate>
+
: Alternative extensions that perform similar functions
  
 
;reason=
 
;reason=
:<translate><!--T:12--> To provide a different explanation for why the extension is being archived.</translate>
+
: To provide a different explanation for why the extension is being archived.
  
 
<templatedata>
 
<templatedata>
Line 102: Line 102:
 
}}
 
}}
  
[[Category:Extension templates{{#translation:}}]]
+
[[Category:Extension templates]]
[[Category:Archival templates{{#translation:}}]]
+
[[Category:Archival templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:19, 21 December 2019


Template documentation

Purpose

For archiving extensions in a way that removes them from standard view, but is still accessible in revisions history.


This allows the wiki to both respect the original contributor by not completely removing their work, while reducing the amount of content that may inadvertently cause confusion or problems for sysadmins and developers.


Also add the page to Category:Archived extensions .

Usage

{{Archived extension|oldID}}

{{Archived extension|oldID|Alternative1|Alternative2|reason=Depended on a service which no longer exists.}}

oldID
Revision ID of the last revision which contained the extension's information
Can be found in the URL by visiting that revision from the page's history screen
If no oldid is provided, the page will automatically be placed in the category Category:Archived extensions without an oldid .
Alternative1, Alternative2
Alternative extensions that perform similar functions
reason=
To provide a different explanation for why the extension is being archived.

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Old ID1

Revision ID of the page before the archival

Example
2891520
Numberrequired
Alternative 12

Optional alternative 1

Pageoptional
Alternative 23

Optional alternative 2

Pageoptional
Archival reasonreason

Reason for the archival

Example
Depended on a service which no longer exists.
Auto value
This extension has not been maintained for some time, and no longer supports recent releases of MediaWiki.
Stringsuggested
Should categorizenocat

Determines if the page the template is used on should be included in [[Category:Archived extensions]]

Auto value
false
Booleanoptional