Template:Requires/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 22: Line 22:


===by===
===by===
Optional parameter for use on module documentation mw.pages, used to link to a module requiring the module (without the "Module:" namespace prefix).<br>
Optional parameter for use on module documentation pages, used to link to a module requiring the module (without the "Module:" namespace prefix).<br>
For example:
For example:
<pre>
<pre>

Latest revision as of 11:55, 17 October 2024

This is a documentation subpage for Template:Requires.
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 requires the module, or to link to the module required by the module.

Also See:

  • {{Data}} for modules containing/loading data for/from other modules.
  • {{Invokes}} for templates/modules invoking/invoked by modules/templates.
{{Require|ModuleName}}
or
{{Require|by=ModuleName}}

Parameters

(1)

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

{{Require|Sandbox}}

Result:

Template:Requires requires Module:Sandbox.

by

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

{{Require|by=Sandbox}}

Result:

Template:Requires is required by Module:Sandbox.