(Allow omitting protocol and domain, improve docs) |
m (Also update TemplateData) |
||
Line 14: | Line 14: | ||
"1": { | "1": { | ||
"label": "URI", | "label": "URI", | ||
"description": "for local links (what this is meant for), | "description": "for local links (what this is meant for), omit protocol+domain but include leading '/'", | ||
"type": "url", | "type": "url", | ||
"required": true | "required": true |
Revision as of 21:03, 30 October 2023
This template saves you from remembering the exact syntax for <span class="plainlinks"/>
external-internal links.
Usage:
{{plainlinks|/wiki/dwangoAC|click here}}
⟶ click here{{plainlinks|1=/wiki/SomePage?with=params|2=click here}}
⟶ click here (both parameter indices must be specified explicitly when the first contains '=')- External links should be marked as such, so while the below examples will work, think twice about using this template.
{{plainlinks|https://xkcd.com|click here}}
⟶ click here{{plainlinks|//example.com|click here}}
⟶ click here
The below documentation is automatically generated from JSON. It can be changed by editing this page, but note that it's only the documentation (for the visual editor)—the actual template part must also be edited, manually.
Shorthand for a plainlinks span, used to hide the external link indicator from a link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URI | 1 | for local links (what this is meant for), omit protocol+domain but include leading '/' | URL | required |
Label text | 2 | no description | Line | required |