Template:OBX activity: Difference between revisions

From OLPC
Jump to navigation Jump to search
(→‎Usage: more obsolete-ness updates)
m (→‎Usage: more obsolete-ness explanation)
 
Line 2: Line 2:


== Usage ==
== Usage ==
<nowiki>{{</nowiki>{{PAGENAME}} |icon| |''optional text'' <nowiki>}}</nowiki>


Used to declare the type of activity being documented. Has three (unnamed) parameters:
Used to declare the type of activity being documented. Has three (unnamed) parameters:
# the activity's icon (a wiki link)
# the activity's icon (a wiki link)
# the sub-category of [[:Category:Activities]] in which it should be categorized. Just leave it blank. This used to be for the '''''obsolete''''' notion of:
# ''obsolete'' the activity's sub-category of [[:Category:Activities]] Just leave it blank. This used to be for the '''''obsolete''''' notion of:
#* <tt>core</tt> &mdash; for actvities like [[Journal]], [[Write]] and other key functionality,
#* <tt>core</tt> &mdash; for activities such as [[Journal]] and [[Write]] that were [[:Category:core|core]] functionality in [[Ship.2]] builds,
#* <tt>bundled</tt> &mdash; things that are currently included in the builds, and
#* <tt>bundled</tt> &mdash; for activities that were [[:Category:bundled|bundled]] in [[Ship.2]] builds, and
#* <tt>extra</tt> &mdash; other activities that users can add themselves (now every activity besides [[Journal]] is in this activity.
#* <tt>extra</tt> &mdash; other activities that users can add themselves. Since 2008 every activity besides Journal is "extra".
# OPTIONAL &mdash; some additional text you may want to display, after a horizontal ruler line.
# OPTIONAL &mdash; some additional text you may want to display, after a horizontal ruler line.


Set the second parameter to "extra" or blank and nothing will show; "core" and "bundled" are
Set the second parameter to "extra" or blank and nothing will show; "core" or "bundled" display as "Activity ''was'' core/bundled"

<nowiki>{{</nowiki>{{PAGENAME}} |icon|sub-category <nowiki>}}</nowiki>


== Categories ==
== Categories ==

Latest revision as of 00:45, 16 March 2009

Xo s.png


Usage

{{OBX activity |icon| |optional text }}

Used to declare the type of activity being documented. Has three (unnamed) parameters:

  1. the activity's icon (a wiki link)
  2. obsolete the activity's sub-category of Category:Activities Just leave it blank. This used to be for the obsolete notion of:
    • core — for activities such as Journal and Write that were core functionality in Ship.2 builds,
    • bundled — for activities that were bundled in Ship.2 builds, and
    • extra — other activities that users can add themselves. Since 2008 every activity besides Journal is "extra".
  3. OPTIONAL — some additional text you may want to display, after a horizontal ruler line.

Set the second parameter to "extra" or blank and nothing will show; "core" or "bundled" display as "Activity was core/bundled"

Categories

Sample

Kuku.png


{{OBX activity |[[Image:Kuku.png]]|extra}}
Kuku.png


{{OBX activity |[[Image:Kuku.png|21px]]|extra}}
Kuku.png
short for Kuku Anakula – "Hungry Chicken"


{{OBX activity |[[Image:Kuku.png|42px]]|extra|short for 'Kuku Anakula' – "Hungry Chicken"}}

See also

  • Form:Activity is a form that updates semantic info in activity pages, storing it in Template:Activity page. Its information and approach needs to be merged with the OBX activity templates. See e.g. Browse, note the "edit with form" tab, and scroll down to the bottom to see the template output and factbox.