Template:OBX activity: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (cosmetics)
(categorizing when no icon is available)
Line 1: Line 1:
{{OBX boilerplate html | icon={{{1}}} | text = This [[:Category:Activity|activity]] is a [[:Category:{{{2}}}|{{{2}}}]]{{#if:{{{3|}}}|<hr>{{{3}}}}}}}<includeonly>[[Category:Activity|{{PAGENAME}}]] [[Category:{{{2}}}|{{PAGENAME}}]]</includeonly><noinclude>{{-}}
{{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>{{-}}


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


== Sample ==
== Sample ==

Revision as of 04:22, 19 September 2007

Xo s.png This activity is a [[: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
  • OPTIONAL — some text you may want after (a horizontal ruler).
{{OBX activity |icon|sub-category }}

Categories

Sample

Kuku.png This activity is a Game


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


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


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