Template:Sandbox: Difference between revisions

From OLPC
Jump to navigation Jump to search
(testing template for translated text)
m (tweaking)
Line 10: Line 10:
: <big>'''Testing translated text<strike></strike>'''</big>
: <big>'''Testing translated text<strike></strike>'''</big>


</noinclude><div style="display:{{{display|none}}}; border:1px solid orange; margin:0px; margin-left:20px; font-size=80%; ">{{{1}}}</div><noinclude>
</noinclude><div style="display:{{{display|none}}}; border:1px solid orange; margin:0px; margin-left:20px; font-size=66%; ">{{{1}}}</div><noinclude>


== Usage ==
== Usage ==
Line 30: Line 30:
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.<nowiki>}}</nowiki>
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.<nowiki>}}</nowiki>
{{ Sandbox
{{ Sandbox
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.}}
: ''it doesn't show...''

<nowiki>{{</nowiki> Sandbox
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| inline-block}}
| display = inline-block<nowiki>}}</nowiki>
{{ Sandbox
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| display = block}}


<nowiki>{{</nowiki> Sandbox
<nowiki>{{</nowiki> Sandbox
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.<nowiki>}}</nowiki>
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| display = inline-block<nowiki>}}</nowiki>
{{ Sandbox
{{ Sandbox
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
| inline-block}}
| display = list-item}}
</noinclude>
</noinclude>

Revision as of 18:53, 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}}}

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

{{ Sandbox 
  | The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.}}
The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
it doesn't show...
{{ Sandbox 
  | The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
  | display = inline-block}}
The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
{{ Sandbox 
  | The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.
  | display = inline-block}}
The reason is quite simple: the OLPC has made an offer (an inexpensive laptop) to national governments (not individuals or NGOs). Countries interested in the offer then decide if the offer is of their liking or not. If it is, negotiations and/or talks can start with the OLPC, and it's only then that they appear on the OLPC radar, and given a color/status depicting the level of commitment or interest.