Template:Data/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} This template should be put near the beginning of a module's documentation page to link to a module that contains data used by the module, or to link to the module using the data contained. Also See: * {{T|Invokes}} for templates/modules invoking/invoked by modules/templates. * {{T|Require}} for modules requiring/required by other modules. <pre> {{Data|loads=DataModuleName}} or {{Data|ModuleName}} </pre> ==Parameters== ===(1)=== On a module documenta...")
 
No edit summary
 
Line 21: Line 21:


===loads===
===loads===
Optional parameter for use on module documentation mw.pages, used to link to a module which contains data used in the module (without the "Module:" namespace prefix).<br>
Optional parameter for use on module documentation pages, used to link to a module which contains data used in the module (without the "Module:" namespace prefix).<br>
For example:
For example:
<pre>{{Data|data=Sandbox}}</pre>
<pre>{{Data|data=Sandbox}}</pre>

Latest revision as of 11:34, 17 October 2024

This is a documentation subpage for Template:Data.
It contains usage information, categories, and other content that is not part of the original template page.

This template should be put near the beginning of a module's documentation page to link to a module that contains data used by the module, or to link to the module using the data contained.

Also See:

  • {{Invokes}} for templates/modules invoking/invoked by modules/templates.
  • {{Require}} for modules requiring/required by other modules.
{{Data|loads=DataModuleName}}
or
{{Data|ModuleName}}

Parameters

(1)

On a module documentation page, this parameter should be supplied with the page title for a module that uses the data (without the "Module:" namespace prefix).
For example:

{{Data|Sandbox}}

Result:

Template:Data is loaded by Module:Sandbox.

loads

Optional parameter for use on module documentation pages, used to link to a module which contains data used in the module (without the "Module:" namespace prefix).
For example:

{{Data|data=Sandbox}}

Result:

Template:Data loads data from Module:Sandbox.