Template:OBX xobundle: Difference between revisions
Jump to navigation
Jump to search
(template for .xo files) |
(→Categories: note overlap) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{OBX boilerplate html | icon=.xo | text = [[:Category:Activity bundle|Bundle]] – [{{{1}}} {{{2|{{PAGENAME}}}}}.xo]}}[[Category:Activity bundle|{{PAGENAME}}]]<noinclude>{{-}} |
{{OBX boilerplate html | icon=.xo | text = [[:Category:Activity bundle|Bundle]] – <span class="olpc-activity-url">[{{{1}}} {{{2|{{PAGENAME}}}}}.xo]</span>}}[[Category:Activity bundle|{{PAGENAME}}]]<noinclude>{{-}} |
||
== Usage == |
== Usage == |
||
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) |
||
⚫ | |||
⚫ | |||
⚫ | ; 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 <tt>| 1=link</tt>. If so, you '''must''' also escape the second parameter with the number (<tt>| 2=display</tt>) if you specify it. |
||
⚫ | |||
: avoid extra spaces (messes up the parsing of the parameters) |
|||
== Categories == |
== Categories == |
||
* [[:Category:Activity bundle]]. This is '''obsoleted''' by the [[Property:Activity bundle]] semantic annotation generated by [[Form:Activity]] and {{tl|Activity page}}, which is better since it shows the page and the bundle URL |
|||
* [[:Category:Activity bundle]] |
|||
== Sample == |
== Sample == |
||
{{{{PAGENAME}} | |
{{{{PAGENAME}} |http://dev.laptop.org/~arjs/Measure-9.xo }} |
||
{{-}} |
{{-}} |
||
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>| |
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|http://dev.laptop.org/~arjs/Measure-9.xo }}</nowiki> |
||
{{{{PAGENAME}} | |
{{{{PAGENAME}} |1=http://dev.laptop.org/~arjs/Measure-9.xo|2=Measure }} |
||
{{-}} |
{{-}} |
||
<nowiki>{{</nowiki>{{PAGENAME}} <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> |
|||
[[Category:OBX templates| |
[[Category:OBX templates|Xobundle]] |
||
</noinclude> |
</noinclude> |
Latest revision as of 12:41, 11 December 2008
.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
- Category:Activity bundle. This is obsoleted by the Property:Activity bundle semantic annotation generated by Form:Activity and {{Activity page}}, which is better since it shows the page and the bundle URL
Sample
.xo | Bundle – OBX xobundle.xo |
{{OBX xobundle |http://dev.laptop.org/~arjs/Measure-9.xo }}
.xo | Bundle – Measure.xo |
{{OBX xobundle |1=http://dev.laptop.org/~arjs/Measure-9.xo|2=Measure }}
.xo | Bundle – Measure .xo |
{{OBX xobundle |http://dev.laptop.org/~arjs/Measure-9.xo|Measure }}