Difference between revisions of "Template:Translated text"

From Sugar Labs
Jump to navigation Jump to search
(Translated text Template)
 
m (2 revisions)
 
(No difference)

Latest revision as of 14:26, 4 February 2009

{{{1}}}

Sometimes when translating it is convenient to preserve the original text at hand in order to be able to verify, review or simply keep track of changes. The purpose of this template is to allow a simple way to embed the orginal text in a translated page and control its visibility.

NOTE
Some 'glitches' or strange behavior may be possible when dealing with complex wiki-text (read tables) as the '|' may be interpreted as parameter delimiters for the template.

... sample translated text ...

Usage

{{ Translated text |
  someText
  | display = { block        # Object is rendered as a block element.
                none         # Default. Object is not rendered.
                inline       # Object is rendered as an inline element sized by the dimensions of the content.
                inline-block # Object is rendered inline, but the contents of the object are rendered as a block element. Adjacent inline elements are rendered on the same line, space permitting.
                list-item    # Object is rendered as a block element, and a list-item marker is added.
                table-header-group # Table header is always displayed before all other rows and row groups, and after any top captions. The header is displayed on each page spanned by a table.
                table-footer-group # }
}}

Samples

Hidden

{{ Translated text |
  Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.}}
Text after...

Sugar es un entorno gráfico diferente al utilizado normalmene en Microsoft Windows, sistemas operativos de Apple ó Sistemas operativos Linux.

Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.

Text after...

by default, it doesn't show...

Boxed

Sugar es un entorno gráfico diferente al utilizado normalmene en Microsoft Windows, sistemas operativos de Apple ó Sistemas operativos Linux.
{{ Translated text |
  Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.
  | display = block}}
Text after...

Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.

Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.

Text after...

Bullet

Sugar es un entorno gráfico diferente al utilizado normalmene en Microsoft Windows, sistemas operativos de Apple ó Sistemas operativos Linux.
{{ Translated text |
  Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.
  | display = list-item}}
Text after...

Sugar es un entorno gráfico diferente al utilizado normalmene en Microsoft Windows, sistemas operativos de Apple ó Sistemas operativos Linux.

Sugar is a different desktop environment to what is normally used in Microsoft Windows, Apple's OS X or other Linux operating systems.

Text after...