Template: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 20:03, 30 April 2019 (Created page with "{{Lua| * Module:Addlink}} ==Description== This template adds <code><nowiki>[[ ]]</nowiki></code> around text given to it, thus linking it. It..."). 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 template uses Lua

Description

This template adds [[ ]] around text given to it, thus linking it. It will ignore text if it sees that [[ ]] is already present.

Usage

{{Addlink|[[Foo]]}}
{{tlx|Addlink|Foo}}

Both produce:

Foo

Piped links also work:

{{Addlink|[[Foo|Bar]]}}
{{Addlink|Foo{{!}}Bar}}

Both produce:

Bar