Template:Doubly escaped wikilink/doc

From blackwiki
Jump to navigation Jump to search

Doubly escaped wikilink produces a wikilink, escaped to protect it from two layers of template expansion.

Usage

{{ Doubly escaped wikilink | 1=target | 2=text }}

The template requires one parameter: the target page. It also accepts an optional second parameter: the displayed text, which defaults to the target page title.

Examples

  • {{Doubly escaped wikilink|Apple}} → {{!((}}Apple{{!))}} ([[Apple]])
  • {{Doubly escaped wikilink|Banana|Yellow fruit}} → {{!((}}Banana{{!}}Yellow fruit{{!))}} ([[Banana|Yellow fruit]])

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Doubly escaped wikilink

Produce a wikilink, escaped to protect it from two layers of template expansion

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
11

The target page

Example
Apple
Stringrequired
22

Displayed text

Default
target page title
Example
Yellow fruit
Stringoptional