Template:OBX activity: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (documenting)
(Cat;Activity has been depreciated to Cat:Activities)
Line 1: Line 1:
{{OBX boilerplate html | icon={{{1|[[Image:Xo s.png|21px]]}}} | text = This [[:Category:Activity|activity]] is [[:Category:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|<hr>{{{3}}}}}}}<includeonly>{{#if:{{{1|}}}||[[Category:Missing activity icon|{{PAGENAME}}]]}}[[Category:Activity|{{PAGENAME}}]] [[Category:{{{2}}}|{{PAGENAME}}]]</includeonly><noinclude>{{-}}
{{OBX boilerplate html | icon={{{1|[[Image:Xo s.png|21px]]}}} | text = This [[:Category:Activities|activity]] is [[:Category:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|<hr>{{{3}}}}}}}<includeonly>{{#if:{{{1|}}}||[[Category:Missing activity icon|{{PAGENAME}}]]}}[[Category:Activities|{{PAGENAME}}]] [[Category:{{{2}}}|{{PAGENAME}}]]</includeonly><noinclude>{{-}}


== Usage ==
== Usage ==
Line 5: Line 5:
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:Activity]] in which it should be categorized. Currently using:
* the sub-category of [[:Category:Activities]] in which it should be categorized. Currently using:
** <tt>core</tt> &mdash; for things like [[Journal]], [[Write]] and other enablers,
** <tt>core</tt> &mdash; for things like [[Journal]], [[Write]] and other enablers,
** <tt>bundled</tt> &mdash; things that are currently included in the builds, and
** <tt>bundled</tt> &mdash; things that are currently included in the builds, and
Line 15: Line 15:
== Categories ==
== Categories ==


* [[:Category:Activity]]
* [[:Category:Activities]]
* The specific '''sub'''-category of [[:Category:Activity]]
* The specific '''sub'''-category of [[:Category:Activities]]
* If no icon is provided, [[:Category:Missing activity icon]]
* If no icon is provided, [[:Category:Missing activity icon]]


Line 34: Line 34:




[[Category:OBX templates|Activity]]
[[Category:OBX templates|Activities]]
[[Category:Templates using ParserFunctions]]
[[Category:Templates using ParserFunctions]]
</noinclude>
</noinclude>

Revision as of 14:21, 23 September 2007

Xo s.png This activity is [[:Category:{{{2}}}|{{{2}}}]]


Usage

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

  • the activity's icon (a wiki link)
  • the sub-category of Category:Activities in which it should be categorized. Currently using:
    • core — for things like Journal, Write and other enablers,
    • bundled — things that are currently included in the builds, and
    • extra — other stuff that can be loaded by other means.
  • OPTIONAL — some text you may want after (a horizontal ruler).
{{OBX activity |icon|sub-category }}

Categories

Sample

Kuku.png This activity is extra


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


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


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