Template:GlobalText

From NovaRoma
(Difference between revisions)
Jump to: navigation, search
(add EO)
(make default explicit, just in case)
Line 10: Line 10:
 
RO = {{#if: {{{RO|}}} |{{{RO}}}|{{{EN|}}}}}|
 
RO = {{#if: {{{RO|}}} |{{{RO}}}|{{{EN|}}}}}|
 
RU = {{#if: {{{RU|}}} |{{{RU}}}|{{{EN|}}}}}|
 
RU = {{#if: {{{RU|}}} |{{{RU}}}|{{{EN|}}}}}|
{{{EN|}}}}}</includeonly> <noinclude>[[Category:Templates]]
+
#default = {{{EN|}}}}}</includeonly> <noinclude>[[Category:Templates]]
 
==Purpose==
 
==Purpose==
  

Revision as of 09:36, 5 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