Template:OBX activity: Difference between revisions

From OLPC
Jump to navigation Jump to search
(categorizing when no icon is available)
m (documenting)
Line 1: Line 1:
{{OBX boilerplate html | icon={{{1|[[Image:Xo s.png|21px]]}}} | text = This [[:Category:Activity|activity]] is a [[: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: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>{{-}}


== 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
* the sub-category of [[:Category:Activity]] in which it should be categorized. Currently using:
** <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>extra</tt> &mdash; other stuff that can be loaded by other means.
* OPTIONAL &mdash; some text you may want after (a horizontal ruler).
* OPTIONAL &mdash; some text you may want after (a horizontal ruler).


Line 18: Line 21:
== Sample ==
== Sample ==


{{{{PAGENAME}} |[[Image:Kuku.png]]|Game }}
{{{{PAGENAME}} |[[Image:Kuku.png]]|extra}}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png]]|Game }}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png]]|extra}}</nowiki>


{{{{PAGENAME}} |[[Image:Kuku.png|21px]]|Game }}
{{{{PAGENAME}} |[[Image:Kuku.png|21px]]|extra}}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png|21px]]|Game }}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png|21px]]|extra}}</nowiki>


{{{{PAGENAME}} |[[Image:Kuku.png|42px]]|Game|short for ''Kuku Anakula'' &ndash; "Hungry Chicken"}}
{{{{PAGENAME}} |[[Image:Kuku.png|42px]]|extra|short for ''Kuku Anakula'' &ndash; "Hungry Chicken"}}
{{-}}
{{-}}
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png|42px]]|Game|short for 'Kuku Anakula' &ndash; "Hungry Chicken"}}</nowiki>
<nowiki>{{</nowiki>{{PAGENAME}} <nowiki>|[[Image:Kuku.png|42px]]|extra|short for 'Kuku Anakula' &ndash; "Hungry Chicken"}}</nowiki>





Revision as of 20:57, 21 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:Activity 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"}}