Template:Nwlh/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "{{nwlh|Doctor Who}} {{nwlh|Señor 105}}")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{nwlh|[[the Doctor|Doctor Who]]}}
'''{{tlx|nwlh}}''' (short for '''N'''on-[[Special:WhatLinksHere|'''W'''hat'''L'''inks'''H'''ere]]) is a template that causes the link passed to it to not display in [[Special:WhatLinksHere]]. This can be useful to stop links included in certain templates from flooding the special page, making it unuseable. It also makes the links harder to detect in an automated fashion, however, so should be used judiciously. As such, it should primarily be used in other templates. Usage is very simple. Simply use the template as a wrapper around a normal link.
{{nwlh|[[Señor 105]]}}
: <tt><nowiki>{{nwlh|[[page name|optional display text]]}}</nowiki></tt>
For example:
: <tt><nowiki>{{nwlh|[[Rose (TV story)|Rose]]}}</nowiki></tt> → {{nwlh|[[Rose (TV story)|Rose]]}}
: <tt><nowiki>{{nwlh|[[The Doctor|Dr Who]]}}</nowiki></tt> → {{nwlh|[[The Doctor|Dr Who]]}}
: <tt><nowiki>{{nwlh|[[The Master]]}}</nowiki></tt> → {{nwlh|[[The Master]]}}
You can also combine it with other templates like {{tlx|da}}:
: <tt><nowiki>{{nwlh|{{da|Campaign (unreleased  novel)}}}}</nowiki></tt> → {{nwlh|{{da|Campaign (unreleased novel)}}}}
 
This template works by converting the internal wikilinks to external links. Hence, to search for links using this template, [[Special:LinkSearch]] can be used.
 
Note that any links to non-existant pages passed into this template actually will cause them to appear in [[Special:WhatLinksHere]].
 
This template uses [[Module:Non-WLH link]].
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 18:43, 22 June 2024

{{nwlh}} (short for Non-WhatLinksHere) is a template that causes the link passed to it to not display in Special:WhatLinksHere. This can be useful to stop links included in certain templates from flooding the special page, making it unuseable. It also makes the links harder to detect in an automated fashion, however, so should be used judiciously. As such, it should primarily be used in other templates. Usage is very simple. Simply use the template as a wrapper around a normal link.

{{nwlh|[[page name|optional display text]]}}

For example:

{{nwlh|[[Rose (TV story)|Rose]]}}Rose
{{nwlh|[[The Doctor|Dr Who]]}}Dr Who
{{nwlh|[[The Master]]}}The Master

You can also combine it with other templates like {{da}}:

{{nwlh|{{da|Campaign (unreleased novel)}}}}Campaign

This template works by converting the internal wikilinks to external links. Hence, to search for links using this template, Special:LinkSearch can be used.

Note that any links to non-existant pages passed into this template actually will cause them to appear in Special:WhatLinksHere.

This template uses Module:Non-WLH link.