Module:Addlink/doc

From The Sims Wiki, a collaborative database for The Sims series
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:Addlink|wrapInLink|[[Foo]]}}
{{#invoke:Addlink|wrapInLink|Foo}}

Both produce the following output:

Foo

Piped links also work.

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

Both produce:

Bar