Template:Format linkr/doc

Usage
This template does exactly what format link does, and takes all the same arguments.

This template is intended to lower editor workload when copying links from the URL bar and is not suitable for replacing format link, because of the changes it makes to format link's output that could create ambiguity if automatically replaced.

This template replaces any underscores with spaces and decodes any URL parts in format link's output. Some examples of why this may be useful—

format linkr





 * As shown in these examples, format linkr also creates a way to use curly braces in links, which requires multiple templates with format link:

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

Note that you can achieve this through the HTML5 entity  just as well:

TemplateData
{   "description": "This template simplifies the process of formatting links from the URL bar by automatically replacing underscores with spaces and decoding URL-encoded parts.", "params": { "1": {           "label": "Page", "description": "The name of the page the link points to. It can include a section after a hashtag (#).", "type": "string", "required": true },       "italicizepage": { "label": "Italicize page", "description": "Set to 'y' to italicize the page name.", "type": "string", "required": false, "default": "n" },       "nud": { "label": "No URL Decode", "description": "Set to 'y' to prevent URL decoding, while still replacing underscores with spaces.", "type": "string", "required": false, "default": "n" }   } }