Template:Main

From OtherX
Revision as of 15:02, 20 January 2024 by OtherXAdmin (talk | contribs) (Created page with "{{#invoke:Main article|main}}<noinclude> {{/doc}}{{PAGENAME}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Main/doc. [edit] [history] [purge]
Template:Main invokes function main in Module:Main article using Lua.
{{#ifeq:Template|Module|
{{#replace:Template:Main|/doc}} is invoked by Template:Main article.{{#ifeq:{{{category}}}|no||{{#ifeq:Main|doc||}}}}
|
{{#replace:Template:Main|/doc}} invokes Module:Main article using Lua.{{#ifeq:{{{category}}}|no||{{#ifeq:Main|doc||}}}}
}}

This template can be used to link to another relevant article or set of articles when there is no way to fluently link the article in prose.

Good example
==Strategies==
{{Main|/Strategies}}
Abyssal demons are weak to slash.
Bad example

Below, it makes more sense to simply link Guthix in the paragraph:

==Guthix==
{{Main|Guthix}}
Guthix is a god.

{{#if:||==Template data==}}

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

<templatedata> { "params": { "1": { "label": "Article", "description": "Article to link to", "example": "/Strategies", "type": "string", "required": true } }, "description": "This template can be used to link to another relevant article or set of articles when there is no way to fluently link the article in prose.", "format": "inline" } </templatedata>

{{#if:||}}