Skip to content

url encoding

Bhsd edited this page May 22, 2026 · 5 revisions

⚠️ By default, this rule reports URL encoding in internal links which are unnecessary as warnings.

Examples

Examples of incorrect code for { "url-encoding": 2 }:

[[Foo%20Bar]]
[[Foo#%3B]]

Examples of correct code for { "url-encoding": 2 }:

[[Foo#%3C]]

Options

file

This option can be configured to specify the severity of URL encoding in file links.

Examples of incorrect code for { "url-encoding": [ 0, { "file": 2 } ] }:

[[File:Example.jpg|link=Foo%20Bar]]
[[File:Example.jpg|link=Foo#%3B]]

Examples of correct code for { "url-encoding": { "file": 0 } }:

[[File:Example.jpg|link=Foo%20Bar]]
[[File:Example.jpg|link=Foo#%3B]]

Clone this wiki locally