Difference between revisions of "Template:Format linkr/sandbox"

From blackwiki
Jump to navigation Jump to search
test>Nardog
test>Nardog
Line 1: Line 1:
 
<includeonly>{{safesubst:#if:{{{nud|}}}
 
<includeonly>{{safesubst:#if:{{{nud|}}}
 
|{{safesubst:replace|{{ safesubst:#invoke:hatnote|formatLink }}|_| }}
 
|{{safesubst:replace|{{ safesubst:#invoke:hatnote|formatLink }}|_| }}
|{{safesubst:replace|{{ safesubst:#invoke:urldecode|urlDecode|{{ #invoke:hatnote|formatLink }} }}|_| }}
+
|{{safesubst:replace|{{ safesubst:#invoke:urldecode|urlDecode|{{ safesubst:#invoke:hatnote|formatLink }} }}|_| }}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Revision as of 00:17, 2 July 2020

Template documentation[view] [edit] [history] [purge]

Usage

This template does exactly what {{format link}} does, and takes all the same arguments. The only difference is it replaces underscores with spaces. It also decodes URL parts.

{{format link}}

{{format linkr}}

|nud=

|nud= (no URL decode) can be added to disable URL decoding but still get underscores replaced.