3,311
edits
(←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...") |
No edit summary |
||
Line 2:
==Examples==
:<code><nowiki>{{#invoke:InfoboxLink|wrapInLink|[[Foo]]}}</nowiki></code>
:<code><nowiki>{{#invoke:InfoboxLink|wrapInLink|Foo}}</nowiki></code>
Both produce the following output:
:{{#invoke:InfoboxLink|wrapInLink|Foo}}
Piped links also work.
:<code><nowiki>{{#invoke:InfoboxLink|wrapInLink|[[Foo|Bar]]}}</nowiki></code>
:<code><nowiki>{{#invoke:InfoboxLink|wrapInLink|Foo{{!}}Bar}}</nowiki></code>
Both produce:
:{{#invoke:InfoboxLink|wrapInLink|[[Foo|Bar]]}}
<includeonly>[[Category:Modules for general use]]</includeonly><noinclude>[[Category:Module documentation]]</noinclude>
|