Template:Activity-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
(clean up data)
(add name to link)
 
(28 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>Template for a one-line summary of an [[Activities|Activity]]
<noinclude>Template for a one-line summary of an [[Activities|Activity]]
<br clear="all"></noinclude>
<br clear="all"></noinclude>
{|border=1 cellpadding=3 cellspacing=0 class="olpc-activity-info"
{|border=1 cellpadding=3 cellspacing=0 class="olpc-activity-info" width="100%"
|- valign="top"
|- valign="top"
|width= "5%" align="center"| [[Image:{{{icon}}}|40px|{{{activity_name|}}} icon]]
|width= "5%" align="center"| [[Image:{{{icon|activity-terminal.svg}}}|40px|{{{activity_name|}}} icon]]
|| '''[[{{{activity_name|''no name given''}}}]]:''' <span class="olpc-activity-id" style="display:none;">{{{activity_id|}}}</span> {{{activity_description}}} <br/> ''Download'': <span class="olpc-activity-url">[[{{{activity_bundle_file}}}|{{{activity_bundle_name|''bundle''}}}</span> (v.<span class="olpc-activity-version">{{{activity_version|?}}}</span>)
|| <div style="font-size:60%; float:right;">{{edit|Activities/{{{activity_bundle_branch|novalue}}}|edit}}</div> '''[http://wiki.sugarlabs.org/go/Activities/{{{activity_name|''no name given''}}} {{{activity_name|''no name given''}}}]:''' <span class="olpc-activity-id" style="display:none;">{{{activity_id|}}}</span> {{{activity_description|}}}
''Download'': <span class="olpc-activity-url">[{{{activity_bundle_url}}} {{{activity_bundle_branch|{{SUBPAGENAME}}}}}]</span> (v.<span class="olpc-activity-version">{{{activity_version|?}}}</span>)
|}
|}
<noinclude>
<noinclude>
Line 10: Line 11:


== Usage ==
== Usage ==

Use this template to provide information about a version of your activity, suitable for activity list pages such as the [[Activity group]] [[Activities/G1G1/8.2]].

The template embeds the [[Activity microformat]] so that utilities such as [[Software update]] in the [[Sugar Control Panel]] can parse the version information.

<nowiki>{{Activity-oneline
<nowiki>{{Activity-oneline
|icon = web.png
|icon = web.png
Line 15: Line 21:
|activity_description = A web browser
|activity_description = A web browser
|activity_id = org.laptop.Web
|activity_id = org.laptop.Web
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_bundle = Browse.xo
|activity_bundle_file = Browse.xo
|activity_bundle_url = http://dev.laptop.org/~marco/Browse-95.xo
|activity_bundle_name = Browse for 8.2 (alpha)
|activity_bundle_name = Browse (G1G1) <DEPRECATED>
|activity_bundle_branch = Browse (G1G1)
|activity_version = 75
|activity_version = 95
}}</nowiki>
}}</nowiki>


produces


{{Activity-oneline
{{Activity-oneline
|icon = web.png
|icon = web.png
|activity_name = Browse
|activity_name = Browse
|activity_description = A web browser
|activity_description = A web browser
|activity_id = org.laptop.Web
|activity_id = org.laptop.Web
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_bundle = Browse.xo
|activity_bundle_file = Browse.xo
|activity_bundle_url = http://dev.laptop.org/~marco/Browse-95.xo
|activity_bundle_name = Browse for 8.2 (alpha)
|activity_bundle_branch = Browse (G1G1)
|activity_version = 75
|activity_version = 95
}}
}}




[[Category:Template]]</noinclude>
[[Category:Activity microformat templates]]</noinclude>

Latest revision as of 13:06, 7 October 2013

Template for a one-line summary of an Activity

icon no name given no name given:

Download: [{{{activity_bundle_url}}} Activity-oneline] (v.?)


Usage

Use this template to provide information about a version of your activity, suitable for activity list pages such as the Activity group Activities/G1G1/8.2.

The template embeds the Activity microformat so that utilities such as Software update in the Sugar Control Panel can parse the version information.

{{Activity-oneline
 |icon                     =  web.png
 |activity_name            =  Browse
 |activity_description     =  A web browser
 |activity_id              =  org.laptop.Web
 |activity_bundle          =  Browse.xo 
 |activity_bundle_url      =  http://dev.laptop.org/~marco/Browse-95.xo
 |activity_bundle_name     =  Browse (G1G1) <DEPRECATED> 
 |activity_bundle_branch   =  Browse (G1G1)
 |activity_version         =  95
 }}

produces


File:Web.png Browse: A web browser

Download: Browse (G1G1) (v.95)