From SPCodex, The Smashing Pumpkins wiki
Revision as of 16:26, 26 December 2015 by
w>Frietjes
| This template uses Lua:
|
This template removes links from wikitext. It de-links wikilinks and URL links, removes HTML comments, and normalises whitespace. It handles most wikitext correctly, including category links, the colon trick, the pipe trick (normal and reverse), nested wikilinks, and invalid link characters.
Usage
- Basic
{{delink|text}}
- All parameters
Examples
Code
|
Output
|
{{delink|[[Foo]]}}
|
Foo
|
{{delink|[[Foo|Bar]]}}
|
Bar
|
{{delink|[[Foo]], [[bar]], and [[baz]].}}
|
Foo, bar, and baz.
|
{{delink|I visited [https://www.example.com example.com].}}
|
I visited example.com.
|
{{delink|Foo}}
|
Foo
|
Non-examples