Template:Case preserving encode/doc

Da Comunica.
Versione delle 23:16, 4 nov 2012, autore: Admin (Discussione | contributi)
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)

{{#ifeq: case preserving encode/doc | doc

 | 

{{

   #ifeq: show | show
   | {{
 {{#switch:
 {{#if: 
   | 
   | {{#if: 
     | 
       {{#ifeq:|
       | talk
       |  
       }}
     | 
       {{#ifeq:template|discussioni template
       | talk
       | template 
       }}
     }}
   }}

| main | = ambox | talk = tmbox | user = ombox | wikipedia = ombox | file | image = imbox | mediawiki = ombox | template = ombox | help = ombox | category = cmbox | portal = ombox | book = ombox | other | #default = ombox

}} | type = notice | image = 40px | imageright = | class = | style = | textstyle = | text = This is a documentation subpage for Template:Case preserving encode/doc.
It contains usage information, categories, interlanguage links and other content that is not part of the original {{ #if: | {{{text2}}} | {{ #if: | {{{text1}}} | {{ #ifeq: Template | Utente | template template page | {{ #if: Template |template page|article}}}}}}}}. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

   }}{{
   #if: 
   | 
   | {{#ifexist:Template:Case preserving encode/doc|[[Category:{{
     #switch: Template
     | Template  = Template
     | User      = User
     | #default  = Wikipedia
   }} documentation pages]]|}}
 }}

| }} {{#ifeq:|yes

| {{#ifeq:{{#if:| {{{smallimage}}} | }}|none | | }}

{{#if:{{#if: | {{{smallimageright}}} | }} | {{#ifeq:{{#if: | {{{smallimageright}}} | }}|none

 | 
|
 }}

}}

{{#switch:content

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=content" parameter and needs fixing.

}}

| {{#ifeq:|none | | }}

{{#if: | {{#ifeq:|none

 | 
|
 }}

}}

{{#switch:content

| | speedy | delete | content | style | move | protection | notice =

| #default =
This message box is using an invalid "type=content" parameter and needs fixing.

}} }}

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

|São Paulo }}{{#if:| | }}{{#if:| | }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} gives: {{#ifeq:São Paulo|são Paulo |s%C3%A3o_Paulo |S%C3%A3o_Paulo }}

|são Paulo }}{{#if:| | }}{{#if:| | }}{{#if:| |{{{5}}} }}{{#if:| |{{{6}}} }}{{#if:| |{{{7}}} }}{{#if:| |{{{8}}} }}{{#if:| |{{{9}}} }}{{#if:| |{{{10}}} }}{{#if:| |{{{11}}} }}{{#if:| |... }}}} gives: {{#ifeq:são Paulo|são Paulo |s%C3%A3o_Paulo |S%C3%A3o_Paulo }}

Technical details

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


Strumenti personali
Namespace
Varianti
Azioni
Navigazione
Comunicall
Rete Intelligente
TLC Software
Miscellanea
Varie
Strumenti