Template:Olpcboxmacro

From OLPC
Revision as of 20:26, 5 July 2007 by Xavi (talk | contribs) (macro for OBXs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template:Userboxmacro
Allows 1 to 20 boxes that can be used to describe or show some attributes associated to a specific user.

Source: Wikipedia Template:Babel

Usage

Intended to be used enclosed between {{olpcboxtop}} and {{olpcboxbottom}}.

{{olpcboxtop}}                # Somewhere before...
{{ olpcboxmacro | <box1> | <box2> | <box3> | <box-n <= 20>
 | toptext  = <!-- OPTIONAL — default: none -->
 }}
{{olpcboxbottom}}             # Somewhere later...

Sample

{{OBX source|http://code.google.com/p/facilhtml%7CSVN}}{{OBX source|http://sugar.abisource.com/%7CRPM}}
{{olpcboxtop}}                # Somewhere before...
{{ olpcboxmacro |source|source|http://code.google.com/p/facilhtml%7CSVN%7Csource%7Chttp://sugar.abisource.com/%7CRPM}}
{{olpcboxbottom}}             # Somewhere later...


{{OBX source|http://code.google.com/p/facilhtml%7CSVN}}{{OBX source|http://sugar.abisource.com/%7CRPM}}
{{olpcboxtop}}                # Somewhere before...
{{olpcboxmacro | toptext = [[:Category:Activity|Activity sources]]
  |source|source{{!}}http://code.google.com/p/facilhtml{{!}}SVN|source{{!}}http://sugar.abisource.com/{{!}}RPM}}
{{olpcboxbottom}}             # Somewhere later...


Standalone

If used standalone and with a toptext, it needs to be enclosed in a table. If no toptext is used, resorting to a table is also recommended to avoid messy layouts.

 {|
 |-
 {{olpcboxmacro | toptext = [[:Category:Activity|Activity sources]]|source|source{{!}}http://code.google.com/p/facilhtml{{!}}SVN|source{{!}}http://sugar.abisource.com/{{!}}RPM}}
 |}
{{OBX source|http://code.google.com/p/facilhtml%7CSVN}}{{OBX source|http://sugar.abisource.com/%7CRPM}}


{{olpcboxmacro |source|source{{!}}http://code.google.com/p/facilhtml{{!}}SVN|source{{!}}http://sugar.abisource.com/{{!}}RPM}}
GIT sources in dev.laptop.org

{{OBX source|http://code.google.com/p/facilhtml%7CSVN}}{{OBX source|http://sugar.abisource.com/%7CRPM}}