Template:Activity-oneline: Difference between revisions

From OLPC
Jump to navigation Jump to search
(one ital)
(Add some semantic markup to allow automatic extraction of URL/version based on activity_id.)
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
{|border=1 cellpadding=3 cellspacing=0 class="{{{activity_id|activity_name}}}"
|- valign="top"
|- valign="top"
|width= "5%" align="center"| {{{icon}}}
|width= "5%" align="center"| {{{icon}}}
|| '''{{{activity_name}}}:''' {{{activity_description}}} <br/> ''Download'': {{{activity_bundle}}} (v.{{{activity_version}}})
|| '''{{{activity_name}}}:''' {{{activity_description}}} <br/> ''Download'': <span class="activity-url">{{{activity_bundle}}}</span> (v.<span class="activity-version">{{{activity_version}}}</span>)
|}
|}
<noinclude>
<noinclude>
Line 14: Line 14:
|activity_name = [[Browse]]
|activity_name = [[Browse]]
|activity_description = A web browser
|activity_description = A web browser
|activity_id = org.laptop.Web
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_version = 75
|activity_version = 75
Line 23: Line 24:
|activity_name = [[Browse]]
|activity_name = [[Browse]]
|activity_description = A web browser
|activity_description = A web browser
|activity_id = org.laptop.Web
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_bundle = [[:Image:Browse.xo|Browse.xo]]
|activity_version = 75
|activity_version = 75

Revision as of 19:50, 8 July 2008

Template for a one-line summary of an Activity

{{{icon}}} {{{activity_name}}}: {{{activity_description}}}
Download: {{{activity_bundle}}} (v.{{{activity_version}}})


Usage

{{Activity-oneline
 |icon                     =  [[Image:web.png|40px]]
 |activity_name            =  [[Browse]]
 |activity_description     =  A web browser
 |activity_id              =  org.laptop.Web
 |activity_bundle          =  [[:Image:Browse.xo|Browse.xo]]
 |activity_version         =  75
 }}


File:Web.png Browse: A web browser
Download: Browse.xo (v.75)