Template:OBX activity: Difference between revisions
Jump to navigation
Jump to search
(add See also section, mention Form:Activity page and Template:Activity page) |
(don't do anything if param 2=extra, say "WAS bundled/core" in other cases) |
||
Line 1: | Line 1: | ||
{{OBX boilerplate html | icon={{{1|[[Image:Xo s.png|21px]]}}} | text = This [[:Category:Activities|activity]] |
{{OBX boilerplate html | icon={{{1|[[Image:Xo s.png|21px]]}}} | text = {{#ifeq: {{{2|extra}}}| |This [[:Category:Activities|activity]] was [[:Category:{{{2}}}|{{{2}}}]]}}{{#if:{{{3|}}}|<hr>{{{3}}}}}}}<includeonly>{{#if:{{{1|}}}||[[Category:Missing activity icon|{{PAGENAME}}]]}}[[Category:Activities|{{PAGENAME}}]] {{#ifeq: {{{2|extra}}}| | [[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:Activities]] in which it should be categorized. |
* the sub-category of [[:Category:Activities]] in which it should be categorized. This uses the ''obsolete'' notion of: |
||
** <tt>core</tt> — for |
** <tt>core</tt> — for actvities like [[Journal]], [[Write]] and other key functionality, |
||
** <tt>bundled</tt> — things that are currently included in the builds, and |
** <tt>bundled</tt> — things that are currently included in the builds, and |
||
** <tt>extra</tt> — other |
** <tt>extra</tt> — other activities that users can add themselves (now every activity besides [[Journal]] is in this activity. |
||
* OPTIONAL — some text you may want after (a horizontal ruler). |
* OPTIONAL — some text you may want after (a horizontal ruler). |
||
Set the second parameter to "extra" or blank and nothing will show; "core" and "bundled" are |
|||
<nowiki>{{</nowiki>{{PAGENAME}} |icon|sub-category <nowiki>}}</nowiki> |
<nowiki>{{</nowiki>{{PAGENAME}} |icon|sub-category <nowiki>}}</nowiki> |
Revision as of 00:16, 16 March 2009
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. This uses the obsolete notion of:
- OPTIONAL — some text you may want after (a horizontal ruler).
Set the second parameter to "extra" or blank and nothing will show; "core" and "bundled" are
{{OBX activity |icon|sub-category }}
Categories
- Category:Activities
- The specific sub-category of Category:Activities
- If no icon is provided, Category:Missing activity icon
Sample
{{OBX activity |[[Image:Kuku.png]]|extra}}
{{OBX activity |[[Image:Kuku.png|21px]]|extra}}
{{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.