Module:Addlink/doc

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by K6ka (talk | contribs) at 16:56, 30 April 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Jump to navigation Jump to search

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".

Issues

The module is best used in a template, as it will not work if there is whitespace in the parameters.

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

Produces:

Script error: No such module "InfoboxLink".