3,705 bytes added
, 01:31, 30 May 2008
<div style="font-size:80%; color:gray; display:{{{display|none}}}; border:1px solid darkgray; margin-left:10%; margin-right:5%; padding-left:5px; padding-right:5px; ">{{{1}}}</div><noinclude>{{TOCright}}
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.
{{ Translated text |
... sample translated text ...
| display = block }}
== Usage ==
<nowiki>{{</nowiki> 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 # }
<nowiki>}}</nowiki>
== Samples ==
=== Hidden ===
<nowiki>{{</nowiki> 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.<nowiki>}}</nowiki>
Text after...
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.}}
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.
<nowiki>{{</nowiki> 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<nowiki>}}</nowiki>
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.
{{ 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...
=== Bullet ===
Sugar es un entorno gráfico diferente al utilizado normalmene en Microsoft Windows, sistemas operativos de Apple ó Sistemas operativos Linux.
<nowiki>{{</nowiki> 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<nowiki>}}</nowiki>
Text after...
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...
[[Category:Template]]
</noinclude>