Difference between revisions of "Template:Format linkr"

From blackwiki
Jump to navigation Jump to search
test>Psiĥedelisto
(try 1=)
m (6 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{ #invoke:hatnote|formatLink|1={{replace|{{{1|}}}|_| }} }}</includeonly><noinclude>
+
<includeonly>{{{{{|safesubst:}}}#if:{{{nud|}}}
 +
|{{{{{|safesubst:}}}replace|{{ #invoke:hatnote|formatLink }}|_| }}
 +
|{{{{{|safesubst:}}}replace|{{ {{{|safesubst:}}}#invoke:urldecode|urlDecode|{{ {{{|safesubst:}}}#invoke:hatnote|formatLink }} }}|_| }}
 +
}}</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>

Latest revision as of 14:58, 9 September 2020

50px 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.