[edit] [ ]
Template documentation
{{Unlink}} is a template that automatically unlinks input, and returns the target of the first link. It takes a single unnamed parameter.
Usage
Code | Output | Notes |
---|---|---|
{{Unlink|test}}
| test | Unlinked input shouldn't change |
{{Unlink|[[test]]}}
| test | A single link gets unlinked |
{{Unlink|[[test|word]]}}
| test | Only the link target is returned, custom link text is discarded |
{{Unlink|[[test]]ing}}
| test | Link postfixes are also discarded... |
{{Unlink|[[test]] words}}
| test | ...as is any following text... |
{{Unlink|wordy [[test]]}}
| test | ...and any preceding text |
{{Unlink|[[test]]ing some [[links]]}}
| test | Only the first link is returned |
See also
The above documentation is transcluded from Template:Unlink/doc. (edit | history) Editors can experiment in this template's sandbox (edit) and testcases (edit) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
Community content is available under CC-BY-SA
unless otherwise noted.