साँचा:Case preserving encode/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:used in system

This is the साँचा:tl meta-template.

This template is used inside the templates साँचा:tl, साँचा:tl, and साँचा:tl. (And it might be used in other templates too.)

This template is used to URL-encode wiki page names for external links to other MediaWiki wikis. Since MediaWiki's own URL-encode functions don't work when making links to other MediaWiki wikis.

This template preserves the case of the first character, and it correctly preserves the namespace name.

Usage

  1. {{Case preserving encode|São Paulo}} gives: S%C3%A3o_Paulo
  2. {{Case preserving encode|são Paulo}} gives: s%C3%A3o_Paulo

Technical details

For a detailed explanation of the methods used in this template see the talkpage of {{sec link}}.