Template:Url: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(create)
 
(Use named args)
Line 1: Line 1:
<includeonly><onlyinclude>[http://{{{1}}} {{{2}}}]</onlyinclude></includeonly>
<includeonly><onlyinclude>{{{link}}} {{{text}}}</onlyinclude></includeonly><noinclude>{{documentation|content=
Does an external link. First parameter is the link and the second parameter is the link text.
Does an external link.


Why is this needed? Due to Mediawiki quirks with parsing and bare http links. Primarily used for [[Template:VA]] at the moment.
Why is this needed? Due to Mediawiki quirks with parsing and bare http links. Primarily used for [[Template:VA]] at the moment.
==Template data==
<templatedata>
{
"params": {
"link": {
"description": "The external link, without an https:// prefix.",
"required": true
},
"text": {
"description": "The display text."
}
},
"format": "inline",
"description": "Does an external link.\n"
}
</templatedata>
}}
</noinclude>

Revision as of 09:57, 15 November 2023

Template documentation

Does an external link.

Why is this needed? Due to Mediawiki quirks with parsing and bare http links. Primarily used for Template:VA at the moment.

Template data

Does an external link.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
linklink

The external link, without an https:// prefix.

Unknownrequired
texttext

The display text.

Unknownoptional