Template:Activity-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
{|border=1 cellpadding=3 cellspacing=0 class="olpc-activity-info" width="100%"
{|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"| [[#ifeq: {{{icon|novalue}}} | novalue | No icon | [[Image:{{{icon}}}|40px|{{{activity_name|}}} icon]] }}
|| <div style="font-size:60%; float:right;">{{edit|Activities/{{#ifeq:{{{activity_bundle_branch|novalue}}} | novalue | {{{activity_bundle_name|Sandbox}}} | {{{activity_bundle_branch}}} }}|edit}}</div> '''[[{{{activity_name|''no name given''}}}]]:''' <span class="olpc-activity-id" style="display:none;">{{{activity_id|}}}</span> {{{activity_description}}}
|| <div style="font-size:60%; float:right;">{{edit|Activities/{{#ifeq:{{{activity_bundle_branch|novalue}}} | novalue | {{PAGENAME}} | {{{activity_bundle_branch}}} }}|edit}}</div> '''[[{{{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|''bundle''}}}]</span> (v.<span class="olpc-activity-version">{{{activity_version|?}}}</span>)
''Download'': <span class="olpc-activity-url">[{{{activity_bundle_url}}} {{{activity_bundle_branch|''bundle''}}}]</span> (v.<span class="olpc-activity-version">{{{activity_version|?}}}</span>)
|}
|}
Line 31: Line 31:


{{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

Revision as of 04:25, 9 May 2012

Template for a one-line summary of an Activity

[[#ifeq: novalue | novalue | No icon | [[Image:{{{icon}}}|40px| icon]] }} ''no name given'': {{{activity_description}}}

Download: [{{{activity_bundle_url}}} bundle] (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


[[#ifeq: web.png | novalue | No icon | File:Web.png }} Browse: A web browser

Download: Browse (G1G1) (v.95)