Module:Addlink/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
(no longer relevant)
m (K6ka moved page Module:InfoboxLink/doc to Module:Addlink/doc: Consistency w/ {{Delink}})
(No difference)

Revision as of 19:58, 30 April 2019

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