Template:OBX xobundle: Difference between revisions

From OLPC
Jump to navigation Jump to search
(template for .xo files)
 
m (tweaking)
Line 7: Line 7:
* name of the bundle (OPTIONAL—if none provided, the page name will be used as display)
* name of the bundle (OPTIONAL—if none provided, the page name will be used as display)


<nowiki>{{</nowiki>{{PAGENAME}} |httplink|''display'' <nowiki>}}</nowiki>
'''Note:''' if the wiki link includes an equal sign ('='&mdash;which is quite common and conflicts with the handling of parameters in templates) you can 'escape it' by doing <tt>| 1=link</tt>. If so, you '''must''' also escape the second parameter with the number (<tt>| 2=display</tt>) if you specify it.


; Notes : If the wiki link includes an equal sign ('='&mdash;which is quite common and conflicts with the handling of parameters in templates) you can 'escape it' by doing <tt>| 1=link</tt>. If so, you '''must''' also escape the second parameter with the number (<tt>| 2=display</tt>) if you specify it.
<nowiki>{{</nowiki>{{PAGENAME}} | httplink | ''display'' <nowiki>}}</nowiki>
: avoid extra spaces (messes up the parsing of the parameters)


== Categories ==
== Categories ==
Line 17: Line 18:
== Sample ==
== Sample ==


{{{{PAGENAME}} | http://dev.laptop.org/~arjs/Measure-9.xo }}
{{{{PAGENAME}} |http://dev.laptop.org/~arjs/Measure-9.xo }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>| http://dev.laptop.org/~arjs/Measure-9.xo }}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|http://dev.laptop.org/~arjs/Measure-9.xo }}</nowiki>


{{{{PAGENAME}} | 1=http://dev.laptop.org/~arjs/Measure-9.xo Measure-9.xo | 2=Measure }}
{{{{PAGENAME}} |1=http://dev.laptop.org/~arjs/Measure-9.xo|2=Measure }}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>| 1=http://dev.laptop.org/~arjs/Measure-9.xo | 2=Measure }}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|1=http://dev.laptop.org/~arjs/Measure-9.xo|2=Measure }}</nowiki>

{{{{PAGENAME}} |http://dev.laptop.org/~arjs/Measure-9.xo|Measure }}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|http://dev.laptop.org/~arjs/Measure-9.xo|Measure }}</nowiki>





Revision as of 23:53, 17 September 2007

.xo Bundle – [{{{1}}} OBX xobundle.xo]


Usage

Used to declare the location (and availability) of an .xo bundle. Has two (unnamed) parameters:

  • the wiki-link to the .xo file or directory
  • name of the bundle (OPTIONAL—if none provided, the page name will be used as display)
{{OBX xobundle |httplink|display }}
Notes
If the wiki link includes an equal sign ('='—which is quite common and conflicts with the handling of parameters in templates) you can 'escape it' by doing | 1=link. If so, you must also escape the second parameter with the number (| 2=display) if you specify it.
avoid extra spaces (messes up the parsing of the parameters)

Categories

Sample

.xo BundleOBX xobundle.xo


{{OBX xobundle |http://dev.laptop.org/~arjs/Measure-9.xo }}
.xo BundleMeasure.xo


{{OBX xobundle |1=http://dev.laptop.org/~arjs/Measure-9.xo|2=Measure }}
.xo BundleMeasure .xo


{{OBX xobundle |http://dev.laptop.org/~arjs/Measure-9.xo|Measure }}