Difference between revisions of "Template:Doubly escaped wikilink/doc"
Jump to navigation
Jump to search
imported>Certes (Documentation for new template) |
imported>Cactus.man (→Examples: add missing "Yellow fruit" as param 2) |
||
| Line 9: | Line 9: | ||
==Examples== | ==Examples== | ||
*{{tld|Doubly escaped wikilink|Apple}} → {{Doubly escaped wikilink|Apple}} (<code><nowiki>[[Apple]]</nowiki></code>) | *{{tld|Doubly escaped wikilink|Apple}} → {{Doubly escaped wikilink|Apple}} (<code><nowiki>[[Apple]]</nowiki></code>) | ||
| − | *{{tld|Doubly escaped wikilink|Banana}} → {{Doubly escaped wikilink|Banana|Yellow fruit}} (<code><nowiki>[[Banana|Yellow fruit]]</nowiki></code>) | + | *{{tld|Doubly escaped wikilink|Banana|Yellow fruit}} → {{Doubly escaped wikilink|Banana|Yellow fruit}} (<code><nowiki>[[Banana|Yellow fruit]]</nowiki></code>) |
===TemplateData=== | ===TemplateData=== | ||
Latest revision as of 22:44, 25 September 2019
| This is a documentation subpage for Template:Doubly escaped wikilink. It contains usage information, categories and other content that is not part of the original template page. |
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | The target page
| String | required |
| 2 | 2 | Displayed text
| String | optional |