Difference between revisions of "Template:DeprecatedAndMovedTo"

From EGIWiki
Jump to: navigation, search
(Create a template to deprecate a file and redirect to new location)
 
(Link to Deprecated)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{| style="border:1px solid black; background-color:lightgrey; color: black; padding:5px; font-size:140%; width: 90%; margin: auto;"
 
{| style="border:1px solid black; background-color:lightgrey; color: black; padding:5px; font-size:140%; width: 90%; margin: auto;"
 
| style="padding-right: 15px; padding-left: 15px;" |  
 
| style="padding-right: 15px; padding-left: 15px;" |  
|[[File:Alert.png]] This article is '''Deprecated''' and was moved to {{{new_location|New Location (URL)}}}.  
+
|[[File:Alert.png]] This article is '''Deprecated''' and has been moved to {{{new_location|New Location (URL)}}}.  
 
|}
 
|}
  
Line 9: Line 9:
 
== Usage ==
 
== Usage ==
  
 +
The parameter '''new_location''' is used to provide the address of the new page.
 +
 +
The following code:
 +
<syntaxhighlight lang="moin">
 +
{{DeprecatedAndMovedTo|new_location=https://docs.egi.eu}}
 +
</syntaxhighlight>
 +
 +
Will generate:
 
{{DeprecatedAndMovedTo|new_location=https://docs.egi.eu}}
 
{{DeprecatedAndMovedTo|new_location=https://docs.egi.eu}}
 
</noinclude>
 
</noinclude>
 +
<noinclude>
 +
== Notes ==
 +
If you just want to mark a page as deprecated and replaced by another page you can use https://wiki.egi.eu/wiki/Template:Deprecated

Latest revision as of 11:14, 23 March 2021

Alert.png This article is Deprecated and has been moved to New Location (URL).

Usage[edit]

The parameter new_location is used to provide the address of the new page.

The following code:

{{DeprecatedAndMovedTo|new_location=https://docs.egi.eu}}

Will generate:

Alert.png This article is Deprecated and has been moved to https://docs.egi.eu.



Notes[edit]

If you just want to mark a page as deprecated and replaced by another page you can use https://wiki.egi.eu/wiki/Template:Deprecated