Template:Translated text

From OLPC
Revision as of 16:59, 14 May 2007 by Xavi (talk | contribs) (tweaking font size)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
{{{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

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.
{{ Translated text |
  Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.}}
Text after...

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.

Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.

Text after...

by default, it doesn't show...

Boxed

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.
{{ Translated text |
  Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.
  | display = block}}
Text after...

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.

Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.

Text after...

Bullet

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.
{{ Translated text |
  Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.
  | display = list-item}}
Text after...

Bienvenido al Wiki de la OLPC, el sitio colaborativo sobre el proyecto Una Laptop por Chico (OLPC) y sus asociados proyectos y comunidades. Actualmente tenemos 1,664 páginas y más de mil editores registrados; únanse y compartan sus ideas.

Welcome to the OLPC Wiki, home to collaborative notes about the One Laptop per Child project and related projects and communities. We currently have 1,664 pages and over one-thousand registered contributors; please join us and share your ideas.

Text after...