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:54, 30 April 2019 (Created page with "This module sanitizies link input. It will add <code><nowiki>[[ ]]</nowiki></code> around text given to it, but will ignore it if it sees that square brackets a..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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|[[Foo]]}}
{{#invoke:InfoboxLink|Foo}}

Both produce the following output:

Script error: No such module "InfoboxLink".

Piped links also work.

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

Both produce:

Script error: No such module "InfoboxLink".