Template:Edit button/doc

From Brighter Shores Wiki
Revision as of 12:41, 24 March 2024 by InvalidCards (talk | contribs) (Created page with "{{documentation}} Creates a link to edit a page. In lua modules, use Module:Edit button. ==Usage== <pre>{{Edit button}} {{Edit button|page name}} {{Edit button|page name|alt text}} {{Edit button|page=page name|text=alt text}} </pre> ;page name The named parameter <code>page</code> or the first unnamed parameter (<code>1</code>) can be used to set the page name. Include namespaces. By default, uses the current page. ;alt text The named parameter <code>text</code...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Edit button.
It contains usage information, categories, and other content that is not part of the original template page.

Creates a link to edit a page.

In lua modules, use Module:Edit button.

Usage

{{Edit button}}
{{Edit button|page name}}
{{Edit button|page name|alt text}}

{{Edit button|page=page name|text=alt text}}
page name

The named parameter page or the first unnamed parameter (1) can be used to set the page name. Include namespaces. By default, uses the current page.

alt text

The named parameter text or the second unnamed parameter (2) can be used to set the link text. By default, uses edit.

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.

Creates a link to a page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page namepage 1

The page name to link to. Include namespace.

Page nameoptional
Link texttext 2

The link text to display. Default edit.

Default
edit
Unknownoptional