Module:Addlink/doc

This is an old revision of this page, as edited by K6ka (talk | contribs) at 19:58, 30 April 2019 (K6ka moved page Module:InfoboxLink/doc to Module:Addlink/doc: Consistency w/ {{Delink}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This is the documentation page for Module:Addlink

This module sanitizies link input. It will add [[ ]] around text given to it, but will ignore it if it sees that square brackets are already present.

Examples

{{#invoke:InfoboxLink|wrapInLink|[[Foo]]}}
{{#invoke:InfoboxLink|wrapInLink|Foo}}

Both produce the following output:

Script error: No such module "InfoboxLink".

Piped links also work.

{{#invoke:InfoboxLink|wrapInLink|[[Foo|Bar]]}}
{{#invoke:InfoboxLink|wrapInLink|Foo{{!}}Bar}}

Both produce:

Script error: No such module "InfoboxLink".