The first video in the TASBot Re: (TASBot Revisited) series is out! TASBot Re: Gradius covers our first run from AGDQ 2014.

Historians wanted: Inquire here.

Template:Plainlinks: Difference between revisions

Template page
(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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
URI1

for local links (what this is meant for), include protocol+domain

URLrequired
Label text2

no description

Linerequired