Template:GlobalText

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
(enable RO)
m (Protected "Template:GlobalText" [edit=sysop:move=sysop])
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{NAMESPACE}}  
+
<includeonly>{{#switch: {{NAMESPACE}} |
| DE = {{#if: {{{DE|}}} | {{{DE}}}| {{{EN|}}}}}  
+
DE = {{#if: {{{DE|}}} |{{{DE}}}|{{{EN|}}}}}|
| ES = {{#if: {{{ES|}}} | {{{ES}}}| {{{EN|}}}}}  
+
EO = {{#if: {{{EO|}}} |{{{EO}}}|{{{EN|}}}}}|
| FR = {{#if: {{{FR|}}} | {{{FR}}}| {{{EN|}}}}}  
+
ES = {{#if: {{{ES|}}} |{{{ES}}}|{{{EN|}}}}}|
| HU = {{#if: {{{HU|}}} | {{{HU}}}| {{{EN|}}}}}  
+
FR = {{#if: {{{FR|}}} |{{{FR}}}|{{{EN|}}}}}|
| IT = {{#if: {{{IT|}}} | {{{IT}}}| {{{EN|}}}}}  
+
HU = {{#if: {{{HU|}}} |{{{HU}}}|{{{EN|}}}}}|
| LA = {{#if: {{{LA|}}} | {{{LA}}}| {{{EN|}}}}}  
+
IT = {{#if: {{{IT|}}} |{{{IT}}}|{{{EN|}}}}}|
| PT = {{#if: {{{PT|}}} | {{{PT}}}| {{{EN|}}}}}  
+
LA = {{#if: {{{LA|}}} |{{{LA}}}|{{{EN|}}}}}|
| RO = {{#if: {{{RO|}}} | {{{RO}}}| {{{EN|}}}}}  
+
PT = {{#if: {{{PT|}}} |{{{PT}}}|{{{EN|}}}}}|
| {{{EN|}}} }}</includeonly> <noinclude>[[Category:Templates]]
+
RO = {{#if: {{{RO|}}} |{{{RO}}}|{{{EN|}}}}}|
 +
RU = {{#if: {{{RU|}}} |{{{RU}}}|{{{EN|}}}}}|
 +
#default = {{{EN|}}}}}</includeonly> <noinclude>[[Category:Templates]]
 
==Purpose==
 
==Purpose==
  
This function will provide language-context sensitive text. In the DE, ES, FR, HU, IT, LA, PT, RO namespaces, text will appear in the namespace language, if provided. In all other namespaces, and in the case that no translation is provided, the English text will appear..
+
This function will provide language-context sensitive text. In the DE, ES, FR, HU, IT, LA, PT, RO, RU namespaces, text will appear in the namespace language, if provided. In all other namespaces, and in the case that no translation is provided, the English text will appear..
  
 
==Scope==
 
==Scope==
  
This template will generally be used to globalize other templates. There is no point to using it in articles directly.  
+
This template will only be used to globalize other templates. There is no point to using it in articles directly.  
  
 
==Usage==
 
==Usage==
  
<nowiki>{{GlobalText|DE = German text|EN = English text|ES = Spanish text|FR = French text|HU = Hungarian text|IT = Italian text|LA = Latin text|PT = Portuguese text|RO = Romanian text}}</nowiki>
+
'''<nowiki>{{GlobalText|DE = German text|EN = English text|EO = Esperanto text|ES = Spanish text|FR = French text|HU = Hungarian text|IT = Italian text|LA = Latin text|PT = Portuguese text|RO = Romanian text|RU = Russian text}}</nowiki>'''
  
 
All values are optional, except that the English text is used as a default, so should always be provided. If no texts are provided, nothing will be returned.
 
All values are optional, except that the English text is used as a default, so should always be provided. If no texts are provided, nothing will be returned.
 +
 +
For your copy/paste pleasure:
 +
 +
<nowiki>{{GlobalText</nowiki>|<br/>
 +
DE = |<br/>
 +
EN = |<br/>
 +
EO = |<br/>
 +
ES = |<br/>
 +
FR = |<br/>
 +
HU = |<br/>
 +
IT = |<br/>
 +
LA = |<br/>
 +
PT = |<br/>
 +
RO = |<br/>
 +
RU= }}
 +
 
</noinclude>
 
</noinclude>

Latest revision as of 23:31, 11 November 2008

Purpose

This function will provide language-context sensitive text. In the DE, ES, FR, HU, IT, LA, PT, RO, RU namespaces, text will appear in the namespace language, if provided. In all other namespaces, and in the case that no translation is provided, the English text will appear..

Scope

This template will only be used to globalize other templates. There is no point to using it in articles directly.

Usage

{{GlobalText|DE = German text|EN = English text|EO = Esperanto text|ES = Spanish text|FR = French text|HU = Hungarian text|IT = Italian text|LA = Latin text|PT = Portuguese text|RO = Romanian text|RU = Russian text}}

All values are optional, except that the English text is used as a default, so should always be provided. If no texts are provided, nothing will be returned.

For your copy/paste pleasure:

{{GlobalText|
DE = |
EN = |
EO = |
ES = |
FR = |
HU = |
IT = |
LA = |
PT = |
RO = |
RU= }}


Personal tools