Template:Requires

This is the current revision of this page, as edited by Alex (talk | contribs) at 23:28, 15 October 2024 (Created page with "<includeonly>{{#if:{{{by|}}}|<div class="seealso">'''''{{#replace:{{FULLPAGENAME}}|/doc}}''' is required by [[Module:{{{by}}}]].{{#ifeq:{{lc:{{{category}}}}}|no||{{#ifeq:{{SUBPAGENAME}}|doc||Category:Modules required by modules}}}}''</div>|<div class="seealso">'''''{{#replace:{{FULLPAGENAME}}|/doc}}''' requires [[Module:{{{1}}}]].{{#ifeq:{{lc:{{{category}}}}}|no||{{#ifeq:{{SUBPAGENAME}}|doc||Category:Modules requiring modules}}}}''</div>}}</includeonly><noinclude..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation
This documentation is transcluded from Template:Requires/doc. [edit] [history] [purge]

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.