Help:MTA Wiki Specific Templates: Difference between revisions
mNo edit summary |
(Added disabled function/event template) |
||
Line 81: | Line 81: | ||
|}Note: Using this function requires the resource to have the above minimum version declared in the [[Meta.xml|meta.xml]] '''<min_mta_version>''' section. | |}Note: Using this function requires the resource to have the above minimum version declared in the [[Meta.xml|meta.xml]] '''<min_mta_version>''' section. | ||
== Disabled Function/Event == | |||
Use this template when a function or event has been disabled in the code. | |||
'''Format without parameters:''' <nowiki>{{Disabled||}}</nowiki> | |||
<div style="border:1px solid red;background:#E5E5E5;padding:5px;">[[File:Dialog-warning.png]] '''Function has been disabled.'''</div> | |||
'''Format with parameters:''' <nowiki>{{Disabled|Function disabled because it crashes|1337}}</nowiki> | |||
<div style="border:1px solid red;background:#E5E5E5;padding:5px;">[[File:Dialog-warning.png]] '''{{#ifeq: {{padleft:|2|{{lc:{{PAGENAME}}}}}}|on|Event|Function}} has been disabled.''' | |||
* Reason/Note: Function disabled because it crashes | |||
* Bugtracker Issue: [http://bugs.mtasa.com/view.php?id=1337 #1337] | |||
</div> | |||
[[Category:MTA Wiki:Editing]] | [[Category:MTA Wiki:Editing]] |
Revision as of 12:21, 16 November 2011
Information about the specific MTA wiki page templates for this wiki. (They do probably not exists on other Mediawiki wiki's)
Article Needs Checking
These are functions that need to be checked to ensure they do work as specified. If there are any problems with a function, example or the wiki page itself, attach a note to the top of the page and describe the problems.
Format: {{Needs Checking|STATE_PROBLEM_HERE}}
Wiki pages attached to this template will be added to the Category:Needs_Checking
Article Outdated
If the information in the article no longer applies and/or an alternative article exists you can use this template and link to the alternative article. If it is still useful and/or (partially) valid and needs to be updated or no alternative article exists use the 'Article Needs Checking' template.
Format without reason: {{Outdated|}}
Format with reason: {{Outdated|The Reason HERE}}
Reason: The Reason HERE
Wiki pages attached to this template will be added to the Category:Outdated Articles
Function Deprecated
Functions that are being deleted from MTA because there is a more generic way.
Format: {{Deprecated}}
Wiki pages attached to this template will be added to the Category:Deprecated
Function Deprecated With Alternative
Same as above but now with a linked alternative function.
Format: {{DeprecatedWithAlt|functionAlternative|More Text}}
Please use functionAlternative instead. More Text
Wiki pages attached to this template will be added to the Category:Deprecated
Function Needs Example
Use this template when a function or event needs an example.
Format: {{Needs Example}}
Wiki pages attached to this template will also be added to the Category:Needs Example
Warning
Format: {{Warning|Warning info here}}
Note
Note box is used for notes. The note box floats always right in the page/article.
Format: {{Note box|Note info here}}
Module Only Function
Module only function template, inform readers that this function is module specific and not build-in to MTA itself. Note: You only have to add the module name not the 'Modules/' prefix.
Format: {{ModuleFunction|Module Name}}
Function/Event Requirements
Inform the reader that this function or event requires a specific MTA build.
Format: {{Requirements|1.1.1-9.serverbuild|1.1.1-9.clientbuild}}
Minimum supported server | 1.1.1-9.serverbuild |
---|---|
Minimum supported client | 1.1.1-9.clientbuild |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section.
Disabled Function/Event
Use this template when a function or event has been disabled in the code.
Format without parameters: {{Disabled||}}
Format with parameters: {{Disabled|Function disabled because it crashes|1337}}
- Reason/Note: Function disabled because it crashes
- Bugtracker Issue: #1337