Modèle:Case preserving encode/doc

De TI-Planet Wiki
Révision datée du 3 septembre 2012 à 15:13 par Adriweb (discussion | contributions) (1 version)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

This is the {{case preserving encode}} meta-template.

This template is used inside the templates {{sec link}}, {{sec link auto}}, and {{sec link image}}. (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

Technical details

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