Template:Resource functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Fixed inconsistencies for webscraping)
(Rework)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<ul>
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[getResourceGUIElement]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[addResourceConfig]]</li>
    <li>[[addResourceMap]]</li>
    <li>[[callRemote]]</li>
    <li>[[copyResource]]</li>
    <li>[[createResource]]</li>
    <li>[[deleteResource]]</li>
    <li>[[getResourceACLRequests]]</li>
    <li>[[getResourceInfo]]</li>
    <li>[[getResourceLastStartTime]]</li>
    <li>[[getResourceLoadFailureReason]]</li>
    <li>[[getResourceLoadTime]]</li>
    <li>[[getResourceMapRootElement]]</li>
    <li>[[getResourceOrganizationalPath]]</li>
    <li>[[getResources]]</li>
    <li>[[isResourceArchived]]</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>[[abortRemoteRequest]]</li>
<li>[[addResourceConfig]]</li>
<li>[[addResourceMap]]</li>
<li>[[call]]</li>
<li>[[call]]</li>
<li>[[callRemote]]</li>
<li>[[copyResource]]</li>
<li>[[createResource]]</li>
<li>[[deleteResource]]</li>
<li>[[fetchRemote]]</li>
<li>[[fetchRemote]]</li>
<li>[[getRemoteRequestInfo]]</li>
<li>[[getRemoteRequests]]</li>
<li>[[getResourceACLRequests]]</li>
<li>[[getResourceConfig]]</li>
<li>[[getResourceConfig]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceDynamicElementRoot]]</li>
<li>[[getResourceExportedFunctions]]</li>
<li>[[getResourceExportedFunctions]]</li>
<li>[[getResourceFromName]]</li>
<li>[[getResourceFromName]]</li>
<li>[[getResourceInfo]]</li>
<li>[[getResourceLastStartTime]]</li>
<li>[[getResourceLoadFailureReason]]</li>
<li>[[getResourceLoadTime]]</li>
<li>[[getResourceMapRootElement]]</li>
<li>[[getResourceName]]</li>
<li>[[getResourceName]]</li>
<li>[[getResourceOrganizationalPath]]</li>
<li>[[getResourceRootElement]]</li>
<li>[[getResourceRootElement]]</li>
<li>[[getResources]]</li>
<li>[[getResourceState]]</li>
<li>[[getResourceState]]</li>
<li>[[getThisResource]]</li>
<li>[[getThisResource]]</li>
<li>[[isResourceArchived]]</li>
<li>[[getRemoteRequests]]</li>
<li>[[isResourceProtected]]</li>
<li>[[getRemoteRequestInfo]]</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>
</ul>
</ul>
</includeonly>


<noinclude>[[Category:Functions templates]]</noinclude>
<noinclude>
{{Functions list info}}
[[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.