Module:Addlink/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(no longer relevant) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2:
==Examples==
:<code><nowiki>{{#invoke:
:<code><nowiki>{{#invoke:
Both produce the following output:
:{{#invoke:
Piped links also work.
:<code><nowiki>{{#invoke:
:<code><nowiki>{{#invoke:
Both produce:
:{{#invoke:
<includeonly>[[Category:Modules for general use]]</includeonly><noinclude>[[Category:Module documentation]]</noinclude>
|
Latest revision as of 19:59, 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:Addlink|wrapInLink|[[Foo]]}}
{{#invoke:Addlink|wrapInLink|Foo}}
Both produce the following output:
Piped links also work.
{{#invoke:Addlink|wrapInLink|[[Foo|Bar]]}}
{{#invoke:Addlink|wrapInLink|Foo{{!}}Bar}}
Both produce: