Template:Invokes/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 23: Line 23:


===page===
===page===
Optional parameter for use on module documentation mw.pages. It allows overriding the default behaviour (linking to <code><nowiki>[[Template:{{{1}}}]]</nowiki></code>) to instead link to a template page that's outside of the Template namespace. The parameter should be supplied with the full page title, including any namespace prefix.
Optional parameter for use on module documentation pages. It allows overriding the default behaviour (linking to <code><nowiki>[[Template:{{{1}}}]]</nowiki></code>) to instead link to a template page that's outside of the Template namespace. The parameter should be supplied with the full page title, including any namespace prefix.


For example:
For example:

Latest revision as of 11:44, 17 October 2024

This is a documentation subpage for Template:Invokes.
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 template or module's documentation page to link to a module that the template invokes, or a template that invokes the module (respectively).

{{Invokes|ModuleName}}
or
{{Invokes|TemplateName}}

Parameters

(1)

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

{{Invokes|Sandbox}}

Result (if on the Template:Invokes page):

Template:Invokes invokes Module:Sandbox using Lua.

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

{{Invokes|Sandbox}}

Result (if on the Module:Sandbox page):

Module:Sandbox is invoked by Template:Sandbox.

page

Optional parameter for use on module documentation pages. It allows overriding the default behaviour (linking to [[Template:{{{1}}}]]) to instead link to a template page that's outside of the Template namespace. The parameter should be supplied with the full page title, including any namespace prefix.

For example:

{{Invokes|page=Calculator:Skill calculators/Template}}

Result (if on the Module:Skill calc page):

Module:Skill calc is invoked by Calculator:Skill calculators/Template.