Template:MediaWiki URL rules: Difference between revisions
m>HLHJ (wikilinked "citation template parameters") |
m (3 revisions imported from templatewiki:Template:MediaWiki_URL_rules) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 8: | Line 8: | ||
:Single apostrophes do not need to be encoded; however, unencoded multiples will be parsed as italic or bold markup. Single curly closing braces also do not need to be encoded; however, an unencoded pair will be parsed as the double closing braces for the template transclusion.<noinclude> | :Single apostrophes do not need to be encoded; however, unencoded multiples will be parsed as italic or bold markup. Single curly closing braces also do not need to be encoded; however, an unencoded pair will be parsed as the double closing braces for the template transclusion.<noinclude> | ||
{{documentation}} | {{documentation}} | ||
{{En-WP attribution notice|Template:MediaWiki URL rules}} | |||
</noinclude> | </noinclude> |
Latest revision as of 09:59, 16 November 2019
- URLs must begin with a supported URI scheme.
http://
andhttps://
will be supported by all browsers; however,ftp://
,gopher://
,irc://
,ircs://
,mailto:
andnews:
may require a plug-in or an external application and should normally be avoided. IPv6 host-names are currently not supported. - If URLs in citation template parameters contain certain characters, then they will not display and link correctly. Those characters need to be percent-encoded. For example, a space must be replaced by
%20
. To encode the URL, replace the following characters with:
sp | " | ' | < | > | [ | ] | { | | | } |
---|---|---|---|---|---|---|---|---|---|
%20 | %22 | %27 | %3c | %3e | %5b | %5d | %7b | %7c | %7d |
- Single apostrophes do not need to be encoded; however, unencoded multiples will be parsed as italic or bold markup. Single curly closing braces also do not need to be encoded; however, an unencoded pair will be parsed as the double closing braces for the template transclusion.
Template documentation[create]
This template uses material from the Wikipedia template Template:MediaWiki URL rules, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors). |