「テンプレート:MediaWiki URL rules」の版間の差分
ナビゲーションに移動
検索に移動
細
Reverted edits by 2601:3C6:100:C660:74D0:CFC0:B1F1:3709 (talk) to last version by JohnFromPinckney
細 (1版) |
bsd>Bbb23 細 (Reverted edits by 2601:3C6:100:C660:74D0:CFC0:B1F1:3709 (talk) to last version by JohnFromPinckney) |
||
| 1行目: | 1行目: | ||
URLs must begin with a supported [[URI scheme]]. <code>http://</code> and <code>https://</code> will be supported by all browsers; however, <code>ftp://</code>, <code>gopher://</code>, <code>irc://</code>, <code>ircs://</code>, <code>mailto:</code> and <code>news:</code> may require a plug-in or an external application and should normally be avoided. [[IPv6]] host-names are currently not supported. | |||
{| class="wikitable" | If URLs in [[Wikipedia:Citation_templates#Examples|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 <code>%20</code>. To encode the URL, replace the following characters with: | ||
! | |||
{| class="wikitable" | |||
!scope="row"| Character | |||
!scope="col"| space | |||
!scope="col"| " | |||
!scope="col"| ' | |||
!scope="col"| < | |||
!scope="col"| > | |||
!scope="col"| [ | |||
!scope="col"| ] | |||
!scope="col"| { | |||
!scope="col"| <nowiki>|</nowiki> | |||
!scope="col"| } | |||
|- | |- | ||
|| %20 || %22 || %27 || % | !scope="row"| Encoding | ||
| %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.<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||