Template:Anchor/doc
Appearance
| Documentation subpage |
|---|
| View this documentation's related template: Template:Anchor (edit). |
| Template styles: CSS styles (edit). |
Example(s)
[edit source]{{anchor|variables|page=Controlling output format}}gives:
{{anchor|variables|use some Variables|page=Controlling output format}}gives:
See Also
[edit source]{{Anc}}, the partner template to this one, used to set (and auto-format) named anchors.
Template Data
[edit source]Links to an HTML anchor (named anchor) as set by the {Anc} template, which automatically pre-formats the anchor, forcing lowercase and replacing spaces with dashes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Enter the name for the anchor, omitting any special characters as documented in the {anc} template. Note that spaces are auto-replaced by dashes, and lowercase is forced, only for the link itself. | String | optional |
| 2 | 2 | Enter any text to override the display text, which overrides the link (display) text only. | String | optional |
| page | page | If the anc (anchor using the {anc} template) isn't located on the same page, specify the page (including namespaces). | Page name | optional |