Jump to content

Template:Case preserving encode

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Revision as of 09:21, 8 May 2011 by John James (talk | contribs) (Created page with "{{#ifeq:{{{1}}}|{{lcfirst:{{{1}}}}} |{{lcfirst:{{PAGENAMEE:Template:{{{1|}}} }}}} |{{PAGENAMEE:Template:{{{1|}}} }} }}<noinclude> {{Documentation}} </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

To preserve first letter case while still encoding safely for URLS

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

See also

  1. Template talk:Sec link for explanation of the "Template:" hack.