Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (tweaking)
(finished)
Line 15: Line 15:
... sample translated text ...
... sample translated text ...
| display = block }}
| display = block }}

<div style="font-size:66%; color:gray; display:block; border:1px solid darkgray; margin-left:10%; margin-right:5%; padding-left:5px; padding-right:5px; ">
... sample translated text ...
</div>


== Usage ==
== Usage ==


<nowiki>{{</nowiki> Sandbox
<nowiki>{{</nowiki> Sandbox |
| someText
someText
| display = { block # Object is rendered as a block element.
| display = { block # Object is rendered as a block element.
none # Default. Object is not rendered.
none # Default. Object is not rendered.
Line 35: Line 31:
== Samples ==
== Samples ==


=== No show ===
<nowiki>{{</nowiki> Sandbox

| 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.<nowiki>}}</nowiki>
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.
{{ Sandbox
<nowiki>{{</nowiki> Sandbox |
| 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.}}
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.<nowiki>}}</nowiki>
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.
{{ Sandbox |
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...''
: ''by default, it doesn't show...''


=== Simple show ===
<nowiki>{{</nowiki> Sandbox

| 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<nowiki>}}</nowiki>
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.
{{ Sandbox
<nowiki>{{</nowiki> Sandbox |
| 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}}
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<nowiki>}}</nowiki>
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.
{{ Sandbox |
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...

=== Bullet show ===


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.
<nowiki>{{</nowiki> Sandbox
<nowiki>{{</nowiki> Sandbox |
| 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<nowiki>}}</nowiki>
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.
{{ Sandbox
| display = list-item<nowiki>}}</nowiki>
| 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.
{{ Sandbox |
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...
</noinclude>
</noinclude>

Revision as of 19:57, 13 May 2007

Many times you may want to just 'test' an idea for a template, I haven't found a sensible way of fully testing templates by themselves (as they will not get included in the edited version, but rather the saved version).

The idea of this Template:Sandbox is to have that, a simple testing zone that will not interfere with others and avoid leaving a trail of botched attempts.

Please leave this comment/text for others to read.
See Also http://meta.wikimedia.org/wiki/Help:Template
Testing translated text
{{{1}}}

... sample translated text ...

Usage

{{ Sandbox |
  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

No show

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.
{{ Sandbox |
  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...

Simple show

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.
{{ Sandbox |
  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 show

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.
{{ Sandbox |
  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...