(Add docs) |
m (Add TemplateData) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><span class="plainlinks">[{{{1}}} {{{2}}}]</span></includeonly></onlyinclude> | <onlyinclude><includeonly><span class="plainlinks">[{{{1}}} {{{2}}}]</span></includeonly></onlyinclude> | ||
This template saves you from remembering the exact syntax for <code><nowiki><span class="plainlinks"/></nowiki></code> [https://www.mediawiki.org/wiki/Help:Links#External_links_to_internal_pages external-internal links]. | This template saves you from remembering the exact syntax for <code><nowiki><span class="plainlinks"/></nowiki></code> [https://www.mediawiki.org/wiki/Help:Links#External_links_to_internal_pages external-internal links]. | ||
Invoke it as <code><nowiki>{{plainlinks|1=https://wiki.tas.bot/wiki/SomePage?with=params|2=link label}}</nowiki></code> (both parameter indices must be specified explicitly). | Invoke it as <code><nowiki>{{plainlinks|1=https://wiki.tas.bot/wiki/SomePage?with=params|2=link label}}</nowiki></code> (both parameter indices must be specified explicitly). | ||
{{TemplateData preamble}}<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "URI", | |||
"description": "for local links (what this is meant for), include protocol+domain", | |||
"type": "url", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Label text", | |||
"type": "line", | |||
"required": true | |||
} | |||
}, | |||
"format": "inline", | |||
"description": "Shorthand for a plainlinks span, used to hide the external link indicator from a link." | |||
} | |||
</templatedata> |
Revision as of 19:20, 30 October 2023
This template saves you from remembering the exact syntax for <span class="plainlinks"/>
external-internal links.
Invoke it as {{plainlinks|1=https://wiki.tas.bot/wiki/SomePage?with=params|2=link label}}
(both parameter indices must be specified explicitly).
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), include protocol+domain | URL | required |
Label text | 2 | no description | Line | required |