Jump to content

Template:autostrike

From Wiktionary
Documentation icon Template documentation[view] [change] [history] [refresh]

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Page title1

The page title to check.

Page namerequired
Alternative display text2

An alternate text to display as the link's name.

Stringoptional