Template:Deprecated: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Test)
(Reverted changes because they didn't work for some reason)
Line 3: Line 3:
   bgcolorhex = FFBFBF |
   bgcolorhex = FFBFBF |
   image = File:Emblem-important.png |
   image = File:Emblem-important.png |
   message = This {{#ifeq: {{padleft:|2|{{lc:{{PAGENAME}}}}}}|on|event|function}} is deprecated. This means that its use is discouraged and that it might not exist in future versions{{#if: {{{1|}}}.|, but there should be a more generic way to perform what it does.}} |
   message = This {{#ifeq: {{padleft:|2|{{lc:{{PAGENAME}}}}}}|on|event|function}} is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does. |
  subtext = {{#if: {{{1|}}}Please use [[{{{1}}}]] instead. {{{2|}}}|Please use a custom function instead.}} |
}}
}}
<includeonly>[[Category:Deprecated]]</includeonly><noinclude>
<includeonly>[[Category:Deprecated]]</includeonly><noinclude>
{{Deprecated|alternativeFunction|more text}}
{{Needs_Checking|This should have custom arguments as shown in Template:OOP and replace DeprecatedWithAlt}}
 
{{Template documentation|Functions and events that are being deleted from MTA because there is a more generic way and might not exist in the future.|
 
<syntaxhighlight lang="lua",N><nowiki>{{Deprecated}}</nowiki></syntaxhighlight>
{{Template documentation|Functions and events that are being deleted from MTA because there is a more generic way to perform what they do and might not exist in the future.|
* No parameters.
<nowiki>{{Deprecated|alternativeFunction|more text}}</nowiki>
* If there is an alternative for this function or event, please use [[Template:DeprecatedWithAlt]].
* No mandatory parameters.
* Wiki pages attached to this template will be added to the [[:Category:Deprecated]].|
* If there is an alternative for this function or event, please provide at least the first parameter.
=== See also ===
* Wiki pages attached to this template will be added to the [[:Category:Deprecated]].|}}
* [[Template:DeprecatedWithAlt]]
}}
</noinclude>
</noinclude>

Revision as of 10:11, 26 June 2014

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.


Dialog-information.png This article needs checking.

Reason(s): This should have custom arguments as shown in Template:OOP and replace DeprecatedWithAlt

Applications-office.pngTemplate Documentation

Functions and events that are being deleted from MTA because there is a more generic way and might not exist in the future.

Usage

<nowiki>{{Deprecated}}</nowiki>




See also