Difference between revisions of "Template:Format linkr"

From blackwiki
Jump to navigation Jump to search
test>Psiĥedelisto
(should be much better solution?)
test>Psiĥedelisto
(Use {{urldecode}})
Line 1: Line 1:
<includeonly>{{replace|{{ #invoke:hatnote|formatLink }}|_| }}</includeonly><noinclude>
+
<includeonly>{{#if:{{{nud|}}}
 +
|{{replace|{{ #invoke:hatnote|formatLink }}|_| }}
 +
|{{replace|{{ #invoke:urldecode|urlDecode|{{ #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>

Revision as of 13:56, 30 June 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.