Template:Mainonly/doc

Revision as of 16:33, 13 January 2024 by OtherXAdmin (talk | contribs) (Created page with "{{Documentation}} The '''Mainonly''' template allows a particular piece of text to only be displayed when included in the main (article) namespace. Primarily used when adding category links or categories to templates. ==Usage== {{T|Mainonly|text}} Example not available. {{TemplateData|<templatedata> { "params": { "1": { "label": "Text", "description": "Text to be displayed only in the main (article) namespace.", "type": "string", "required": true }...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File:Information icon-grey.svg
This is a documentation subpage for Template:Mainonly.
It contains usage information, categories, and other content that is not part of the original template page.

The Mainonly template allows a particular piece of text to only be displayed when included in the main (article) namespace. Primarily used when adding category links or categories to templates.

Usage

{{Mainonly|text}}

Example not available.

{{#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": "Text", "description": "Text to be displayed only in the main (article) namespace.", "type": "string", "required": true } }, "format": "inline", "description": "This template allows a particular piece of text to only be displayed when included in the main (article) namespace." } </templatedata>

{{#if:||}}

See also