Template:Language variation
Parameters
- Syntax:
{{Language variation|pt=Ficheiro|pt-br=Arquivo}}
- Result:
Compare what is shown when using "pt" and "pt-br";
Examples
Without using the template, it is usual to have two localized subpages for each page: "/pt" and "/pt-br". These are usually almost the same, because Brazilian Portuguese and European Portuguese have a lot in common. For example, we could have the following sentences in the two versions of a page:
Language | Sentense |
---|---|
pt | Estes são os projectos da Wikimedia Foundation. |
pt-br | Estes são os projetos da Wikimedia Foundation. |
pt | Você já pode descarregar o ficheiro. |
pt-br | Você já pode baixar o arquivo. |
In this case, we could merge both pages using Template:Language variation:
Languages | Wikicode | Result |
---|---|---|
pt/pt-br |
Estes são os {{Language variation|pt=projectos|pt-br=projetos}} da Wikimedia Foundation: |
Estes são os da Wikimedia Foundation: |
pt/pt-br |
Você já pode {{Language variation|pt=descarregar|pt-br=baixar}} o {{Language variation|pt=ficheiro|pt-br=arquivo}}. |
Você já pode o . |
pt/pt-br |
Você já pode {{Language variation|pt=descarregar o ficheiro|pt-br=baixar o arquivo}}. |
Você já pode . |
Compare what is shown in the third column when using "pt" and "pt-br";