Template:autostrike/doc
Appearance
This template is used for adding a strikethrough if the page exists, or displays a normal red link if it doesn't.
Usage
[change]{{autostrike | 1 = Page title | 2 = Link name }}
Note: As this template uses the parser function {{#ifexists:
, this template has to be used sparingly as this parser function is considered to be resource-intensive on the server.
Examples
[change]- Existing page
{{autostrike|Main Page}}
→ Main Page
- Non-existant page
{{autostrike|Non-existent page}}
→ Non-existent page
TemplateData
[change]This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for autostrike
Template for striking out links to existing pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page title | 1 | The page title to check. | Page name | required |
Alternative display text | 2 | An alternate text to display as the link's name. | String | optional |