Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Template reworked)
(Rework)
 
Line 1: Line 1:
<includeonly>
<ul>
<ul>
<li>[[addResourceConfig]]</li>
{{#if: {{{1|}}}
<li>[[addResourceMap]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | client
<li>[[callRemote]]</li>
|
<li>[[copyResource]]</li>
    <!-- CLIENT functions -->
<li>[[createResource]]</li>
    <li>[[getResourceGUIElement]]</li>
<li>[[deleteResource]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | server
<li>[[getResourceACLRequests]]</li>
|
<li>[[getResourceInfo]]</li>
    <!-- SERVER functions -->
<li>[[getResourceLastStartTime]]</li>
    <li>[[addResourceConfig]]</li>
<li>[[getResourceLoadFailureReason]]</li>
    <li>[[addResourceMap]]</li>
<li>[[getResourceLoadTime]]</li>
    <li>[[callRemote]]</li>
<li>[[getResourceMapRootElement]]</li>
    <li>[[copyResource]]</li>
<li>[[getResourceOrganizationalPath]]</li>
    <li>[[createResource]]</li>
<li>[[getResources]]</li>
    <li>[[deleteResource]]</li>
<li>[[isResourceArchived]]</li>
    <li>[[getResourceACLRequests]]</li>
<li>[[isResourceProtected]]</li>
    <li>[[getResourceInfo]]</li>
<li>[[refreshResources]]</li>
    <li>[[getResourceLastStartTime]]</li>
<li>[[removeResourceFile]]</li>
    <li>[[getResourceLoadFailureReason]]</li>
<li>[[renameResource]]</li>
    <li>[[getResourceLoadTime]]</li>
<li>[[restartResource]]</li>
    <li>[[getResourceMapRootElement]]</li>
<li>[[setResourceInfo]]</li>
    <li>[[getResourceOrganizationalPath]]</li>
<li>[[startResource]]</li>
    <li>[[getResources]]</li>
<li>[[stopResource]]</li>
    <li>[[isResourceArchived]]</li>
<li>[[updateResourceACLRequest]]</li>
    <li>[[isResourceProtected]]</li>
    <li>[[refreshResources]]</li>
    <li>[[removeResourceFile]]</li>
    <li>[[renameResource]]</li>
    <li>[[restartResource]]</li>
    <li>[[setResourceInfo]]</li>
    <li>[[startResource]]</li>
    <li>[[stopResource]]</li>
    <li>[[updateResourceACLRequest]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
 
<!-- SHARED functions-->
<li>[[abortRemoteRequest]]</li>
<li>[[call]]</li>
<li>[[fetchRemote]]</li>
<li>[[getResourceConfig]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceExportedFunctions]]</li>
<li>[[getResourceFromName]]</li>
<li>[[getResourceName]]</li>
<li>[[getResourceRootElement]]</li>
<li>[[getResourceState]]</li>
<li>[[getThisResource]]</li>
<li>[[getRemoteRequests]]</li>
<li>[[getRemoteRequestInfo]]</li>
</ul>
</ul>
</includeonly>


'''Shared'''
<noinclude>
{{Shared_resource_functions}}
{{Functions list info}}
 
[[Category:Functions templates]]</noinclude>
<noinclude>[[Category:Functions templates]]</noinclude>

Latest revision as of 17:54, 6 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.